v3.19.3.a.u2
Redeemable Convertible Preferred Stock, Common Stock, and Equity (Deficit) - Narrative (Details) - USD ($)
$ / shares in Units, $ in Millions
1 Months Ended 12 Months Ended
Jan. 01, 2020
May 16, 2019
May 14, 2019
Jan. 31, 2019
Jan. 31, 2018
Nov. 30, 2017
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2017
May 31, 2019
Apr. 30, 2019
Mar. 31, 2019
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Preferred stock, shares issued (in shares)             0     903,607,000    
Preferred stock, shares outstanding (in shares)             0     903,607,000    
Common stock shares issued (in shares)             1,716,681,000 457,189,000        
Common stock shares outstanding (in shares)             1,716,681,000 457,189,000        
Preferred stock, shares authorized (in shares)             10,000,000     946,246,000    
Common stock shares authorized (in shares)             5,000,000,000 2,696,114,000        
Common stock par value (in dollars per share)             $ 0.00001 $ 0.00001        
Common Stock, Dividends, Per Share, Declared             $ 0          
Intrinsic value of options exercised during period             $ 202 $ 392 $ 112      
Incremental stock-based compensation costs relating to modification of awards               56 69      
Proceeds from the issuance of common stock under the Employee Stock Purchase Plan             $ 49 $ 0 $ 0      
Weighted average grant date fair value of options granted (in dollars per share)             $ 19.91 $ 12.94 $ 18.65      
Share-based compensation expense             $ 4,596 $ 172 $ 137      
Restricted Stock Awards, Restricted Stock Units, and Stock Appreciation Rights                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Unamortized compensation costs             $ 2,100          
Weighted-average recognition period             2 years 5 months 12 days          
Warrants                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Fair value of instruments vested during period               $ 4 $ 91      
Weighted-average grant-date fair value per share, granted (in dollars per share)               $ 47.20 $ 43.14      
Awards granted (in shares)             0          
SARs                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Weighted-average grant-date fair value per share, granted (in dollars per share)             $ 19.91 $ 12.94 $ 18.65      
RSUs                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Fair value of instruments vested during period             $ 1,400 $ 967 $ 486      
Weighted-average grant-date fair value per share, granted (in dollars per share)             $ 41.55          
Awards granted (in shares)             62,830,000          
Performance-Based Awards                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Weighted-average grant-date fair value per share, granted (in dollars per share)             $ 18.20 $ 14.77 $ 18.96      
Weighted-average derived service period             2 years 1 month 13 days 3 years 3 months 21 days 3 years 4 months 6 days      
2013 Plan                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Increase in stock reserved for issuance (in shares)       85,000,000                
Number of shares reserved for future issuance (in shares)       293,000,000                
2019 Plan                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Number of shares reserved for future issuance (in shares)                     130,000,000  
Equity incentive plan, term over which available awards may increase             10 years          
Equity incentive plan, percent of increase             5.00%          
Employee Stock Purchase Plan, 2019                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Number of shares reserved for future issuance (in shares)             23,000,000         25,000,000
Unamortized compensation costs             $ 43          
Weighted-average recognition period             9 months 18 days          
ESPP, percent of total shares outstanding, increase calculation             1.00%          
ESPP, upper threshold on increase in authorized shares (in shares)             25,000,000          
Issuance of common stock under the Employee Stock Purchase Plan (in shares)             2,000,000          
Weighted average price per share of stock (in dollars per share)             $ 23.83          
Proceeds from the issuance of common stock under the Employee Stock Purchase Plan             $ 49          
Series E Redeemable Convertible Preferred Stock                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Number of securities called by warrants (in shares)               150,071        
Series G Redeemable Convertible Preferred Stock                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Number of securities called by warrants (in shares)               922,655        
Redeemable convertible preferred stock | Warrants                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Awards granted (in shares)             0          
Subsequent Event | 2019 Plan                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Increase in stock reserved for issuance (in shares) 86,000,000                      
IPO                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Stock issued during period (in shares)     180,000,000                  
Stock price (in dollars per share)   $ 45.00 $ 45.00                  
Proceeds from issuance of common stock     $ 8,000                  
Conversion of shares (in shares)     905,000,000                  
Shares withheld to meet tax withholding requirements (in shares)     29,000,000                  
Shares withheld to meet tax withholding requirement, value     $ 1,300                  
Share-based compensation expense     $ 3,600                  
IPO | Common Stock                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Stock issued during period (in shares)     76,000,000                  
Private Placement                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Stock issued during period (in shares)   11,000,000                    
Proceeds from issuance of common stock   $ 500                    
Softbank                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Direct investment         $ 1,300              
Price per share of preferred stock issued (in dollars per share)           $ 48.77            
Preferred Stock, Shares Purchased         25,600,000              
Equity ownership interest         20.00%              
Softbank | Common Stock                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Shares purchased from existing stockholder (in dollars per share)           $ 32.97            
Shares purchased from existing stockholders         242,800,000              
Minimum | Softbank                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Direct investment           $ 1,000            
Maximum | Softbank                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Direct investment           $ 1,300            
Internal-use software                        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                        
Capitalized share based payment             $ 61