v3.22.2.2
Segment Information - Schedule Of Segment Reporting Information (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
Segment Reporting Information [Line Items]        
Revenues from external customers $ 10,599,002 $ 4,685,059 $ 29,219,912 $ 12,766,475
Intersegment revenues 0 0 0 0
Sales and other revenues 10,599,002 4,685,059 29,219,912 12,766,475
Cost of products sold (exclusive of lower of cost or market inventory) 8,375,253 3,822,858 23,457,180 10,608,892
Lower of cost or market inventory valuation adjustment 16,847 0 42,839 (318,862)
Operating expenses 604,591 352,520 1,688,152 1,086,620
Selling, general and administrative expenses 102,677 91,056 323,974 250,785
Depreciation and amortization 171,973 121,220 480,618 369,341
Income (loss) from operations 1,327,661 297,405 3,227,149 769,699
Earnings (loss) of equity method investments (16,334) 3,689 (7,261) 8,875
Capital expenditures 99,703 215,504 417,443 548,345
Corporate, Other and Eliminations        
Segment Reporting Information [Line Items]        
Revenues from external customers 0 (3) 0 4
Intersegment revenues (1,631,566) (287,067) (3,521,610) (762,782)
Sales and other revenues (1,631,566) (287,070) (3,521,610) (762,778)
Cost of products sold (exclusive of lower of cost or market inventory) (1,602,471) (265,275) (3,449,841) (683,244)
Lower of cost or market inventory valuation adjustment 0   0 (509)
Operating expenses (23,444) (12,646) (57,522) (32,371)
Selling, general and administrative expenses 20,517 13,386 71,448 25,532
Depreciation and amortization (1,282) 2,149 (344) (2,962)
Income (loss) from operations (24,886) (24,684) (85,351) (69,224)
Earnings (loss) of equity method investments 0 0 0 0
Capital expenditures 17,958 6,338 39,823 14,282
Refining | Operating Segments        
Segment Reporting Information [Line Items]        
Revenues from external customers 8,230,606 3,993,570 23,442,162 10,837,876
Intersegment revenues 1,405,180 189,441 2,988,372 455,089
Sales and other revenues 9,635,786 4,183,011 26,430,534 11,292,965
Cost of products sold (exclusive of lower of cost or market inventory) 7,680,153 3,605,600 21,709,048 9,986,862
Lower of cost or market inventory valuation adjustment 0   0 (318,353)
Operating expenses 474,631 248,316 1,298,907 772,593
Selling, general and administrative expenses 34,353 32,345 107,358 90,977
Depreciation and amortization 102,599 77,890 300,060 245,910
Income (loss) from operations 1,344,050 218,860 3,015,161 514,976
Earnings (loss) of equity method investments 0 0 0 0
Capital expenditures 37,653 40,814 104,284 114,325
Renewables | Operating Segments        
Segment Reporting Information [Line Items]        
Revenues from external customers 254,952 0 399,204 0
Intersegment revenues 100,708 0 198,401 0
Sales and other revenues 355,660 0 597,605 0
Cost of products sold (exclusive of lower of cost or market inventory) 345,588 0 582,521 0
Lower of cost or market inventory valuation adjustment 16,847   42,839 0
Operating expenses 23,427 13,117 79,796 37,169
Selling, general and administrative expenses 873 0 2,746 0
Depreciation and amortization 18,228 328 34,399 986
Income (loss) from operations (49,303) (13,445) (144,696) (38,155)
Earnings (loss) of equity method investments 0 0 0 0
Capital expenditures 24,499 141,302 210,793 325,271
Marketing | Operating Segments        
Segment Reporting Information [Line Items]        
Revenues from external customers 1,266,681   2,880,024  
Intersegment revenues 0   0  
Sales and other revenues 1,266,681   2,880,024  
Cost of products sold (exclusive of lower of cost or market inventory) 1,255,119   2,837,583  
Lower of cost or market inventory valuation adjustment 0   0  
Operating expenses 0   0  
Selling, general and administrative expenses 1,351   2,540  
Depreciation and amortization 6,355   11,274  
Income (loss) from operations 3,856   28,627  
Earnings (loss) of equity method investments 0   0  
Capital expenditures 1,487   6,796  
Lubricants and Specialty Products | Operating Segments        
Segment Reporting Information [Line Items]        
Revenues from external customers 820,630 666,033 2,419,212 1,850,786
Intersegment revenues 2,809 501 9,177 9,500
Sales and other revenues 823,439 666,534 2,428,389 1,860,286
Cost of products sold (exclusive of lower of cost or market inventory) 696,864 482,533 1,777,869 1,305,274
Lower of cost or market inventory valuation adjustment 0   0 0
Operating expenses 69,506 60,940 209,977 183,003
Selling, general and administrative expenses 41,833 41,476 127,137 124,612
Depreciation and amortization 20,227 19,226 61,426 58,499
Income (loss) from operations (4,991) 62,359 251,980 188,898
Earnings (loss) of equity method investments 0 0 0 0
Capital expenditures 10,158 7,833 24,553 17,534
HEP | Operating Segments        
Segment Reporting Information [Line Items]        
Revenues from external customers 26,133 25,459 79,310 77,809
Intersegment revenues 122,869 97,125 325,660 298,193
Sales and other revenues 149,002 122,584 404,970 376,002
Cost of products sold (exclusive of lower of cost or market inventory) 0 0 0 0
Lower of cost or market inventory valuation adjustment 0   0 0
Operating expenses 60,471 42,793 156,994 126,226
Selling, general and administrative expenses 3,750 3,849 12,745 9,664
Depreciation and amortization 25,846 21,627 73,803 66,908
Income (loss) from operations 58,935 54,315 161,428 173,204
Earnings (loss) of equity method investments (16,334) 3,689 (7,261) 8,875
Capital expenditures $ 7,948 $ 19,217 $ 31,194 $ 76,933