v3.22.2.2
Description of Business and Presentation of Financial Statements (Details)
$ in Thousands, $ in Millions
3 Months Ended 9 Months Ended
Mar. 14, 2022
USD ($)
shares
Apr. 27, 2021
USD ($)
Apr. 27, 2021
CAD ($)
Sep. 30, 2022
USD ($)
Sep. 30, 2021
USD ($)
Sep. 30, 2022
USD ($)
Sep. 30, 2021
USD ($)
Dec. 31, 2021
USD ($)
Ownership Interest By Project Type [Line Items]                
Allowance for expected credit losses       $ 7,500   $ 7,500   $ 3,700
Goodwill       2,968,711   2,968,711   2,293,044
Income tax expense (benefit)       301,853 $ 54,766 $ 706,675 $ 149,944  
Effective income tax rate           22.60% 18.10%  
Proceeds from inventory repurchase agreements           $ 31,800 $ 32,700  
Payments under inventory repurchase agreements           32,200 34,100  
Cheyenne Refinery                
Ownership Interest By Project Type [Line Items]                
Severance costs         200   900  
Decommissioning expense         6,700 $ 1,500 23,100  
Lubricants and Specialty Products                
Ownership Interest By Project Type [Line Items]                
Severance costs             $ 7,800  
Disposal Group, Disposed of by Sale, Not Discontinued Operations | Mississauga, Canada Property                
Ownership Interest By Project Type [Line Items]                
Gain on sale of asset         $ 86,000      
Disposal Group, Disposed of by Sale, Not Discontinued Operations | Mississauga, Canada Property | 7037619 Canada Inc.                
Ownership Interest By Project Type [Line Items]                
Proceeds from sale of property   $ 98,800 $ 125          
HEP                
Ownership Interest By Project Type [Line Items]                
Percentage of ownership in variable interest entity           47.00%    
Goodwill       $ 411,231   $ 411,231   $ 312,873
Sinclair Merger                
Ownership Interest By Project Type [Line Items]                
Goodwill $ 677,225              
Sinclair Merger | HEP                
Ownership Interest By Project Type [Line Items]                
Shares issued in transaction (in shares) | shares 21,000,000              
Goodwill $ 98,400              
Sinclair Merger | Sinclair HoldCo                
Ownership Interest By Project Type [Line Items]                
Shares issued in transaction (in shares) | shares 60,230,036              
Sinclair Merger | Sinclair HoldCo | HEP                
Ownership Interest By Project Type [Line Items]                
Shares issued in transaction (in shares) | shares 21,000,000