v3.22.4
Income Taxes - Additional Information (Detail) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Income Tax Contingency [Line Items]        
Total provision for (benefit from) income taxes $ 10,067 $ 31,885 $ (12,636)  
Capitalized research and experimental expenses 70,839 0    
Valuation allowance 2,051,655 1,977,565    
Valuation allowance, increase (decrease) 74,100 757,500    
Outside basis difference (6,512) 0    
Unrecognized tax benefits 81,904 65,070 $ 75,557 $ 31,702
Palantir Technologies Japan, K.K.        
Income Tax Contingency [Line Items]        
Outside basis difference (6,500)      
United Kingdom        
Income Tax Contingency [Line Items]        
Net operating loss carryforwards 303,400      
California Franchise Tax Board        
Income Tax Contingency [Line Items]        
Deferred tax assets, tax credit carryforwards, research 91,400 68,700    
State and Local Jurisdiction | California Franchise Tax Board        
Income Tax Contingency [Line Items]        
Net operating loss carryforwards 2,800,000 2,900,000    
Domestic Tax Authority        
Income Tax Contingency [Line Items]        
Net operating loss carryforwards 5,600,000 5,900,000    
Operating loss carryforwards, not subject to expiration 1,400,000      
Deferred tax assets, tax credit carryforwards, research $ 230,200 $ 184,100