UBmatrix Calculation Trace Report


Line Concept Weight Balance Decimals Precision Reported Calculated Source Message
1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureBasicAndDilutedEarningsPerShareDetail ]
2 Context C_0000789019_20140701_20150630 [ 2014-07-01 - 2015-06-30 ]
c-equal
3 Unit U_shares
u-equal
base:WeightedAverageNumberOfDilutedSharesOutstanding -6 0 8254000000 8,254,000,000 Instance OK
base:WeightedAverageNumberOfSharesOutstandingBasic 1.0 -6 8177000000 8,177,000,000 Instance
base:IncrementalCommonSharesAttributableToShareBasedPaymentArrangements 1.0 -6 77000000 77,000,000 Instance
2 Context C_0000789019_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_shares
u-equal
base:WeightedAverageNumberOfDilutedSharesOutstanding -6 0 8013000000 8,013,000,000 Instance OK
base:WeightedAverageNumberOfSharesOutstandingBasic 1.0 -6 7925000000 7,925,000,000 Instance
base:IncrementalCommonSharesAttributableToShareBasedPaymentArrangements 1.0 -6 88000000 88,000,000 Instance
2 Context C_0000789019_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_shares
u-equal
base:WeightedAverageNumberOfDilutedSharesOutstanding -6 0 7832000000 7,832,000,000 Instance OK
base:WeightedAverageNumberOfSharesOutstandingBasic 1.0 -6 7746000000 7,746,000,000 Instance
base:IncrementalCommonSharesAttributableToShareBasedPaymentArrangements 1.0 -6 86000000 86,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureComponentsOfInventoriesDetail ]
2 Context C_0000789019_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:InventoryNet debit -6 0 2251000000 2,251,000,000 Instance OK
base:InventoryRawMaterialsNetOfReserves 1.0 debit -6 612000000 612,000,000 Instance
base:InventoryWorkInProcessNetOfReserves 1.0 debit -6 158000000 158,000,000 Instance
base:InventoryFinishedGoodsNetOfReserves 1.0 debit -6 1481000000 1,481,000,000 Instance
2 Context C_0000789019_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:InventoryNet debit -6 0 2181000000 2,181,000,000 Instance OK
base:InventoryRawMaterialsNetOfReserves 1.0 debit -6 797000000 797,000,000 Instance
base:InventoryWorkInProcessNetOfReserves 1.0 debit -6 145000000 145,000,000 Instance
base:InventoryFinishedGoodsNetOfReserves 1.0 debit -6 1239000000 1,239,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureComponentsOfOtherIncomeExpenseNetDetail ]
2 Context C_0000789019_20140701_20150630 [ 2014-07-01 - 2015-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:NonoperatingIncomeExpense credit -6 0 346000000 346,000,000 Instance OK
base:InvestmentIncomeNet 1.0 credit -6 766000000 766,000,000 Instance
base:InterestExpense -1.0 debit -6 781000000 781,000,000 Instance
base:GainLossOnInvestments 1.0 credit -6 716000000 716,000,000 Instance
base:GainLossOnDerivativeInstrumentsNetPretax 1.0 credit -6 -423000000 -423,000,000 Instance
base:ForeignCurrencyTransactionGainLossBeforeTax 1.0 credit -6 335000000 335,000,000 Instance
base:OtherNonoperatingIncomeExpense 1.0 credit -6 -267000000 -267,000,000 Instance
2 Context C_0000789019_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:NonoperatingIncomeExpense credit -6 0 -431000000 -431,000,000 Instance OK
base:InvestmentIncomeNet 1.0 credit -6 903000000 903,000,000 Instance
base:InterestExpense -1.0 debit -6 1243000000 1,243,000,000 Instance
base:GainLossOnInvestments 1.0 credit -6 668000000 668,000,000 Instance
base:GainLossOnDerivativeInstrumentsNetPretax 1.0 credit -6 -443000000 -443,000,000 Instance
base:ForeignCurrencyTransactionGainLossBeforeTax 1.0 credit -6 -121000000 -121,000,000 Instance
base:OtherNonoperatingIncomeExpense 1.0 credit -6 -195000000 -195,000,000 Instance
2 Context C_0000789019_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:NonoperatingIncomeExpense credit -6 0 823000000 823,000,000 Instance OK
base:InvestmentIncomeNet 1.0 credit -6 1387000000 1,387,000,000 Instance
base:InterestExpense -1.0 debit -6 2222000000 2,222,000,000 Instance
base:GainLossOnInvestments 1.0 credit -6 2583000000 2,583,000,000 Instance
base:GainLossOnDerivativeInstrumentsNetPretax 1.0 credit -6 -510000000 -510,000,000 Instance
base:ForeignCurrencyTransactionGainLossBeforeTax 1.0 credit -6 -164000000 -164,000,000 Instance
base:OtherNonoperatingIncomeExpense 1.0 credit -6 -251000000 -251,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureComponentsOfPropertyAndEquipmentDetail ]
2 Context C_0000789019_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:PropertyPlantAndEquipmentNet debit -6 0 18356000000 18,356,000,000 Instance OK
base:PropertyPlantAndEquipmentGross 1.0 debit -6 0 38156000000 38,156,000,000 Instance OK
base:Land 1.0 debit -6 824000000 824,000,000 Instance
base:BuildingsAndImprovementsGross 1.0 debit -6 12393000000 12,393,000,000 Instance
base:LeaseholdImprovementsGross 1.0 debit -6 3659000000 3,659,000,000 Instance
msft:ComputerHardwareAndSoftware 1.0 debit -6 17391000000 17,391,000,000 Instance
base:FurnitureAndFixturesGross 1.0 debit -6 3889000000 3,889,000,000 Instance
base:AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment -1.0 credit -6 19800000000 19,800,000,000 Instance
2 Context C_0000789019_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:PropertyPlantAndEquipmentNet debit -6 0 23734000000 23,734,000,000 Instance OK
base:PropertyPlantAndEquipmentGross 1.0 debit -6 0 47913000000 47,913,000,000 Instance OK
base:Land 1.0 debit -6 1107000000 1,107,000,000 Instance
base:BuildingsAndImprovementsGross 1.0 debit -6 16284000000 16,284,000,000 Instance
base:LeaseholdImprovementsGross 1.0 debit -6 5064000000 5,064,000,000 Instance
msft:ComputerHardwareAndSoftware 1.0 debit -6 21414000000 21,414,000,000 Instance
base:FurnitureAndFixturesGross 1.0 debit -6 4044000000 4,044,000,000 Instance
base:AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment -1.0 credit -6 24179000000 24,179,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureDebtInvestmentMaturitiesDetail ]
2 Context C_0000789019_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesDebtSecurities debit -6 0 127879000000 127,879,000,000 Instance OK
base:AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue 1.0 debit -6 18188000000 18,188,000,000 Instance
base:AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue 1.0 debit -6 102168000000 102,168,000,000 Instance
base:AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue 1.0 debit -6 6504000000 6,504,000,000 Instance
base:AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue 1.0 debit -6 1019000000 1,019,000,000 Instance
base:AvailableForSaleDebtSecuritiesAmortizedCostBasis debit -6 0 128063000000 128,063,000,000 Instance OK
base:AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis 1.0 debit -6 18212000000 18,212,000,000 Instance
base:AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis 1.0 debit -6 102374000000 102,374,000,000 Instance
base:AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis 1.0 debit -6 6478000000 6,478,000,000 Instance
base:AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis 1.0 debit -6 999000000 999,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureDeferredIncomeTaxAssetsAndLiabilitiesDetail ]
2 Context C_0000789019_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:DeferredTaxLiabilities credit -6 0 1257000000 1,257,000,000 Instance OK
base:DeferredTaxAssetsNet -1.0 debit -6 0 3149000000 3,149,000,000 Instance OK
base:DeferredTaxAssetsGross 1.0 debit -6 0 7878000000 7,878,000,000 Instance OK
base:DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost 1.0 debit -6 809000000 809,000,000 Instance
base:DeferredTaxAssetsTaxDeferredExpenseOther 1.0 debit -6 1609000000 1,609,000,000 Instance
base:DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsRestructuringCharges 1.0 debit -6 284000000 284,000,000 Instance
base:DeferredTaxAssetsDeferredIncome 1.0 debit -6 494000000 494,000,000 Instance
base:DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsImpairmentLosses 1.0 debit -6 226000000 226,000,000 Instance
base:DeferredTaxAssetsOperatingLossCarryforwards 1.0 debit -6 4252000000 4,252,000,000 Instance
msft:DeferredTaxAssetsDepreciationAndAmortization 1.0 debit -6 115000000 115,000,000 Instance
base:DeferredTaxAssetsOther 1.0 debit -6 89000000 89,000,000 Instance
base:DeferredTaxAssetsValuationAllowance -1.0 credit -6 4729000000 4,729,000,000 Instance
base:DeferredIncomeTaxLiabilities 1.0 credit -6 0 4406000000 4,406,000,000 Instance OK
base:DeferredTaxLiabilitiesUndistributedForeignEarnings 1.0 credit -6 1242000000 1,242,000,000 Instance
msft:DeferredTaxLiabilitiesUnrealizedGainsInvestmentsAndDebt 1.0 credit -6 2102000000 2,102,000,000 Instance
msft:DeferredTaxLiabilitiesDepreciationAndAmortization 1.0 credit -6 1008000000 1,008,000,000 Instance
base:DeferredTaxLiabilitiesOther 1.0 credit -6 54000000 54,000,000 Instance
2 Context C_0000789019_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:DeferredTaxAssetsLiabilitiesNet debit -6 0 1881000000 1,881,000,000 Instance OK
base:DeferredTaxAssetsNet 1.0 debit -6 0 6023000000 6,023,000,000 Instance OK
base:DeferredTaxAssetsGross 1.0 debit -6 0 9333000000 9,333,000,000 Instance OK
base:DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost 1.0 debit -6 777000000 777,000,000 Instance
base:DeferredTaxAssetsTaxDeferredExpenseOther 1.0 debit -6 1550000000 1,550,000,000 Instance
base:DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsRestructuringCharges 1.0 debit -6 66000000 66,000,000 Instance
base:DeferredTaxAssetsDeferredIncome 1.0 debit -6 1889000000 1,889,000,000 Instance
base:DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsImpairmentLosses 1.0 debit -6 59000000 59,000,000 Instance
base:DeferredTaxAssetsOperatingLossCarryforwards 1.0 debit -6 4809000000 4,809,000,000 Instance
msft:DeferredTaxAssetsDepreciationAndAmortization 1.0 debit -6 53000000 53,000,000 Instance
base:DeferredTaxAssetsOther 1.0 debit -6 130000000 130,000,000 Instance
base:DeferredTaxAssetsValuationAllowance -1.0 credit -6 3310000000 3,310,000,000 Instance
base:DeferredIncomeTaxLiabilities -1.0 credit -6 0 4142000000 4,142,000,000 Instance OK
base:DeferredTaxLiabilitiesUndistributedForeignEarnings 1.0 credit -6 1107000000 1,107,000,000 Instance
msft:DeferredTaxLiabilitiesUnrealizedGainsInvestmentsAndDebt 1.0 credit -6 1384000000 1,384,000,000 Instance
msft:DeferredTaxLiabilitiesDepreciationAndAmortization 1.0 credit -6 1630000000 1,630,000,000 Instance
base:DeferredTaxLiabilitiesOther 1.0 credit -6 21000000 21,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureDifferenceBetweenIncomeTaxesComputedAtFederalStatutoryRateAndProvisionForIncomeTaxesDetail ]
2 Context C_0000789019_20140701_20150630 [ 2014-07-01 - 2015-06-30 ]
c-equal
3 Unit U_pure
u-equal
base:EffectiveIncomeTaxRateContinuingOperations 3 0 0.341 0.341 Instance OK
base:EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate 1.0 INF 0.350 0.35 Instance
base:EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential 1.0 3 -0.209 -0.209 Instance
msft:EffectiveIncomeTaxRateReconciliationPhoneBusinessGainsLosses 1.0 3 0.191 0.191 Instance
msft:EffectiveIncomeTaxRateReconciliationDeductionsExcessTaxBenefitsStockBasedCompensation -1.0 2 0.00 0 Instance
base:EffectiveIncomeTaxRateReconciliationDeductionsQualifiedProductionActivities -1.0 3 0.024 0.024 Instance
msft:EffectiveIncomeTaxRateReconciliationInterestIncomeExpense 1.0 3 0.015 0.015 Instance
base:EffectiveIncomeTaxRateReconciliationOtherAdjustments 1.0 3 0.018 0.018 Instance
2 Context C_0000789019_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_pure
u-equal
base:EffectiveIncomeTaxRateContinuingOperations 3 0 0.150 0.15 Instance OK
base:EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate 1.0 INF 0.350 0.35 Instance
base:EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential 1.0 3 -0.194 -0.194 Instance
msft:EffectiveIncomeTaxRateReconciliationPhoneBusinessGainsLosses 1.0 3 0.013 0.013 Instance
msft:EffectiveIncomeTaxRateReconciliationDeductionsExcessTaxBenefitsStockBasedCompensation -1.0 3 0.020 0.02 Instance
base:EffectiveIncomeTaxRateReconciliationDeductionsQualifiedProductionActivities -1.0 3 0.006 0.006 Instance
msft:EffectiveIncomeTaxRateReconciliationInterestIncomeExpense 1.0 3 0.012 0.012 Instance
base:EffectiveIncomeTaxRateReconciliationOtherAdjustments 1.0 3 -0.005 -0.005 Instance
2 Context C_0000789019_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_pure
u-equal
base:EffectiveIncomeTaxRateContinuingOperations 3 0 0.084 0.084 Instance OK
base:EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate 1.0 INF 0.350 0.35 Instance
base:EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential 1.0 3 -0.157 -0.157 Instance
msft:EffectiveIncomeTaxRateReconciliationPhoneBusinessGainsLosses 1.0 3 -0.073 -0.073 Instance
msft:EffectiveIncomeTaxRateReconciliationDeductionsExcessTaxBenefitsStockBasedCompensation -1.0 3 0.027 0.027 Instance
base:EffectiveIncomeTaxRateReconciliationDeductionsQualifiedProductionActivities -1.0 3 0.014 0.014 Instance
msft:EffectiveIncomeTaxRateReconciliationInterestIncomeExpense 1.0 3 0.018 0.018 Instance
base:EffectiveIncomeTaxRateReconciliationOtherAdjustments 1.0 3 -0.013 -0.013 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureEstimatedFutureAmortizationExpenseRelatedToIntangibleAssetsDetail ]
2 Context C_0000789019_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:FiniteLivedIntangibleAssetsNet debit -6 0 10106000000 10,106,000,000 Instance OK
base:FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths 1.0 debit -6 2190000000 2,190,000,000 Instance
base:FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo 1.0 debit -6 1698000000 1,698,000,000 Instance
base:FiniteLivedIntangibleAssetsAmortizationExpenseYearThree 1.0 debit -6 1180000000 1,180,000,000 Instance
base:FiniteLivedIntangibleAssetsAmortizationExpenseYearFour 1.0 debit -6 1006000000 1,006,000,000 Instance
base:FiniteLivedIntangibleAssetsAmortizationExpenseYearFive 1.0 debit -6 932000000 932,000,000 Instance
base:FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive 1.0 debit -6 3100000000 3,100,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureFairValuesOfDerivativeInstrumentsDetail ]
2 Context C_0000789019_msftBalanceSheetOffsettingEligibilityAxis_msftEligibleForOffsettingMember_us-gaapBalanceSheetLocationAxis_us-gaapOtherCurrentAssetsMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
msft:DerivativeAssetsNetAmountsPresentedInBalanceSheet debit -6 0 246000000 246,000,000 Instance OK
base:DerivativeFairValueOfDerivativeAsset 1.0 debit -6 548000000 548,000,000 Instance
base:DerivativeAssetFairValueGrossLiability -1.0 credit -6 302000000 302,000,000 Instance
2 Context C_0000789019_msftBalanceSheetOffsettingEligibilityAxis_msftEligibleForOffsettingMember_us-gaapBalanceSheetLocationAxis_msftEquityAndOtherInvestmentsMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
msft:DerivativeAssetsNetAmountsPresentedInBalanceSheet debit -6 0 -7000000 -7,000,000 Instance OK
base:DerivativeFairValueOfDerivativeAsset 1.0 debit -6 18000000 18,000,000 Instance
base:DerivativeAssetFairValueGrossLiability -1.0 credit -6 25000000 25,000,000 Instance
2 Context C_0000789019_msftBalanceSheetOffsettingEligibilityAxis_msftEligibleForOffsettingMember_us-gaapBalanceSheetLocationAxis_us-gaapOtherCurrentLiabilitiesMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
msft:DerivativeLiabilitiesNetAmountsPresentedInBalanceSheet credit -6 0 232000000 232,000,000 Instance OK
base:DerivativeFairValueOfDerivativeLiability 1.0 credit -6 630000000 630,000,000 Instance
base:DerivativeLiabilityFairValueGrossAsset -1.0 debit -6 398000000 398,000,000 Instance
2 Context C_0000789019_msftBalanceSheetOffsettingEligibilityAxis_msftEligibleForOffsettingMember_us-gaapBalanceSheetLocationAxis_us-gaapShortTermInvestmentsMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
msft:DerivativeAssetsNetAmountsPresentedInBalanceSheet debit -6 0 -5000000 -5,000,000 Instance OK
base:DerivativeFairValueOfDerivativeAsset 1.0 debit -6 69000000 69,000,000 Instance
base:DerivativeAssetFairValueGrossLiability -1.0 credit -6 74000000 74,000,000 Instance
2 Context C_0000789019_msftBalanceSheetOffsettingEligibilityAxis_msftEligibleForOffsettingMember_us-gaapBalanceSheetLocationAxis_us-gaapOtherCurrentLiabilitiesMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
msft:DerivativeLiabilitiesNetAmountsPresentedInBalanceSheet credit -6 0 113000000 113,000,000 Instance OK
base:DerivativeFairValueOfDerivativeLiability 1.0 credit -6 334000000 334,000,000 Instance
base:DerivativeLiabilityFairValueGrossAsset -1.0 debit -6 221000000 221,000,000 Instance
2 Context C_0000789019_msftBalanceSheetOffsettingEligibilityAxis_msftEligibleForOffsettingMember_us-gaapBalanceSheetLocationAxis_us-gaapOtherNoncurrentLiabilitiesMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
msft:DerivativeLiabilitiesNetAmountsPresentedInBalanceSheet credit -6 0 1000000 1,000,000 Instance OK
base:DerivativeFairValueOfDerivativeLiability 1.0 credit -6 8000000 8,000,000 Instance
base:DerivativeLiabilityFairValueGrossAsset -1.0 debit -6 7000000 7,000,000 Instance
2 Context C_0000789019_msftBalanceSheetOffsettingEligibilityAxis_msftEligibleForOffsettingMember_us-gaapBalanceSheetLocationAxis_us-gaapShortTermInvestmentsMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
msft:DerivativeAssetsNetAmountsPresentedInBalanceSheet debit -6 0 80000000 80,000,000 Instance OK
base:DerivativeFairValueOfDerivativeAsset 1.0 debit -6 100000000 100,000,000 Instance
base:DerivativeAssetFairValueGrossLiability -1.0 credit -6 20000000 20,000,000 Instance
2 Context C_0000789019_msftBalanceSheetOffsettingEligibilityAxis_msftEligibleForOffsettingMember_us-gaapBalanceSheetLocationAxis_us-gaapOtherCurrentAssetsMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
msft:DerivativeAssetsNetAmountsPresentedInBalanceSheet debit -6 0 204000000 204,000,000 Instance OK
base:DerivativeFairValueOfDerivativeAsset 1.0 debit -6 336000000 336,000,000 Instance
base:DerivativeAssetFairValueGrossLiability -1.0 credit -6 132000000 132,000,000 Instance
2 Context C_0000789019_msftBalanceSheetOffsettingEligibilityAxis_msftEligibleForOffsettingMember_us-gaapBalanceSheetLocationAxis_msftEquityAndOtherInvestmentsMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
msft:DerivativeAssetsNetAmountsPresentedInBalanceSheet debit -6 0 0 0 Instance OK
base:DerivativeFairValueOfDerivativeAsset 1.0 debit -6 67000000 67,000,000 Instance
base:DerivativeAssetFairValueGrossLiability -1.0 credit -6 67000000 67,000,000 Instance
2 Context C_0000789019_msftBalanceSheetOffsettingEligibilityAxis_msftEligibleForOffsettingMember_us-gaapBalanceSheetLocationAxis_us-gaapOtherNoncurrentAssetsMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
msft:DerivativeAssetsNetAmountsPresentedInBalanceSheet debit -6 0 -2000000 -2,000,000 Instance OK
base:DerivativeFairValueOfDerivativeAsset 1.0 debit -6 6000000 6,000,000 Instance
base:DerivativeAssetFairValueGrossLiability -1.0 credit -6 8000000 8,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureFiniteLivedIntangibleAssetsDetail ]
2 Context C_0000789019_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis_us-gaapMarketingRelatedIntangibleAssetsMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:FiniteLivedIntangibleAssetsNet debit -6 0 1253000000 1,253,000,000 Instance OK
base:FiniteLivedIntangibleAssetsGross 1.0 debit -6 1869000000 1,869,000,000 Instance
base:FiniteLivedIntangibleAssetsAccumulatedAmortization -1.0 credit -6 616000000 616,000,000 Instance
2 Context C_0000789019_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis_us-gaapTechnologyBasedIntangibleAssetsMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:FiniteLivedIntangibleAssetsNet debit -6 0 2322000000 2,322,000,000 Instance OK
base:FiniteLivedIntangibleAssetsGross 1.0 debit -6 5970000000 5,970,000,000 Instance
base:FiniteLivedIntangibleAssetsAccumulatedAmortization -1.0 credit -6 3648000000 3,648,000,000 Instance
2 Context C_0000789019_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis_us-gaapCustomerRelationshipsMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:FiniteLivedIntangibleAssetsNet debit -6 0 80000000 80,000,000 Instance OK
base:FiniteLivedIntangibleAssetsGross 1.0 debit -6 465000000 465,000,000 Instance
base:FiniteLivedIntangibleAssetsAccumulatedAmortization -1.0 credit -6 385000000 385,000,000 Instance
2 Context C_0000789019_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis_us-gaapContractualRightsMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:FiniteLivedIntangibleAssetsNet debit -6 0 78000000 78,000,000 Instance OK
base:FiniteLivedIntangibleAssetsGross 1.0 debit -6 796000000 796,000,000 Instance
base:FiniteLivedIntangibleAssetsAccumulatedAmortization -1.0 credit -6 718000000 718,000,000 Instance
2 Context C_0000789019_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:FiniteLivedIntangibleAssetsNet debit -6 0 3733000000 3,733,000,000 Instance OK
base:FiniteLivedIntangibleAssetsGross 1.0 debit -6 9100000000 9,100,000,000 Instance
base:FiniteLivedIntangibleAssetsAccumulatedAmortization -1.0 credit -6 5367000000 5,367,000,000 Instance
2 Context C_0000789019_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:FiniteLivedIntangibleAssetsNet debit -6 0 10106000000 10,106,000,000 Instance OK
base:FiniteLivedIntangibleAssetsGross 1.0 debit -6 16667000000 16,667,000,000 Instance
base:FiniteLivedIntangibleAssetsAccumulatedAmortization -1.0 credit -6 6561000000 6,561,000,000 Instance
2 Context C_0000789019_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis_us-gaapTechnologyBasedIntangibleAssetsMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:FiniteLivedIntangibleAssetsNet debit -6 0 3447000000 3,447,000,000 Instance OK
base:FiniteLivedIntangibleAssetsGross 1.0 debit -6 7765000000 7,765,000,000 Instance
base:FiniteLivedIntangibleAssetsAccumulatedAmortization -1.0 credit -6 4318000000 4,318,000,000 Instance
2 Context C_0000789019_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis_us-gaapMarketingRelatedIntangibleAssetsMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:FiniteLivedIntangibleAssetsNet debit -6 0 3187000000 3,187,000,000 Instance OK
base:FiniteLivedIntangibleAssetsGross 1.0 debit -6 4016000000 4,016,000,000 Instance
base:FiniteLivedIntangibleAssetsAccumulatedAmortization -1.0 credit -6 829000000 829,000,000 Instance
2 Context C_0000789019_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis_us-gaapContractualRightsMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:FiniteLivedIntangibleAssetsNet debit -6 0 119000000 119,000,000 Instance OK
base:FiniteLivedIntangibleAssetsGross 1.0 debit -6 841000000 841,000,000 Instance
base:FiniteLivedIntangibleAssetsAccumulatedAmortization -1.0 credit -6 722000000 722,000,000 Instance
2 Context C_0000789019_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis_us-gaapCustomerRelationshipsMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:FiniteLivedIntangibleAssetsNet debit -6 0 3353000000 3,353,000,000 Instance OK
base:FiniteLivedIntangibleAssetsGross 1.0 debit -6 4045000000 4,045,000,000 Instance
base:FiniteLivedIntangibleAssetsAccumulatedAmortization -1.0 credit -6 692000000 692,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureFutureMinimumLeasePaymentsUnderNonCancellableCapitalLeasesDetail ]
2 Context C_0000789019_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:CapitalLeasesFutureMinimumPaymentsDue credit -6 0 3460000000 3,460,000,000 Instance OK
base:CapitalLeasesFutureMinimumPaymentsDueCurrent 1.0 credit -6 209000000 209,000,000 Instance
base:CapitalLeasesFutureMinimumPaymentsDueInTwoYears 1.0 credit -6 217000000 217,000,000 Instance
base:CapitalLeasesFutureMinimumPaymentsDueInThreeYears 1.0 credit -6 222000000 222,000,000 Instance
base:CapitalLeasesFutureMinimumPaymentsDueInFourYears 1.0 credit -6 227000000 227,000,000 Instance
base:CapitalLeasesFutureMinimumPaymentsDueInFiveYears 1.0 credit -6 232000000 232,000,000 Instance
base:CapitalLeasesFutureMinimumPaymentsDueThereafter 1.0 credit -6 2353000000 2,353,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureFutureMinimumRentalCommitmentsUnderNonCancellableOperatingLeasesDetail ]
2 Context C_0000789019_us-gaapPropertyPlantAndEquipmentByTypeAxis_us-gaapBuildingMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OperatingLeasesFutureMinimumPaymentsDue credit -6 0 7872000000 7,872,000,000 Instance OK
base:OperatingLeasesFutureMinimumPaymentsDueCurrent 1.0 credit -6 1292000000 1,292,000,000 Instance
base:OperatingLeasesFutureMinimumPaymentsDueInTwoYears 1.0 credit -6 1220000000 1,220,000,000 Instance
base:OperatingLeasesFutureMinimumPaymentsDueInThreeYears 1.0 credit -6 1115000000 1,115,000,000 Instance
base:OperatingLeasesFutureMinimumPaymentsDueInFourYears 1.0 credit -6 908000000 908,000,000 Instance
base:OperatingLeasesFutureMinimumPaymentsDueInFiveYears 1.0 credit -6 749000000 749,000,000 Instance
base:OperatingLeasesFutureMinimumPaymentsDueThereafter 1.0 credit -6 2588000000 2,588,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureGainsLossesOnFairValueHedgesAndRelatedHedgedItemsDetail ]
2 Context C_0000789019_us-gaapDerivativeInstrumentRiskAxis_us-gaapEquityContractMember_20140701_20150630 [ 2014-07-01 - 2015-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:GainLossOnFairValueHedgeIneffectivenessNet credit -6 0 0 0 Instance OK
base:ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1 1.0 credit -6 -107000000 -107,000,000 Instance
base:ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1 1.0 credit -6 107000000 107,000,000 Instance
2 Context C_0000789019_us-gaapDerivativeInstrumentRiskAxis_us-gaapForeignExchangeContractMember_20140701_20150630 [ 2014-07-01 - 2015-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:GainLossOnFairValueHedgeIneffectivenessNet credit -6 0 16000000 16,000,000 Instance OK
base:ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1 1.0 credit -6 741000000 741,000,000 Instance
base:ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1 1.0 credit -6 -725000000 -725,000,000 Instance
2 Context C_0000789019_us-gaapDerivativeInstrumentRiskAxis_us-gaapEquityContractMember_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:GainLossOnFairValueHedgeIneffectivenessNet credit -6 0 0 0 Instance OK
base:ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1 1.0 credit -6 -76000000 -76,000,000 Instance
base:ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1 1.0 credit -6 76000000 76,000,000 Instance
2 Context C_0000789019_us-gaapDerivativeInstrumentRiskAxis_us-gaapForeignExchangeContractMember_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:GainLossOnFairValueHedgeIneffectivenessNet credit -6 0 41000000 41,000,000 Instance OK
base:ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1 1.0 credit -6 -797000000 -797,000,000 Instance
base:ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1 1.0 credit -6 838000000 838,000,000 Instance
2 Context C_0000789019_us-gaapDerivativeInstrumentRiskAxis_us-gaapEquityContractMember_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:GainLossOnFairValueHedgeIneffectivenessNet credit -6 0 0 0 Instance OK
base:ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1 1.0 credit -6 -74000000 -74,000,000 Instance
base:ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1 1.0 credit -6 74000000 74,000,000 Instance
2 Context C_0000789019_us-gaapDerivativeInstrumentRiskAxis_us-gaapForeignExchangeContractMember_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:GainLossOnFairValueHedgeIneffectivenessNet credit -6 0 55000000 55,000,000 Instance OK
base:ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1 1.0 credit -6 441000000 441,000,000 Instance
base:ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1 1.0 credit -6 -386000000 -386,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureIncomeLossBeforeIncomeTaxesDetail ]
2 Context C_0000789019_20140701_20150630 [ 2014-07-01 - 2015-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments credit -6 0 18507000000 18,507,000,000 Instance OK
base:IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic 1.0 credit -6 7363000000 7,363,000,000 Instance
base:IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign 1.0 credit -6 11144000000 11,144,000,000 Instance
2 Context C_0000789019_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments credit -6 0 19751000000 19,751,000,000 Instance OK
base:IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic 1.0 credit -6 -325000000 -325,000,000 Instance
base:IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign 1.0 credit -6 20076000000 20,076,000,000 Instance
2 Context C_0000789019_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments credit -6 0 23149000000 23,149,000,000 Instance OK
base:IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic 1.0 credit -6 453000000 453,000,000 Instance
base:IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign 1.0 credit -6 22696000000 22,696,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureInvestmentComponentsIncludingAssociatedDerivativesDetail ]
2 Context C_0000789019_us-gaapInvestmentTypeAxis_msftOtherSecurityInvestmentsMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:EquityMethodInvestmentAggregateCost debit -6 0 615000000 615,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 0 0 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 0 0 Instance
base:EquityMethodInvestments 1.0 debit -6 615000000 615,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapMoneyMarketFundsMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 1012000000 1,012,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 0 0 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 0 0 Instance
base:AvailableForSaleSecurities 1.0 debit -6 1012000000 1,012,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapCommercialPaperMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 298000000 298,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 0 0 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 0 0 Instance
base:AvailableForSaleSecurities 1.0 debit -6 298000000 298,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapCertificatesOfDepositMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 1000000000 1,000,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 0 0 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 0 0 Instance
base:AvailableForSaleSecurities 1.0 debit -6 1000000000 1,000,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapUSGovernmentAgenciesDebtSecuritiesMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 89970000000 89,970,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 245000000 245,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 11000000 11,000,000 Instance
base:AvailableForSaleSecurities 1.0 debit -6 90204000000 90,204,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapForeignGovernmentDebtSecuritiesMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 5502000000 5,502,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 10000000 10,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 18000000 18,000,000 Instance
base:AvailableForSaleSecurities 1.0 debit -6 5494000000 5,494,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapAssetBackedSecuritiesMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 4789000000 4,789,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 21000000 21,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 2000000 2,000,000 Instance
base:AvailableForSaleSecurities 1.0 debit -6 4808000000 4,808,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapCorporateDebtSecuritiesMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 6509000000 6,509,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 110000000 110,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 35000000 35,000,000 Instance
base:AvailableForSaleSecurities 1.0 debit -6 6584000000 6,584,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapUSStatesAndPoliticalSubdivisionsMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 285000000 285,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 57000000 57,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 0 0 Instance
base:AvailableForSaleSecurities 1.0 debit -6 342000000 342,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapEquitySecuritiesMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 5597000000 5,597,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 4452000000 4,452,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 236000000 236,000,000 Instance
base:AvailableForSaleSecurities 1.0 debit -6 9813000000 9,813,000,000 Instance
2 Context C_0000789019_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 119078000000 119,078,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 4895000000 4,895,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 302000000 302,000,000 Instance
base:AvailableForSaleSecurities 1.0 debit -6 123671000000 123,671,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_msftOtherSecurityInvestmentsMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:EquityMethodInvestmentAggregateCost debit -6 0 523000000 523,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 0 0 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 0 0 Instance
base:EquityMethodInvestments 1.0 debit -6 523000000 523,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapEquitySecuritiesMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 2472000000 2,472,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 3062000000 3,062,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 34000000 34,000,000 Instance
base:AvailableForSaleSecurities 1.0 debit -6 5500000000 5,500,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapUSStatesAndPoliticalSubdivisionsMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 284000000 284,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 43000000 43,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 0 0 Instance
base:AvailableForSaleSecurities 1.0 debit -6 327000000 327,000,000 Instance
2 Context C_0000789019_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 136160000000 136,160,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 3267000000 3,267,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 423000000 423,000,000 Instance
base:AvailableForSaleSecurities 1.0 debit -6 139004000000 139,004,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapCorporateDebtSecuritiesMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 4786000000 4,786,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 61000000 61,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 12000000 12,000,000 Instance
base:AvailableForSaleSecurities 1.0 debit -6 4835000000 4,835,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapAssetBackedSecuritiesMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 3921000000 3,921,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 14000000 14,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 4000000 4,000,000 Instance
base:AvailableForSaleSecurities 1.0 debit -6 3931000000 3,931,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapUSGovernmentAgenciesDebtSecuritiesMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 112119000000 112,119,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 85000000 85,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 360000000 360,000,000 Instance
base:AvailableForSaleSecurities 1.0 debit -6 111844000000 111,844,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapCertificatesOfDepositMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 1358000000 1,358,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 0 0 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 0 0 Instance
base:AvailableForSaleSecurities 1.0 debit -6 1358000000 1,358,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapCommercialPaperMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 319000000 319,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 0 0 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 0 0 Instance
base:AvailableForSaleSecurities 1.0 debit -6 319000000 319,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapMoneyMarketFundsMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 1478000000 1,478,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 0 0 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 0 0 Instance
base:AvailableForSaleSecurities 1.0 debit -6 1478000000 1,478,000,000 Instance
2 Context C_0000789019_us-gaapInvestmentTypeAxis_us-gaapForeignGovernmentDebtSecuritiesMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesAmortizedCost debit -6 0 5276000000 5,276,000,000 Instance OK
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax -1.0 credit -6 2000000 2,000,000 Instance
base:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax 1.0 debit -6 13000000 13,000,000 Instance
base:AvailableForSaleSecurities 1.0 debit -6 5265000000 5,265,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureMajorClassesOfAssetsAndLiabilitiesToWhichWeAllocatedPurchasePriceDetail ]
2 Context C_0000789019_us-gaapBusinessAcquisitionAxis_msftLinkedInCorporationMember_20161208 [ 2016-12-08 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet debit -6 0 27009000000 27,009,000,000 Instance OK
base:BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents 1.0 debit -6 1328000000 1,328,000,000 Instance
base:BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsMarketableSecurities 1.0 debit -6 2110000000 2,110,000,000 Instance
base:BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther 1.0 debit -6 697000000 697,000,000 Instance
base:BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment 1.0 debit -6 1529000000 1,529,000,000 Instance
base:BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles 1.0 debit -6 7887000000 7,887,000,000 Instance
base:Goodwill 1.0 debit -6 16803000000 16,803,000,000 Instance
msft:BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesShortTermDebt -1.0 credit -6 1323000000 1,323,000,000 Instance
base:BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther -1.0 credit -6 1117000000 1,117,000,000 Instance
base:BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent -1.0 credit -6 774000000 774,000,000 Instance
msft:BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilitiesNet -1.0 credit -6 131000000 131,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureMaturitiesOfLongTermDebtDetail ]
2 Context C_0000789019_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:DebtInstrumentFaceAmount credit -6 0 77837000000 77,837,000,000 Instance OK
base:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths 1.0 credit -6 1050000000 1,050,000,000 Instance
base:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo 1.0 credit -6 4000000000 4,000,000,000 Instance
base:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree 1.0 credit -6 5518000000 5,518,000,000 Instance
base:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour 1.0 credit -6 3750000000 3,750,000,000 Instance
base:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive 1.0 credit -6 7996000000 7,996,000,000 Instance
base:LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive 1.0 credit -6 55523000000 55,523,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureNetRecognizedGainsLossesOnInvestmentsDetail ]
2 Context C_0000789019_20140701_20150630 [ 2014-07-01 - 2015-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:GainLossOnInvestments credit -6 0 716000000 716,000,000 Instance OK
base:MarketableSecuritiesRealizedGainLossOtherThanTemporaryImpairmentsAmount -1.0 debit -6 183000000 183,000,000 Instance
base:AvailableForSaleSecuritiesGrossRealizedGains 1.0 credit -6 1176000000 1,176,000,000 Instance
base:AvailableForSaleSecuritiesGrossRealizedLosses -1.0 debit -6 277000000 277,000,000 Instance
2 Context C_0000789019_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:GainLossOnInvestments credit -6 0 668000000 668,000,000 Instance OK
base:MarketableSecuritiesRealizedGainLossOtherThanTemporaryImpairmentsAmount -1.0 debit -6 322000000 322,000,000 Instance
base:AvailableForSaleSecuritiesGrossRealizedGains 1.0 credit -6 1376000000 1,376,000,000 Instance
base:AvailableForSaleSecuritiesGrossRealizedLosses -1.0 debit -6 386000000 386,000,000 Instance
2 Context C_0000789019_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:GainLossOnInvestments credit -6 0 2583000000 2,583,000,000 Instance OK
base:MarketableSecuritiesRealizedGainLossOtherThanTemporaryImpairmentsAmount -1.0 debit -6 55000000 55,000,000 Instance
base:AvailableForSaleSecuritiesGrossRealizedGains 1.0 credit -6 3064000000 3,064,000,000 Instance
base:AvailableForSaleSecuritiesGrossRealizedLosses -1.0 debit -6 426000000 426,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureProvisionForIncomeTaxesDetail ]
2 Context C_0000789019_20140701_20150630 [ 2014-07-01 - 2015-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:IncomeTaxExpenseBenefit debit -6 0 6314000000 6,314,000,000 Instance OK
base:CurrentIncomeTaxExpenseBenefit 1.0 debit -6 0 6090000000 6,090,000,000 Instance OK
base:CurrentFederalTaxExpenseBenefit 1.0 debit -6 3661000000 3,661,000,000 Instance
base:CurrentStateAndLocalTaxExpenseBenefit 1.0 debit -6 364000000 364,000,000 Instance
base:CurrentForeignTaxExpenseBenefit 1.0 debit -6 2065000000 2,065,000,000 Instance
base:DeferredIncomeTaxExpenseBenefit 1.0 debit -6 224000000 224,000,000 Instance
2 Context C_0000789019_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:IncomeTaxExpenseBenefit debit -6 0 2953000000 2,953,000,000 Instance OK
base:CurrentIncomeTaxExpenseBenefit 1.0 debit -6 0 2621000000 2,621,000,000 Instance OK
base:CurrentFederalTaxExpenseBenefit 1.0 debit -6 545000000 545,000,000 Instance
base:CurrentStateAndLocalTaxExpenseBenefit 1.0 debit -6 136000000 136,000,000 Instance
base:CurrentForeignTaxExpenseBenefit 1.0 debit -6 1940000000 1,940,000,000 Instance
base:DeferredIncomeTaxExpenseBenefit 1.0 debit -6 332000000 332,000,000 Instance
2 Context C_0000789019_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:IncomeTaxExpenseBenefit debit -6 0 1945000000 1,945,000,000 Instance OK
base:CurrentIncomeTaxExpenseBenefit 1.0 debit -6 0 5241000000 5,241,000,000 Instance OK
base:CurrentFederalTaxExpenseBenefit 1.0 debit -6 2739000000 2,739,000,000 Instance
base:CurrentStateAndLocalTaxExpenseBenefit 1.0 debit -6 30000000 30,000,000 Instance
base:CurrentForeignTaxExpenseBenefit 1.0 debit -6 2472000000 2,472,000,000 Instance
base:DeferredIncomeTaxExpenseBenefit 1.0 debit -6 -3296000000 -3,296,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureReconciliationOfTotalAssetsMeasuredAtFairValueOnRecurringBasisToBalanceSheetPresentationDetail ]
2 Context C_0000789019_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecurities debit -6 0 123671000000 119,031,000,000 Instance Inconsistency found, calculated value is 119,031,000,000
base:AssetsFairValueDisclosureRecurring 1.0 debit -6 119019000000 119,019,000,000 Instance
base:OtherAssetsFairValueDisclosure 1.0 debit -6 12000000 12,000,000 Instance
2 Context C_0000789019_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecurities debit -6 0 139004000000 133,986,000,000 Instance Inconsistency found, calculated value is 133,986,000,000
base:AssetsFairValueDisclosureRecurring 1.0 debit -6 133985000000 133,985,000,000 Instance
base:OtherAssetsFairValueDisclosure 1.0 debit -6 1000000 1,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureSummaryOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetail ]
2 Context C_0000789019_us-gaapStatementEquityComponentsAxis_us-gaapAccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember_20140701_20150630 [ 2014-07-01 - 2015-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent credit -6 0 559000000 559,000,000 Instance OK
base:OciBeforeReclassificationsNetOfTaxAttributableToParent 1.0 credit -6 1152000000 1,152,000,000 Instance
base:ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent -1.0 debit -6 0 593000000 -15,000,000 Instance Inconsistency found, calculated value is -15,000,000
base:ReclassificationFromAociCurrentPeriodTax -1.0 credit -6 15000000 15,000,000 Instance
2 Context C_0000789019_us-gaapStatementEquityComponentsAxis_us-gaapAccumulatedNetUnrealizedInvestmentGainLossMember_20140701_20150630 [ 2014-07-01 - 2015-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent credit -6 0 -362000000 -362,000,000 Instance OK
base:OciBeforeReclassificationsNetOfTaxAttributableToParent 1.0 credit -6 110000000 110,000,000 Instance
base:ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent -1.0 debit -6 0 472000000 -256,000,000 Instance Inconsistency found, calculated value is -256,000,000
base:ReclassificationFromAociCurrentPeriodTax -1.0 credit -6 256000000 256,000,000 Instance
2 Context C_0000789019_us-gaapStatementEquityComponentsAxis_us-gaapAccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent credit -6 0 -238000000 -238,000,000 Instance OK
base:OciBeforeReclassificationsNetOfTaxAttributableToParent 1.0 credit -6 351000000 351,000,000 Instance
base:ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent -1.0 debit -6 0 589000000 -36,000,000 Instance Inconsistency found, calculated value is -36,000,000
base:ReclassificationFromAociCurrentPeriodTax -1.0 credit -6 36000000 36,000,000 Instance
2 Context C_0000789019_us-gaapStatementEquityComponentsAxis_us-gaapAccumulatedNetUnrealizedInvestmentGainLossMember_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent credit -6 0 -228000000 -228,000,000 Instance OK
base:OciBeforeReclassificationsNetOfTaxAttributableToParent 1.0 credit -6 219000000 219,000,000 Instance
base:ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent -1.0 debit -6 0 447000000 -241,000,000 Instance Inconsistency found, calculated value is -241,000,000
base:ReclassificationFromAociCurrentPeriodTax -1.0 credit -6 241000000 241,000,000 Instance
2 Context C_0000789019_us-gaapStatementEquityComponentsAxis_us-gaapAccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent credit -6 0 -218000000 -218,000,000 Instance OK
base:OciBeforeReclassificationsNetOfTaxAttributableToParent 1.0 credit -6 328000000 328,000,000 Instance
base:ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent -1.0 debit -6 0 546000000 -9,000,000 Instance Inconsistency found, calculated value is -9,000,000
base:ReclassificationFromAociCurrentPeriodTax -1.0 credit -6 9000000 9,000,000 Instance
2 Context C_0000789019_us-gaapStatementEquityComponentsAxis_us-gaapAccumulatedNetUnrealizedInvestmentGainLossMember_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent credit -6 0 -1116000000 -1,116,000,000 Instance OK
base:OciBeforeReclassificationsNetOfTaxAttributableToParent 1.0 credit -6 517000000 517,000,000 Instance
base:ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent -1.0 debit -6 0 1633000000 -880,000,000 Instance Inconsistency found, calculated value is -880,000,000
base:ReclassificationFromAociCurrentPeriodTax -1.0 credit -6 880000000 880,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/DisclosureUnrealizedLossesOnInvestmentsDetail ]
2 Context C_0000789019_us-gaapMajorTypesOfDebtAndEquitySecuritiesAxis_us-gaapAssetBackedSecuritiesMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss debit -6 0 2000000 2,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss 1.0 debit -6 1000000 1,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss 1.0 debit -6 1000000 1,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue debit -6 0 1166000000 1,166,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue 1.0 debit -6 844000000 844,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue 1.0 debit -6 322000000 322,000,000 Instance
2 Context C_0000789019_us-gaapMajorTypesOfDebtAndEquitySecuritiesAxis_us-gaapCorporateDebtSecuritiesMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss debit -6 0 35000000 35,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss 1.0 debit -6 11000000 11,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss 1.0 debit -6 24000000 24,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue debit -6 0 1968000000 1,968,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue 1.0 debit -6 1180000000 1,180,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue 1.0 debit -6 788000000 788,000,000 Instance
2 Context C_0000789019_us-gaapMajorTypesOfDebtAndEquitySecuritiesAxis_us-gaapForeignGovernmentDebtSecuritiesMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss debit -6 0 18000000 18,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss 1.0 debit -6 3000000 3,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss 1.0 debit -6 15000000 15,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue debit -6 0 3487000000 3,487,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue 1.0 debit -6 3452000000 3,452,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue 1.0 debit -6 35000000 35,000,000 Instance
2 Context C_0000789019_us-gaapMajorTypesOfDebtAndEquitySecuritiesAxis_us-gaapUSGovernmentAgenciesDebtSecuritiesMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss debit -6 0 11000000 11,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss 1.0 debit -6 3000000 3,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss 1.0 debit -6 8000000 8,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue debit -6 0 6248000000 6,248,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue 1.0 debit -6 5816000000 5,816,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue 1.0 debit -6 432000000 432,000,000 Instance
2 Context C_0000789019_us-gaapMajorTypesOfDebtAndEquitySecuritiesAxis_us-gaapEquitySecuritiesMember_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss debit -6 0 236000000 236,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss 1.0 debit -6 147000000 147,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss 1.0 debit -6 89000000 89,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue debit -6 0 1286000000 1,286,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue 1.0 debit -6 896000000 896,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue 1.0 debit -6 390000000 390,000,000 Instance
2 Context C_0000789019_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss debit -6 0 302000000 302,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss 1.0 debit -6 165000000 165,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss 1.0 debit -6 137000000 137,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue debit -6 0 14155000000 14,155,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue 1.0 debit -6 12188000000 12,188,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue 1.0 debit -6 1967000000 1,967,000,000 Instance
2 Context C_0000789019_us-gaapMajorTypesOfDebtAndEquitySecuritiesAxis_us-gaapAssetBackedSecuritiesMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss debit -6 0 4000000 4,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss 1.0 debit -6 3000000 3,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss 1.0 debit -6 1000000 1,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue debit -6 0 1266000000 1,266,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue 1.0 debit -6 1068000000 1,068,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue 1.0 debit -6 198000000 198,000,000 Instance
2 Context C_0000789019_us-gaapMajorTypesOfDebtAndEquitySecuritiesAxis_us-gaapForeignGovernmentDebtSecuritiesMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss debit -6 0 13000000 13,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss 1.0 debit -6 2000000 2,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss 1.0 debit -6 11000000 11,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue debit -6 0 4029000000 4,029,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue 1.0 debit -6 4006000000 4,006,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue 1.0 debit -6 23000000 23,000,000 Instance
2 Context C_0000789019_us-gaapMajorTypesOfDebtAndEquitySecuritiesAxis_us-gaapCorporateDebtSecuritiesMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss debit -6 0 12000000 12,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss 1.0 debit -6 8000000 8,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss 1.0 debit -6 4000000 4,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue debit -6 0 846000000 846,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue 1.0 debit -6 669000000 669,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue 1.0 debit -6 177000000 177,000,000 Instance
2 Context C_0000789019_us-gaapMajorTypesOfDebtAndEquitySecuritiesAxis_us-gaapUSGovernmentAgenciesDebtSecuritiesMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss debit -6 0 360000000 360,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss 1.0 debit -6 348000000 348,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss 1.0 debit -6 12000000 12,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue debit -6 0 87929000000 87,929,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue 1.0 debit -6 87558000000 87,558,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue 1.0 debit -6 371000000 371,000,000 Instance
2 Context C_0000789019_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss debit -6 0 423000000 423,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss 1.0 debit -6 367000000 367,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss 1.0 debit -6 56000000 56,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue debit -6 0 94287000000 94,287,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue 1.0 debit -6 93370000000 93,370,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue 1.0 debit -6 917000000 917,000,000 Instance
2 Context C_0000789019_us-gaapMajorTypesOfDebtAndEquitySecuritiesAxis_us-gaapEquitySecuritiesMember_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss debit -6 0 34000000 34,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss 1.0 debit -6 6000000 6,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss 1.0 debit -6 28000000 28,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue debit -6 0 217000000 217,000,000 Instance OK
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue 1.0 debit -6 69000000 69,000,000 Instance
base:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue 1.0 debit -6 148000000 148,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/StatementBALANCESHEETS ]
2 Context C_0000789019_20160630 [ 2016-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:LiabilitiesAndStockholdersEquity credit -6 0 193468000000 193,468,000,000 Instance OK
base:Liabilities 1.0 credit -6 0 121471000000 121,471,000,000 Instance OK
base:LiabilitiesCurrent 1.0 credit -6 0 59357000000 59,357,000,000 Instance OK
base:AccountsPayableCurrent 1.0 credit -6 6898000000 6,898,000,000 Instance
base:ShortTermBorrowings 1.0 credit -6 12904000000 12,904,000,000 Instance
base:LongTermDebtCurrent 1.0 credit -6 0 0 Instance
base:EmployeeRelatedLiabilitiesCurrent 1.0 credit -6 5264000000 5,264,000,000 Instance
base:AccruedIncomeTaxesCurrent 1.0 credit -6 580000000 580,000,000 Instance
base:DeferredRevenueCurrent 1.0 credit -6 27468000000 27,468,000,000 Instance
base:DepositsReceivedForSecuritiesLoanedAtCarryingValue 1.0 credit -6 294000000 294,000,000 Instance
base:OtherLiabilitiesCurrent 1.0 credit -6 5949000000 5,949,000,000 Instance
base:LongTermDebtNoncurrent 1.0 credit -6 40557000000 40,557,000,000 Instance
base:DeferredRevenueNoncurrent 1.0 credit -6 6441000000 6,441,000,000 Instance
base:DeferredTaxLiabilitiesNoncurrent 1.0 credit -6 1476000000 1,476,000,000 Instance
base:OtherLiabilitiesNoncurrent 1.0 credit -6 13640000000 13,640,000,000 Instance
base:CommitmentsAndContingencies 1.0 credit - - nil nil Instance
base:StockholdersEquity 1.0 credit -6 0 71997000000 71,997,000,000 Instance OK
base:CommonStocksIncludingAdditionalPaidInCapital 1.0 credit -6 68178000000 68,178,000,000 Instance
base:RetainedEarningsAccumulatedDeficit 1.0 credit -6 2282000000 2,282,000,000 Instance
base:AccumulatedOtherComprehensiveIncomeLossNetOfTax 1.0 credit -6 1537000000 1,537,000,000 Instance
base:Assets debit -6 0 193468000000 193,468,000,000 Instance OK
base:AssetsCurrent 1.0 debit -6 0 139660000000 139,660,000,000 Instance OK
base:CashCashEquivalentsAndShortTermInvestments 1.0 debit -6 0 113240000000 113,240,000,000 Instance OK
base:CashAndCashEquivalentsAtCarryingValue 1.0 debit -6 6510000000 6,510,000,000 Instance
base:AvailableForSaleSecuritiesCurrent 1.0 debit -6 106730000000 106,730,000,000 Instance
base:AccountsReceivableNetCurrent 1.0 debit -6 18277000000 18,277,000,000 Instance
base:InventoryNet 1.0 debit -6 2251000000 2,251,000,000 Instance
base:OtherAssetsCurrent 1.0 debit -6 5892000000 5,892,000,000 Instance
base:PropertyPlantAndEquipmentNet 1.0 debit -6 18356000000 18,356,000,000 Instance
base:LongTermInvestments 1.0 debit -6 10431000000 10,431,000,000 Instance
base:Goodwill 1.0 debit -6 17872000000 17,872,000,000 Instance
base:FiniteLivedIntangibleAssetsNet 1.0 debit -6 3733000000 3,733,000,000 Instance
base:OtherAssetsNoncurrent 1.0 debit -6 3416000000 3,416,000,000 Instance
2 Context C_0000789019_20170630 [ 2017-06-30 - ]
c-equal
3 Unit U_iso4217USD
u-equal
base:LiabilitiesAndStockholdersEquity credit -6 0 241086000000 241,086,000,000 Instance OK
base:Liabilities 1.0 credit -6 0 168692000000 168,692,000,000 Instance OK
base:LiabilitiesCurrent 1.0 credit -6 0 64527000000 64,527,000,000 Instance OK
base:AccountsPayableCurrent 1.0 credit -6 7390000000 7,390,000,000 Instance
base:ShortTermBorrowings 1.0 credit -6 9072000000 9,072,000,000 Instance
base:LongTermDebtCurrent 1.0 credit -6 1049000000 1,049,000,000 Instance
base:EmployeeRelatedLiabilitiesCurrent 1.0 credit -6 5819000000 5,819,000,000 Instance
base:AccruedIncomeTaxesCurrent 1.0 credit -6 718000000 718,000,000 Instance
base:DeferredRevenueCurrent 1.0 credit -6 34102000000 34,102,000,000 Instance
base:DepositsReceivedForSecuritiesLoanedAtCarryingValue 1.0 credit -6 97000000 97,000,000 Instance
base:OtherLiabilitiesCurrent 1.0 credit -6 6280000000 6,280,000,000 Instance
base:LongTermDebtNoncurrent 1.0 credit -6 76073000000 76,073,000,000 Instance
base:DeferredRevenueNoncurrent 1.0 credit -6 10377000000 10,377,000,000 Instance
base:DeferredTaxLiabilitiesNoncurrent 1.0 credit -6 531000000 531,000,000 Instance
base:OtherLiabilitiesNoncurrent 1.0 credit -6 17184000000 17,184,000,000 Instance
base:CommitmentsAndContingencies 1.0 credit - - nil nil Instance
base:StockholdersEquity 1.0 credit -6 0 72394000000 72,394,000,000 Instance OK
base:CommonStocksIncludingAdditionalPaidInCapital 1.0 credit -6 69315000000 69,315,000,000 Instance
base:RetainedEarningsAccumulatedDeficit 1.0 credit -6 2648000000 2,648,000,000 Instance
base:AccumulatedOtherComprehensiveIncomeLossNetOfTax 1.0 credit -6 431000000 431,000,000 Instance
base:Assets debit -6 0 241086000000 241,086,000,000 Instance OK
base:AssetsCurrent 1.0 debit -6 0 159851000000 159,851,000,000 Instance OK
base:CashCashEquivalentsAndShortTermInvestments 1.0 debit -6 0 132981000000 132,981,000,000 Instance OK
base:CashAndCashEquivalentsAtCarryingValue 1.0 debit -6 7663000000 7,663,000,000 Instance
base:AvailableForSaleSecuritiesCurrent 1.0 debit -6 125318000000 125,318,000,000 Instance
base:AccountsReceivableNetCurrent 1.0 debit -6 19792000000 19,792,000,000 Instance
base:InventoryNet 1.0 debit -6 2181000000 2,181,000,000 Instance
base:OtherAssetsCurrent 1.0 debit -6 4897000000 4,897,000,000 Instance
base:PropertyPlantAndEquipmentNet 1.0 debit -6 23734000000 23,734,000,000 Instance
base:LongTermInvestments 1.0 debit -6 6023000000 6,023,000,000 Instance
base:Goodwill 1.0 debit -6 35122000000 35,122,000,000 Instance
base:FiniteLivedIntangibleAssetsNet 1.0 debit -6 10106000000 10,106,000,000 Instance
base:OtherAssetsNoncurrent 1.0 debit -6 6250000000 6,250,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/StatementCASHFLOWSSTATEMENTS ]
2 Context C_0000789019_20140701_20150630 [ 2014-07-01 - 2015-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:CashAndCashEquivalentsPeriodIncreaseDecrease debit -6 0 -3074000000 -3,074,000,000 Instance OK
base:NetCashProvidedByUsedInOperatingActivitiesContinuingOperations 1.0 -6 0 29668000000 29,668,000,000 Instance OK
base:NetIncomeLoss 1.0 credit -6 12193000000 12,193,000,000 Instance
base:AssetImpairmentCharges 1.0 debit -6 7498000000 7,498,000,000 Instance
msft:DepreciationAmortizationAndOther 1.0 debit -6 5957000000 5,957,000,000 Instance
base:ShareBasedCompensation 1.0 debit -6 2574000000 2,574,000,000 Instance
msft:GainLossOnInvestmentsAndDerivativeInstruments -1.0 credit -6 443000000 443,000,000 Instance
base:DeferredIncomeTaxExpenseBenefit 1.0 debit -6 224000000 224,000,000 Instance
base:IncreaseDecreaseInDeferredRevenue 1.0 debit -6 45072000000 45,072,000,000 Instance
base:RecognitionOfDeferredRevenue -1.0 credit -6 44920000000 44,920,000,000 Instance
base:IncreaseDecreaseInAccountsReceivable -1.0 credit -6 -1456000000 -1,456,000,000 Instance
base:IncreaseDecreaseInInventories -1.0 credit -6 272000000 272,000,000 Instance
base:IncreaseDecreaseInOtherCurrentAssets -1.0 credit -6 -62000000 -62,000,000 Instance
base:IncreaseDecreaseInOtherNoncurrentAssets -1.0 credit -6 -346000000 -346,000,000 Instance
base:IncreaseDecreaseInAccountsPayable 1.0 debit -6 -1054000000 -1,054,000,000 Instance
base:IncreaseDecreaseInOtherCurrentLiabilities 1.0 debit -6 -624000000 -624,000,000 Instance
base:IncreaseDecreaseInOtherNoncurrentLiabilities 1.0 debit -6 1599000000 1,599,000,000 Instance
base:NetCashProvidedByUsedInFinancingActivitiesContinuingOperations 1.0 debit -6 0 -9668000000 -9,668,000,000 Instance OK
base:ProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLess 1.0 debit -6 4481000000 4,481,000,000 Instance
base:ProceedsFromDebtMaturingInMoreThanThreeMonths 1.0 debit -6 10680000000 10,680,000,000 Instance
base:RepaymentsOfDebtMaturingInMoreThanThreeMonths -1.0 credit -6 1500000000 1,500,000,000 Instance
base:ProceedsFromIssuanceOfCommonStock 1.0 debit -6 634000000 634,000,000 Instance
base:PaymentsForRepurchaseOfCommonStock -1.0 credit -6 14443000000 14,443,000,000 Instance
base:PaymentsOfDividendsCommonStock -1.0 credit -6 9882000000 9,882,000,000 Instance
base:ProceedsFromPaymentsForOtherFinancingActivities 1.0 debit -6 362000000 362,000,000 Instance
base:NetCashProvidedByUsedInInvestingActivitiesContinuingOperations 1.0 debit -6 0 -23001000000 -23,001,000,000 Instance OK
base:PaymentsToAcquirePropertyPlantAndEquipment -1.0 credit -6 5944000000 5,944,000,000 Instance
msft:AcquisitionsNetOfCashAcquiredAndPurchasesOfIntangibleAndOtherAssets -1.0 credit -6 3723000000 3,723,000,000 Instance
base:PaymentsToAcquireInvestments -1.0 credit -6 98729000000 98,729,000,000 Instance
base:ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities 1.0 debit -6 15013000000 15,013,000,000 Instance
base:ProceedsFromSaleOfAvailableForSaleSecurities 1.0 debit -6 70848000000 70,848,000,000 Instance
base:IncreaseDecreaseInCollateralHeldUnderSecuritiesLending -1.0 credit -6 466000000 466,000,000 Instance
base:EffectOfExchangeRateOnCashAndCashEquivalents 1.0 debit -6 -73000000 -73,000,000 Instance
2 Context C_0000789019_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:CashAndCashEquivalentsPeriodIncreaseDecrease debit -6 0 915000000 915,000,000 Instance OK
base:NetCashProvidedByUsedInOperatingActivitiesContinuingOperations 1.0 -6 0 33325000000 33,325,000,000 Instance OK
base:NetIncomeLoss 1.0 credit -6 16798000000 16,798,000,000 Instance
base:AssetImpairmentCharges 1.0 debit -6 630000000 630,000,000 Instance
msft:DepreciationAmortizationAndOther 1.0 debit -6 6622000000 6,622,000,000 Instance
base:ShareBasedCompensation 1.0 debit -6 2668000000 2,668,000,000 Instance
msft:GainLossOnInvestmentsAndDerivativeInstruments -1.0 credit -6 223000000 223,000,000 Instance
base:DeferredIncomeTaxExpenseBenefit 1.0 debit -6 332000000 332,000,000 Instance
base:IncreaseDecreaseInDeferredRevenue 1.0 debit -6 57072000000 57,072,000,000 Instance
base:RecognitionOfDeferredRevenue -1.0 credit -6 48498000000 48,498,000,000 Instance
base:IncreaseDecreaseInAccountsReceivable -1.0 credit -6 530000000 530,000,000 Instance
base:IncreaseDecreaseInInventories -1.0 credit -6 -600000000 -600,000,000 Instance
base:IncreaseDecreaseInOtherCurrentAssets -1.0 credit -6 1167000000 1,167,000,000 Instance
base:IncreaseDecreaseInOtherNoncurrentAssets -1.0 credit -6 41000000 41,000,000 Instance
base:IncreaseDecreaseInAccountsPayable 1.0 debit -6 88000000 88,000,000 Instance
base:IncreaseDecreaseInOtherCurrentLiabilities 1.0 debit -6 -260000000 -260,000,000 Instance
base:IncreaseDecreaseInOtherNoncurrentLiabilities 1.0 debit -6 -766000000 -766,000,000 Instance
base:NetCashProvidedByUsedInFinancingActivitiesContinuingOperations 1.0 debit -6 0 -8393000000 -8,393,000,000 Instance OK
base:ProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLess 1.0 debit -6 7195000000 7,195,000,000 Instance
base:ProceedsFromDebtMaturingInMoreThanThreeMonths 1.0 debit -6 13884000000 13,884,000,000 Instance
base:RepaymentsOfDebtMaturingInMoreThanThreeMonths -1.0 credit -6 2796000000 2,796,000,000 Instance
base:ProceedsFromIssuanceOfCommonStock 1.0 debit -6 668000000 668,000,000 Instance
base:PaymentsForRepurchaseOfCommonStock -1.0 credit -6 15969000000 15,969,000,000 Instance
base:PaymentsOfDividendsCommonStock -1.0 credit -6 11006000000 11,006,000,000 Instance
base:ProceedsFromPaymentsForOtherFinancingActivities 1.0 debit -6 -369000000 -369,000,000 Instance
base:NetCashProvidedByUsedInInvestingActivitiesContinuingOperations 1.0 debit -6 0 -23950000000 -23,950,000,000 Instance OK
base:PaymentsToAcquirePropertyPlantAndEquipment -1.0 credit -6 8343000000 8,343,000,000 Instance
msft:AcquisitionsNetOfCashAcquiredAndPurchasesOfIntangibleAndOtherAssets -1.0 credit -6 1393000000 1,393,000,000 Instance
base:PaymentsToAcquireInvestments -1.0 credit -6 129758000000 129,758,000,000 Instance
base:ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities 1.0 debit -6 22054000000 22,054,000,000 Instance
base:ProceedsFromSaleOfAvailableForSaleSecurities 1.0 debit -6 93287000000 93,287,000,000 Instance
base:IncreaseDecreaseInCollateralHeldUnderSecuritiesLending -1.0 credit -6 -203000000 -203,000,000 Instance
base:EffectOfExchangeRateOnCashAndCashEquivalents 1.0 debit -6 -67000000 -67,000,000 Instance
2 Context C_0000789019_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:CashAndCashEquivalentsPeriodIncreaseDecrease debit -6 0 1153000000 1,153,000,000 Instance OK
base:NetCashProvidedByUsedInOperatingActivitiesContinuingOperations 1.0 -6 0 39507000000 39,507,000,000 Instance OK
base:NetIncomeLoss 1.0 credit -6 21204000000 21,204,000,000 Instance
base:AssetImpairmentCharges 1.0 debit -6 0 0 Instance
msft:DepreciationAmortizationAndOther 1.0 debit -6 8778000000 8,778,000,000 Instance
base:ShareBasedCompensation 1.0 debit -6 3266000000 3,266,000,000 Instance
msft:GainLossOnInvestmentsAndDerivativeInstruments -1.0 credit -6 2073000000 2,073,000,000 Instance
base:DeferredIncomeTaxExpenseBenefit 1.0 debit -6 -3296000000 -3,296,000,000 Instance
base:IncreaseDecreaseInDeferredRevenue 1.0 debit -6 67711000000 67,711,000,000 Instance
base:RecognitionOfDeferredRevenue -1.0 credit -6 57735000000 57,735,000,000 Instance
base:IncreaseDecreaseInAccountsReceivable -1.0 credit -6 925000000 925,000,000 Instance
base:IncreaseDecreaseInInventories -1.0 credit -6 -50000000 -50,000,000 Instance
base:IncreaseDecreaseInOtherCurrentAssets -1.0 credit -6 -1066000000 -1,066,000,000 Instance
base:IncreaseDecreaseInOtherNoncurrentAssets -1.0 credit -6 539000000 539,000,000 Instance
base:IncreaseDecreaseInAccountsPayable 1.0 debit -6 81000000 81,000,000 Instance
base:IncreaseDecreaseInOtherCurrentLiabilities 1.0 debit -6 386000000 386,000,000 Instance
base:IncreaseDecreaseInOtherNoncurrentLiabilities 1.0 debit -6 1533000000 1,533,000,000 Instance
base:NetCashProvidedByUsedInFinancingActivitiesContinuingOperations 1.0 debit -6 0 8408000000 8,408,000,000 Instance OK
base:ProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLess 1.0 debit -6 -4963000000 -4,963,000,000 Instance
base:ProceedsFromDebtMaturingInMoreThanThreeMonths 1.0 debit -6 44344000000 44,344,000,000 Instance
base:RepaymentsOfDebtMaturingInMoreThanThreeMonths -1.0 credit -6 7922000000 7,922,000,000 Instance
base:ProceedsFromIssuanceOfCommonStock 1.0 debit -6 772000000 772,000,000 Instance
base:PaymentsForRepurchaseOfCommonStock -1.0 credit -6 11788000000 11,788,000,000 Instance
base:PaymentsOfDividendsCommonStock -1.0 credit -6 11845000000 11,845,000,000 Instance
base:ProceedsFromPaymentsForOtherFinancingActivities 1.0 debit -6 -190000000 -190,000,000 Instance
base:NetCashProvidedByUsedInInvestingActivitiesContinuingOperations 1.0 debit -6 0 -46781000000 -46,781,000,000 Instance OK
base:PaymentsToAcquirePropertyPlantAndEquipment -1.0 credit -6 8129000000 8,129,000,000 Instance
msft:AcquisitionsNetOfCashAcquiredAndPurchasesOfIntangibleAndOtherAssets -1.0 credit -6 25944000000 25,944,000,000 Instance
base:PaymentsToAcquireInvestments -1.0 credit -6 176905000000 176,905,000,000 Instance
base:ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities 1.0 debit -6 28044000000 28,044,000,000 Instance
base:ProceedsFromSaleOfAvailableForSaleSecurities 1.0 debit -6 136350000000 136,350,000,000 Instance
base:IncreaseDecreaseInCollateralHeldUnderSecuritiesLending -1.0 credit -6 197000000 197,000,000 Instance
base:EffectOfExchangeRateOnCashAndCashEquivalents 1.0 debit -6 19000000 19,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/StatementCOMPREHENSIVEINCOMESTATEMENTS ]
2 Context C_0000789019_20140701_20150630 [ 2014-07-01 - 2015-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:ComprehensiveIncomeNetOfTax credit -6 0 11007000000 11,007,000,000 Instance OK
base:NetIncomeLoss 1.0 credit -6 12193000000 12,193,000,000 Instance
base:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent 1.0 credit -6 0 -1186000000 -1,186,000,000 Instance OK
base:OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesNetOfTax 1.0 credit -6 559000000 559,000,000 Instance
base:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax 1.0 credit -6 -362000000 -362,000,000 Instance
base:OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax 1.0 credit -6 -1383000000 -1,383,000,000 Instance
2 Context C_0000789019_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:ComprehensiveIncomeNetOfTax credit -6 0 15813000000 15,813,000,000 Instance OK
base:NetIncomeLoss 1.0 credit -6 16798000000 16,798,000,000 Instance
base:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent 1.0 credit -6 0 -985000000 -985,000,000 Instance OK
base:OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesNetOfTax 1.0 credit -6 -238000000 -238,000,000 Instance
base:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax 1.0 credit -6 -228000000 -228,000,000 Instance
base:OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax 1.0 credit -6 -519000000 -519,000,000 Instance
2 Context C_0000789019_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:ComprehensiveIncomeNetOfTax credit -6 0 20098000000 20,098,000,000 Instance OK
base:NetIncomeLoss 1.0 credit -6 21204000000 21,204,000,000 Instance
base:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent 1.0 credit -6 0 -1106000000 -1,106,000,000 Instance OK
base:OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesNetOfTax 1.0 credit -6 -218000000 -218,000,000 Instance
base:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax 1.0 credit -6 -1116000000 -1,116,000,000 Instance
base:OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax 1.0 credit -6 228000000 228,000,000 Instance


1 Extended Link [ http://www.xbrlsite.com/msft/role/StatementINCOMESTATEMENTS ]
2 Context C_0000789019_20140701_20150630 [ 2014-07-01 - 2015-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:NetIncomeLoss credit -6 0 12193000000 12,193,000,000 Instance OK
base:IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments 1.0 credit -6 0 18507000000 18,507,000,000 Instance OK
base:OperatingIncomeLoss 1.0 credit -6 0 18161000000 18,161,000,000 Instance OK
base:GrossProfit 1.0 credit -6 0 60542000000 60,542,000,000 Instance OK
base:SalesRevenueNet 1.0 credit -6 0 93580000000 93,580,000,000 Instance OK
base:SalesRevenueGoodsNet 1.0 credit -6 75956000000 75,956,000,000 Instance
msft:SalesRevenueServicesAndOtherNet 1.0 credit -6 17624000000 17,624,000,000 Instance
base:CostOfRevenue -1.0 debit -6 0 33038000000 33,038,000,000 Instance OK
base:CostOfGoodsSold 1.0 debit -6 21410000000 21,410,000,000 Instance
msft:CostOfServicesAndOther 1.0 debit -6 11628000000 11,628,000,000 Instance
base:ResearchAndDevelopmentExpense -1.0 debit -6 12046000000 12,046,000,000 Instance
base:SellingAndMarketingExpense -1.0 debit -6 15713000000 15,713,000,000 Instance
base:GeneralAndAdministrativeExpense -1.0 debit -6 4611000000 4,611,000,000 Instance
msft:ImpairmentIntegrationAndRestructuringExpenses -1.0 debit -6 10011000000 10,011,000,000 Instance
base:NonoperatingIncomeExpense 1.0 credit -6 346000000 346,000,000 Instance
base:IncomeTaxExpenseBenefit -1.0 debit -6 6314000000 6,314,000,000 Instance
2 Context C_0000789019_20150701_20150930 [ 2015-07-01 - 2015-09-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OperatingIncomeLoss credit -6 0 5793000000 13,172,000,000 Instance Inconsistency found, calculated value is 13,172,000,000
base:GrossProfit 1.0 credit -6 0 13172000000 20,379,000,000 Instance Inconsistency found, calculated value is 20,379,000,000
base:SalesRevenueNet 1.0 credit -6 20379000000 20,379,000,000 Instance
2 Context C_0000789019_us-gaapAdjustmentsForNewAccountingPronouncementsAxis_us-gaapAccountingStandardsUpdate201409Member_us-gaapStatementScenarioAxis_us-gaapScenarioPlanMember_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:NetIncomeLoss credit -6 0 3741000000 -2,147,000,000 Instance Inconsistency found, calculated value is -2,147,000,000
base:IncomeTaxExpenseBenefit -1.0 debit -6 2147000000 2,147,000,000 Instance
2 Context C_0000789019_us-gaapAdjustmentsForNewAccountingPronouncementsAxis_us-gaapAccountingStandardsUpdate201602Member_us-gaapStatementScenarioAxis_us-gaapScenarioPlanMember_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:NetIncomeLoss credit -6 0 0 0 Instance OK
base:IncomeTaxExpenseBenefit -1.0 debit -6 0 0 Instance
2 Context C_0000789019_us-gaapStatementScenarioAxis_us-gaapScenarioPlanMember_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:NetIncomeLoss credit -6 0 20539000000 -5,100,000,000 Instance Inconsistency found, calculated value is -5,100,000,000
base:IncomeTaxExpenseBenefit -1.0 debit -6 5100000000 5,100,000,000 Instance
2 Context C_0000789019_20150701_20160630 [ 2015-07-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:NetIncomeLoss credit -6 0 16798000000 16,798,000,000 Instance OK
base:IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments 1.0 credit -6 0 19751000000 19,751,000,000 Instance OK
base:OperatingIncomeLoss 1.0 credit -6 0 20182000000 20,182,000,000 Instance OK
base:GrossProfit 1.0 credit -6 0 52540000000 52,540,000,000 Instance OK
base:SalesRevenueNet 1.0 credit -6 0 85320000000 85,320,000,000 Instance OK
base:SalesRevenueGoodsNet 1.0 credit -6 61502000000 61,502,000,000 Instance
msft:SalesRevenueServicesAndOtherNet 1.0 credit -6 23818000000 23,818,000,000 Instance
base:CostOfRevenue -1.0 debit -6 0 32780000000 32,780,000,000 Instance OK
base:CostOfGoodsSold 1.0 debit -6 17880000000 17,880,000,000 Instance
msft:CostOfServicesAndOther 1.0 debit -6 14900000000 14,900,000,000 Instance
base:ResearchAndDevelopmentExpense -1.0 debit -6 11988000000 11,988,000,000 Instance
base:SellingAndMarketingExpense -1.0 debit -6 14697000000 14,697,000,000 Instance
base:GeneralAndAdministrativeExpense -1.0 debit -6 4563000000 4,563,000,000 Instance
msft:ImpairmentIntegrationAndRestructuringExpenses -1.0 debit -6 1110000000 1,110,000,000 Instance
base:NonoperatingIncomeExpense 1.0 credit -6 -431000000 -431,000,000 Instance
base:IncomeTaxExpenseBenefit -1.0 debit -6 2953000000 2,953,000,000 Instance
2 Context C_0000789019_20151001_20151231 [ 2015-10-01 - 2015-12-31 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OperatingIncomeLoss credit -6 0 6026000000 13,924,000,000 Instance Inconsistency found, calculated value is 13,924,000,000
base:GrossProfit 1.0 credit -6 0 13924000000 23,796,000,000 Instance Inconsistency found, calculated value is 23,796,000,000
base:SalesRevenueNet 1.0 credit -6 23796000000 23,796,000,000 Instance
2 Context C_0000789019_20160101_20160331 [ 2016-01-01 - 2016-03-31 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OperatingIncomeLoss credit -6 0 5283000000 12,809,000,000 Instance Inconsistency found, calculated value is 12,809,000,000
base:GrossProfit 1.0 credit -6 0 12809000000 20,531,000,000 Instance Inconsistency found, calculated value is 20,531,000,000
base:SalesRevenueNet 1.0 credit -6 20531000000 20,531,000,000 Instance
2 Context C_0000789019_20160401_20160630 [ 2016-04-01 - 2016-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OperatingIncomeLoss credit -6 0 3080000000 12,635,000,000 Instance Inconsistency found, calculated value is 12,635,000,000
base:GrossProfit 1.0 credit -6 0 12635000000 20,614,000,000 Instance Inconsistency found, calculated value is 20,614,000,000
base:SalesRevenueNet 1.0 credit -6 20614000000 20,614,000,000 Instance
2 Context C_0000789019_20160701_20160930 [ 2016-07-01 - 2016-09-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OperatingIncomeLoss credit -6 0 5225000000 12,609,000,000 Instance Inconsistency found, calculated value is 12,609,000,000
base:GrossProfit 1.0 credit -6 0 12609000000 20,453,000,000 Instance Inconsistency found, calculated value is 20,453,000,000
base:SalesRevenueNet 1.0 credit -6 20453000000 20,453,000,000 Instance
2 Context C_0000789019_us-gaapAdjustmentsForNewAccountingPronouncementsAxis_us-gaapAccountingStandardsUpdate201602Member_us-gaapStatementScenarioAxis_us-gaapScenarioPlanMember_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:NetIncomeLoss credit -6 0 0 0 Instance OK
base:IncomeTaxExpenseBenefit -1.0 debit -6 0 0 Instance
2 Context C_0000789019_us-gaapStatementScenarioAxis_us-gaapScenarioPlanMember_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:NetIncomeLoss credit -6 0 25489000000 -4,412,000,000 Instance Inconsistency found, calculated value is -4,412,000,000
base:IncomeTaxExpenseBenefit -1.0 debit -6 4412000000 4,412,000,000 Instance
2 Context C_0000789019_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:NetIncomeLoss credit -6 0 21204000000 21,204,000,000 Instance OK
base:IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments 1.0 credit -6 0 23149000000 23,149,000,000 Instance OK
base:OperatingIncomeLoss 1.0 credit -6 0 22326000000 22,326,000,000 Instance OK
base:GrossProfit 1.0 credit -6 0 55689000000 55,689,000,000 Instance OK
base:SalesRevenueNet 1.0 credit -6 0 89950000000 89,950,000,000 Instance OK
base:SalesRevenueGoodsNet 1.0 credit -6 57190000000 57,190,000,000 Instance
msft:SalesRevenueServicesAndOtherNet 1.0 credit -6 32760000000 32,760,000,000 Instance
base:CostOfRevenue -1.0 debit -6 0 34261000000 34,261,000,000 Instance OK
base:CostOfGoodsSold 1.0 debit -6 15175000000 15,175,000,000 Instance
msft:CostOfServicesAndOther 1.0 debit -6 19086000000 19,086,000,000 Instance
base:ResearchAndDevelopmentExpense -1.0 debit -6 13037000000 13,037,000,000 Instance
base:SellingAndMarketingExpense -1.0 debit -6 15539000000 15,539,000,000 Instance
base:GeneralAndAdministrativeExpense -1.0 debit -6 4481000000 4,481,000,000 Instance
msft:ImpairmentIntegrationAndRestructuringExpenses -1.0 debit -6 306000000 306,000,000 Instance
base:NonoperatingIncomeExpense 1.0 credit -6 823000000 823,000,000 Instance
base:IncomeTaxExpenseBenefit -1.0 debit -6 1945000000 1,945,000,000 Instance
2 Context C_0000789019_us-gaapAdjustmentsForNewAccountingPronouncementsAxis_us-gaapAccountingStandardsUpdate201409Member_us-gaapStatementScenarioAxis_us-gaapScenarioPlanMember_20160701_20170630 [ 2016-07-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:NetIncomeLoss credit -6 0 4285000000 -2,467,000,000 Instance Inconsistency found, calculated value is -2,467,000,000
base:IncomeTaxExpenseBenefit -1.0 debit -6 2467000000 2,467,000,000 Instance
2 Context C_0000789019_20161001_20161231 [ 2016-10-01 - 2016-12-31 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OperatingIncomeLoss credit -6 0 6177000000 14,189,000,000 Instance Inconsistency found, calculated value is 14,189,000,000
base:GrossProfit 1.0 credit -6 0 14189000000 24,090,000,000 Instance Inconsistency found, calculated value is 24,090,000,000
base:SalesRevenueNet 1.0 credit -6 24090000000 24,090,000,000 Instance
2 Context C_0000789019_20170101_20170331 [ 2017-01-01 - 2017-03-31 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OperatingIncomeLoss credit -6 0 5594000000 14,030,000,000 Instance Inconsistency found, calculated value is 14,030,000,000
base:GrossProfit 1.0 credit -6 0 14030000000 22,090,000,000 Instance Inconsistency found, calculated value is 22,090,000,000
base:SalesRevenueNet 1.0 credit -6 22090000000 22,090,000,000 Instance
2 Context C_0000789019_20170401_20170630 [ 2017-04-01 - 2017-06-30 ]
c-equal
3 Unit U_iso4217USD
u-equal
base:OperatingIncomeLoss credit -6 0 5330000000 14,861,000,000 Instance Inconsistency found, calculated value is 14,861,000,000
base:GrossProfit 1.0 credit -6 0 14861000000 23,317,000,000 Instance Inconsistency found, calculated value is 23,317,000,000
base:SalesRevenueNet 1.0 credit -6 23317000000 23,317,000,000 Instance



Copyright (c) UBmatrix, Inc. 2009