2.2.0.7 false Stockholders' Equity - Additional Information (Detail) (USD $) 1100 - Disclosure - Stockholders' Equity - Additional Information (Detail) true false false false 1 USD false false iso4217_USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 $ false 2 USD false false iso4217_USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 pure Standard http://www.xbrl.org/2003/instance pure 0 shares Standard http://www.xbrl.org/2003/instance shares 0 iso4217_USD_per_shares Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares 0 $ 5 3 msft_StockRepurchaseProgramUtilizedAmount msft false credit duration Amount repurchased under the prior Board of Directors approved Share Repurchase Program. false false false false false false false false false false false false 1 true true false false 40000000000 40000000000 false false false 2 false false false false 0 0 false false false xbrli:monetaryItemType monetary Amount repurchased under the prior Board of Directors approved Share Repurchase Program. No authoritative reference available. false 6 3 msft_StockRepurchaseProgramAuthorizedRepurchaseAmount msft false credit instant Amount available for repurchase under the current share repurchase program approved by the company's Board of Directors. false false false false false false false false false false false false 1 false true false false 40000000000 40000000000 false false false 2 false false false false 0 0 false false false xbrli:monetaryItemType monetary Amount available for repurchase under the current share repurchase program approved by the company's Board of Directors. No authoritative reference available. false 7 3 msft_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount msft false credit instant The unused portion of the company's Board of Directors approved share repurchase program. false false false false false false false false false false false false 1 false false false false 0 0 false false false 2 true true false false 23700000000 23700000000 false false false xbrli:monetaryItemType monetary The unused portion of the company's Board of Directors approved share repurchase program. No authoritative reference available. false 2 3 false NoRounding UnKnown UnKnown false true