v3.20.4
Commitments and Contingencies - Additional Information (Detail)
¥ in Millions, $ in Millions
1 Months Ended 12 Months Ended
Sep. 16, 2020
USD ($)
Apr. 30, 2020
Oct. 05, 2016
Plaintiff
Dec. 31, 2020
USD ($)
$ / yr
Dec. 31, 2020
CNY (¥)
$ / yr
Commitments And Contingencies [Line Items]          
Letters Of Credit Outstanding Amount       $ 233  
Lawsuit in the Court of Chancery of the State of Delaware by purported stockholders of Tesla challenging SolarCity Acquisition [Member]          
Commitments And Contingencies [Line Items]          
Number of lawsuits filed | Plaintiff     7    
Received payment from litigation $ 43        
Shanghai, China [Member]          
Commitments And Contingencies [Line Items]          
Operating lease arrangement, initial term       50 years 50 years
Capital expenditures | ¥         ¥ 14,080
Annual tax revenues to be generated end of 2023 | ¥         ¥ 2,230
Maximum [Member]          
Commitments And Contingencies [Line Items]          
Initial direct costs related to customer solar energy system lease acquisition costs       25 years 25 years
Operating lease arrangement, initial term       10 years 10 years
SUNY Foundation [Member] | Build To Suit Lease Arrangement          
Commitments And Contingencies [Line Items]          
Acquisition of manufacturing equipment       $ 275  
Additional specified scope costs       $ 125  
Initial direct costs related to customer solar energy system lease acquisition costs       10 years 10 years
Operating lease, option to renew, amount per year | $ / yr       2.00 2.00
Lease arrangement, amount required to spend or incur       $ 5,000  
Contractual obligation       41  
Target projects deferred period   1 year      
SUNY Foundation [Member] | Build To Suit Lease Arrangement | Maximum [Member]          
Commitments And Contingencies [Line Items]          
Cost of revenues       $ 350