v3.22.2.2
Investments (Tables)
9 Months Ended
Oct. 31, 2022
Investments, Debt and Equity Securities [Abstract]  
Summary of Debt Securities
As of October 31, 2022, debt securities consisted of the following (in thousands):
Amortized CostUnrealized GainsUnrealized LossesAggregate Fair Value
U.S. treasury securities$2,391,963 $$(10,333)$2,381,631 
U.S. agency obligations548,109 — (6,020)542,089 
Corporate bonds624,186 18 (11,877)612,327 
Commercial paper1,054,938 — — 1,054,938 
Total debt securities$4,619,196 $19 $(28,230)$4,590,985 
Included in Cash and cash equivalents$757,758 $— $(113)$757,645 
Included in Marketable securities$3,861,438 $19 $(28,117)$3,833,340 
As of January 31, 2022, debt securities consisted of the following (in thousands):
Amortized CostUnrealized GainsUnrealized LossesAggregate Fair Value
U.S. treasury securities$843,627 $$(1,720)$841,912 
U.S. agency obligations232,093 — (1,168)230,925 
Corporate bonds490,867 — (1,815)489,052 
Commercial paper969,204 — — 969,204 
Total debt securities$2,535,791 $$(4,703)$2,531,093 
Included in Cash and cash equivalents$525,524 $— $(1)$525,523 
Included in Marketable securities$2,010,267 $$(4,702)$2,005,570 
Equity Investments
Equity investments consisted of the following (in thousands):
Condensed Consolidated Balance Sheets LocationOctober 31, 2022January 31, 2022
Money market funds Cash and cash equivalents$528,633 $607,640 
Non-marketable equity investments measured using the measurement alternative Other assets265,573 256,643 
Marketable equity investments Marketable securities82,790 104,318 
Total equity investments$876,996 $968,601 
Realized and Unrealized Gains and Losses With Equity Investments
Total realized and unrealized gains and losses associated with our equity investments consisted of the following (in thousands):
Three Months Ended October 31, Nine Months Ended October 31,
2022202120222021
Net realized gains (losses) recognized on equity investments sold (1)
$4,514 $11,759 $(365)$4,236 
Net unrealized gains (losses) recognized on equity investments held as of the end of the period(155)13,448 (19,121)121,167 
Total net gains (losses) recognized in Other income (expense), net$4,359 $25,207 $(19,486)$125,403 
(1)Reflects the difference between the sale proceeds and the carrying value of the equity investments at the beginning of the period.
Carrying Values Of Non-marketable Equity Investments The carrying values for our non-marketable equity investments are summarized below (in thousands):
October 31, 2022January 31, 2022
Total initial cost$209,867 $192,694 
Cumulative net unrealized gains (losses)55,706 63,949 
Carrying value$265,573 $256,643 
Carrying Values Of Marketable Equity Investments The carrying values for our marketable equity investments are summarized below (in thousands):
October 31, 2022January 31, 2022
Total initial cost$38,936 $40,739 
Cumulative net unrealized gains (losses)43,854 63,579 
Carrying value
$82,790 $104,318