Financial Instruments | Financial Instruments We classify our cash equivalents and marketable securities within Level 1 or Level 2 in the fair value hierarchy because we use quoted market prices or alternative pricing sources and models utilizing market observable inputs to determine their fair value. We classify our foreign currency and interest rate derivative contracts primarily within Level 2 in the fair value hierarchy as the valuation inputs are based on quoted prices and market observable data of similar instruments. Cash, Cash Equivalents, and Marketable Securities The following tables summarize our cash, cash equivalents and marketable securities by significant investment categories as of December 31, 2016 and 2017 (in millions): As of December 31, 2016 Adjusted Cost Gross Unrealized Gains Gross Fair Cash and Marketable Cash $ 7,078 $ 0 $ 0 $ 7,078 $ 7,078 $ 0 Level 1: Money market and other funds 4,783 0 0 4,783 4,783 0 U.S. government notes 38,454 46 (215 ) 38,285 613 37,672 Marketable equity securities 160 133 0 293 0 293 43,397 179 (215 ) 43,361 5,396 37,965 Level 2: Time deposits (1) 142 0 0 142 140 2 Mutual funds (2) 204 7 0 211 0 211 U.S. government agencies 1,826 0 (11 ) 1,815 300 1,515 Foreign government bonds 2,345 18 (7 ) 2,356 0 2,356 Municipal securities 4,757 15 (65 ) 4,707 2 4,705 Corporate debt securities 12,993 114 (116 ) 12,991 2 12,989 Mortgage-backed securities 12,006 26 (216 ) 11,816 0 11,816 Asset-backed securities 1,855 2 (1 ) 1,856 0 1,856 36,128 182 (416 ) 35,894 444 35,450 Total $ 86,603 $ 361 $ (631 ) $ 86,333 $ 12,918 $ 73,415 As of December 31, 2017 Adjusted Cost Gross Unrealized Gains Gross Fair Cash and Cash Equivalents Marketable Cash $ 7,158 $ 0 $ 0 $ 7,158 $ 7,158 $ 0 Level 1: Money market and other funds 1,833 0 0 1,833 1,833 0 U.S. government notes 37,256 2 (310 ) 36,948 1,241 35,707 Marketable equity securities 242 100 (2 ) 340 0 340 39,331 102 (312 ) 39,121 3,074 36,047 Level 2: Time deposits (1) 359 0 0 359 357 2 Mutual funds (2) 232 20 0 252 0 252 U.S. government agencies 3,713 0 (29 ) 3,684 0 3,684 Foreign government bonds 2,948 6 (14 ) 2,940 0 2,940 Municipal securities 7,631 2 (53 ) 7,580 0 7,580 Corporate debt securities 24,269 21 (135 ) 24,155 126 24,029 Mortgage-backed securities 11,157 9 (163 ) 11,003 0 11,003 Asset-backed securities 5,632 4 (17 ) 5,619 0 5,619 55,941 62 (411 ) 55,592 483 55,109 Total $ 102,430 $ 164 $ (723 ) $ 101,871 $ 10,715 $ 91,156 (1) The majority of our time deposits are foreign deposits. (2) The fair value option was elected for mutual funds with gains (losses) recognized in other income (expense), net. We determine realized gains or losses on the sale of marketable securities on a specific identification method. We recognized gross realized gains of $357 million , $272 million , and $207 million for the years ended December 31, 2015 , 2016 , and 2017 , respectively. We recognized gross realized losses of $565 million , $482 million , and $287 million for the years ended December 31, 2015 , 2016 , and 2017 , respectively. We reflect these gains and losses as a component of other income (expense), net, in the Consolidated Statements of Income. The following table summarizes the estimated fair value of our investments in marketable debt securities, accounted for as available-for-sale securities and classified by the contractual maturity date of the securities (in millions): As of Due in 1 year $ 19,486 Due in 1 year through 5 years 56,056 Due in 5 years through 10 years 2,676 Due after 10 years 12,346 Total $ 90,564 Impairment Considerations for Marketable Investments The following tables present gross unrealized losses and fair values for those investments that were in an unrealized loss position as of December 31, 2016 and 2017 , aggregated by investment category and the length of time that individual securities have been in a continuous loss position (in millions): As of December 31, 2016 Less than 12 Months 12 Months or Greater Total Fair Value Unrealized Fair Value Unrealized Fair Value Unrealized U.S. government notes $ 26,411 $ (215 ) $ 0 $ 0 $ 26,411 $ (215 ) U.S. government agencies 1,014 (11 ) 0 0 1,014 (11 ) Foreign government bonds 956 (7 ) 0 0 956 (7 ) Municipal securities 3,461 (63 ) 46 (2 ) 3,507 (65 ) Corporate debt securities 6,184 (111 ) 166 (5 ) 6,350 (116 ) Mortgage-backed securities 10,184 (206 ) 259 (10 ) 10,443 (216 ) Asset-backed securities 391 (1 ) 0 0 391 (1 ) Total $ 48,601 $ (614 ) $ 471 $ (17 ) $ 49,072 $ (631 ) As of December 31, 2017 Less than 12 Months 12 Months or Greater Total Fair Value Unrealized Loss Fair Value Unrealized Loss Fair Value Unrealized U.S. government notes $ 18,325 $ (134 ) $ 16,136 $ (176 ) $ 34,461 $ (310 ) U.S. government agencies 2,913 (22 ) 767 (7 ) 3,680 (29 ) Foreign government bonds 1,932 (8 ) 342 (6 ) 2,274 (14 ) Municipal securities 5,666 (47 ) 415 (6 ) 6,081 (53 ) Corporate debt securities 18,300 (114 ) 1,710 (21 ) 20,010 (135 ) Mortgage-backed securities 7,261 (89 ) 3,314 (74 ) 10,575 (163 ) Asset-backed securities 3,800 (16 ) 135 (1 ) 3,935 (17 ) Marketable equity securities 39 (2 ) 0 0 39 (2 ) Total $ 58,236 $ (432 ) $ 22,819 $ (291 ) $ 81,055 $ (723 ) During the years ended December 31, 2016 and 2017 , there were no other-than-temporary impairment losses. During the year ended December 31, 2015 , we recognized $281 million of other-than-temporary impairment losses related to our marketable equity securities and fixed-income bond funds. Those losses are included in gain (loss) on marketable securities, net as a component of other income (expense), net, in the Consolidated Statements of Income. See Note 7 for further details on other income (expense), net. Derivative Financial Instruments We recognize derivative instruments as either assets or liabilities in the Consolidated Balance Sheets at fair value. We record changes in the fair value (i.e., gains or losses) of the derivatives in the Consolidated Statements of Income as either other income (expense), net, or revenues, or in the Consolidated Balance Sheets in accumulated other comprehensive income (AOCI), as discussed below. We enter into foreign currency contracts with financial institutions to reduce the risk that our cash flows and earnings will be adversely affected by foreign currency exchange rate fluctuations. We also use interest rate derivative contracts to hedge interest rate exposures on our fixed income securities and debt issuances. Our program is not used for trading or speculative purposes. We enter into master netting arrangements, which reduce credit risk by permitting net settlement of transactions with the same counterparty. To further reduce credit risk, we enter into collateral security arrangements under which the counterparty is required to provide collateral when the net fair value of certain financial instruments fluctuates from contractually established thresholds. We can take possession of the collateral in the event of counterparty default. As of December 31, 2016 and 2017 , we received cash collateral related to the derivative instruments under our collateral security arrangements of $362 million and $15 million , respectively. Cash Flow Hedges We use foreign currency forwards and option contracts, including collars (an option strategy comprised of a combination of purchased and written options), designated as cash flow hedges to hedge certain forecasted revenue transactions denominated in currencies other than the U.S. dollar and at times we use interest rate swaps to effectively lock interest rates on anticipated debt issuances. These transactions are designated as cash flow hedges. The notional principal of these contracts was approximately $10.7 billion and $11.7 billion as of December 31, 2016 and 2017 , respectively. These contracts have maturities of 2 years or less. We reflect the gains or losses on the effective portion of a cash flow hedge as a component of AOCI and subsequently reclassify cumulative gains and losses to revenues or interest expense when the hedged transactions are recorded. If the hedged transactions become probable of not occurring, the corresponding amounts in AOCI are immediately reclassified to other income (expense), net. For foreign currency collars, we include the change in time value in our assessment of hedge effectiveness. For other foreign currency options and forward contracts, we exclude the change in the forward points and time value from our assessment of hedge effectiveness. We recognize changes of the excluded components in other income (expense), net. As of December 31, 2017 , the effective portion of our cash flow hedges before tax effect was a net accumulated loss of $187 million , of which a net loss of $219 million is expected to be reclassified from AOCI into earnings within the next 12 months. Fair Value Hedges We use forward contracts designated as fair value hedges to hedge foreign currency risks for our investments denominated in currencies other than the U.S. dollar. We exclude changes in forward points for forward contracts from the assessment of hedge effectiveness. The notional principal of these contracts was $2.4 billion and $2.9 billion as of December 31, 2016 and 2017 , respectively. Gains and losses on these forward contracts are recognized in other income (expense), net, along with the offsetting gains and losses of the related hedged items. Other Derivatives Other derivatives not designated as hedging instruments consist of foreign currency forward contracts that we use to hedge intercompany transactions and other monetary assets or liabilities denominated in currencies other than the local currency of a subsidiary. We recognize gains and losses on these contracts, as well as the related costs in other income (expense), net, along with the foreign currency gains and losses on monetary assets and liabilities. The notional principal of the outstanding foreign exchange contracts was $7.9 billion and $15.2 billion as of December 31, 2016 and 2017 , respectively. The fair values of our outstanding derivative instruments were as follows (in millions): As of December 31, 2016 Balance Sheet Location Fair Value of Fair Value of Total Fair Derivative Assets: Level 2: Foreign exchange contracts Other current and non-current assets $ 539 $ 57 $ 596 Total $ 539 $ 57 $ 596 Derivative Liabilities: Level 2: Foreign exchange contracts Accrued expenses and other liabilities, current and non-current $ 4 $ 9 $ 13 Total $ 4 $ 9 $ 13 As of December 31, 2017 Balance Sheet Location Fair Value of Fair Value of Total Fair Derivative Assets: Level 2: Foreign exchange contracts Other current and non-current assets $ 51 $ 29 $ 80 Total $ 51 $ 29 $ 80 Derivative Liabilities: Level 2: Foreign exchange contracts Accrued expenses and other liabilities, current and non-current $ 230 $ 122 $ 352 Total $ 230 $ 122 $ 352 The effect of derivative instruments in cash flow hedging relationships on income and other comprehensive income (OCI) is summarized below (in millions): Gains (Losses) Recognized in OCI on Derivatives Before Tax Effect (Effective Portion) Year Ended December 31, Derivatives in Cash Flow Hedging Relationship 2015 2016 2017 Foreign exchange contracts $ 964 $ 773 $ (955 ) Gains (Losses) Reclassified from AOCI into Income (Effective Portion) Year Ended December 31, Derivatives in Cash Flow Hedging Relationship Location 2015 2016 2017 Foreign exchange contracts Revenues $ 1,399 $ 539 $ (169 ) Interest rate contracts Other income (expense), net 5 5 5 Total $ 1,404 $ 544 $ (164 ) Gains (Losses) Recognized in Income on Derivatives (Amount Excluded from Effectiveness Testing and Ineffective Portion) (1) Year Ended December 31, Derivatives in Cash Flow Hedging Relationship Location 2015 2016 2017 Foreign exchange contracts Other income (expense), net $ (297 ) $ (381 ) $ 83 (1) Gains (losses) related to the ineffective portion of the hedges were not material in all periods presented. The effect of derivative instruments in fair value hedging relationships on income is summarized below (in millions): Gains (Losses) Recognized in Income on Derivatives (2) Year Ended December 31, Derivatives in Fair Value Hedging Relationship Location 2015 2016 2017 Foreign Exchange Hedges: Foreign exchange contracts Other income (expense), net $ 170 $ 145 $ (174 ) Hedged item Other income (expense), net (176 ) (139 ) 197 Total $ (6 ) $ 6 $ 23 (2) Amounts excluded from effectiveness testing and the ineffective portion of the fair value hedging relationships were not material in all periods presented. The effect of derivative instruments not designated as hedging instruments on income is summarized below (in millions): Gains (Losses) Recognized in Income on Derivatives Year Ended December 31, Derivatives Not Designated As Hedging Instruments Location 2015 2016 2017 Foreign exchange contracts Other income (expense), net $ 198 $ 130 $ (230 ) Offsetting of Derivatives We present our forwards and purchased options at gross fair values in the Consolidated Balance Sheets. For foreign currency collars, we present at net fair values where both purchased and written options are with the same counterparty. Our master netting and other similar arrangements allow net settlements under certain conditions. As of December 31, 2016 and 2017 , information related to these offsetting arrangements were as follows (in millions): Offsetting of Assets As of December 31, 2016 Gross Amounts Not Offset in the Consolidated Balance Sheets, but Have Legal Rights to Offset Gross Amounts of Recognized Assets Gross Amounts Offset in the Consolidated Balance Sheets Net Presented in the Consolidated Balance Sheets Financial Instruments Cash Collateral Received Non-Cash Collateral Received Net Assets Exposed Derivatives $ 596 $ 0 $ 596 $ (11 ) (1) $ (337 ) $ (73 ) $ 175 As of December 31, 2017 Gross Amounts Not Offset in the Consolidated Balance Sheets, but Have Legal Rights to Offset Gross Amounts of Recognized Assets Gross Amounts Offset in the Consolidated Balance Sheets Net Presented in the Consolidated Balance Sheets Financial Instruments Cash Collateral Received Non-Cash Collateral Received Net Assets Exposed Derivatives $ 102 $ (22 ) $ 80 $ (64 ) (1) $ (4 ) $ (2 ) $ 10 (1) The balances as of December 31, 2016 and 2017 were related to derivative liabilities which are allowed to be net settled against derivative assets in accordance with our master netting agreements. Offsetting of Liabilities As of December 31, 2016 Gross Amounts Not Offset in the Consolidated Balance Sheets, but Have Legal Rights to Offset Gross Amounts of Recognized Liabilities Gross Amounts Offset in the Consolidated Balance Sheets Net Presented in the Consolidated Balance Sheets Financial Instruments Cash Collateral Pledged Non-Cash Collateral Pledged Net Liabilities Derivatives $ 13 $ 0 $ 13 $ (11 ) (2) $ 0 $ 0 $ 2 As of December 31, 2017 Gross Amounts Not Offset in the Consolidated Balance Sheets, but Have Legal Rights to Offset Gross Amounts of Recognized Liabilities Gross Amounts Offset in the Consolidated Balance Sheets Net Presented in the Consolidated Balance Sheets Financial Instruments Cash Collateral Pledged Non-Cash Collateral Pledged Net Liabilities Derivatives $ 374 $ (22 ) $ 352 $ (64 ) (2) $ 0 $ 0 $ 288 (2) The balances as of December 31, 2016 and 2017 were related to derivative assets which are allowed to be net settled against derivative liabilities in accordance with our master netting agreements. |