Revenue - Revenue Disaggregated by Major Product (Details) - USD ($) $ in Millions | 3 Months Ended | 9 Months Ended |
Sep. 30, 2023 | Sep. 30, 2022 | Sep. 30, 2023 | Sep. 30, 2022 |
Disaggregation of Revenue [Line Items] | | | | |
Total revenue | $ 2,522 | $ 2,699 | $ 7,045 | $ 8,216 |
Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis]: 2023-02-01 | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Remaining performance obligation, expected timing of satisfaction, period | 7 years 3 months | | 7 years 3 months | |
Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis]: 2023-10-01 | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Remaining performance obligation, expected timing of satisfaction, period | 3 years | | 3 years | |
Revenue from product sales | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | $ 2,514 | 2,687 | $ 6,984 | 8,186 |
Gasoline | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 1,186 | 1,207 | 3,287 | 3,732 |
Distillates | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 1,124 | 1,252 | 2,956 | 3,589 |
Ammonia | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 22 | 22 | 116 | 125 |
UAN | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 86 | 119 | 354 | 438 |
Urea products | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 8 | 6 | 23 | 26 |
Freight revenue | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 15 | 11 | 45 | 40 |
Other products | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 73 | 70 | 203 | 236 |
Crude oil sales | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 8 | 12 | 60 | 29 |
Other revenue | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Other revenue | $ 0 | 0 | $ 1 | 1 |
Nitrogen Fertilizer Segment | Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis]: 2023-10-01 | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Remaining performance obligation, expected timing of satisfaction, period | 3 months | | 3 months | |
Nitrogen Fertilizer Segment | Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis]: 2024-01-01 | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Remaining performance obligation, expected timing of satisfaction, period | 1 year | | 1 year | |
Operating Segments | Petroleum | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Total revenue | $ 2,298 | 2,474 | $ 6,290 | 7,497 |
Operating Segments | Petroleum | Revenue from product sales | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 2,290 | 2,462 | 6,229 | 7,467 |
Operating Segments | Petroleum | Gasoline | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 1,186 | 1,207 | 3,287 | 3,732 |
Operating Segments | Petroleum | Distillates | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 1,057 | 1,202 | 2,806 | 3,513 |
Operating Segments | Petroleum | Ammonia | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 0 | 0 | 0 | 0 |
Operating Segments | Petroleum | UAN | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 0 | 0 | 0 | 0 |
Operating Segments | Petroleum | Urea products | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 0 | 0 | 0 | 0 |
Operating Segments | Petroleum | Freight revenue | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 5 | 4 | 13 | 13 |
Operating Segments | Petroleum | Other products | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 42 | 49 | 123 | 209 |
Operating Segments | Petroleum | Crude oil sales | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 8 | 12 | 60 | 29 |
Operating Segments | Petroleum | Other revenue | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Other revenue | 0 | 0 | 1 | 1 |
Operating Segments | Nitrogen Fertilizer Segment | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Total revenue | 131 | 156 | 540 | 623 |
Operating Segments | Nitrogen Fertilizer Segment | Revenue from product sales | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 131 | 156 | 540 | 623 |
Operating Segments | Nitrogen Fertilizer Segment | Gasoline | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 0 | 0 | 0 | 0 |
Operating Segments | Nitrogen Fertilizer Segment | Distillates | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 0 | 0 | 0 | 0 |
Operating Segments | Nitrogen Fertilizer Segment | Ammonia | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 22 | 22 | 116 | 125 |
Operating Segments | Nitrogen Fertilizer Segment | UAN | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 86 | 119 | 354 | 438 |
Operating Segments | Nitrogen Fertilizer Segment | Urea products | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 8 | 6 | 23 | 26 |
Operating Segments | Nitrogen Fertilizer Segment | Freight revenue | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 10 | 7 | 32 | 27 |
Operating Segments | Nitrogen Fertilizer Segment | Other products | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 5 | 2 | 15 | 7 |
Operating Segments | Nitrogen Fertilizer Segment | Crude oil sales | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 0 | 0 | 0 | 0 |
Operating Segments | Nitrogen Fertilizer Segment | Other revenue | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Other revenue | 0 | 0 | 0 | 0 |
Other / Elimination | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Total revenue | 93 | 69 | 215 | 96 |
Other / Elimination | Revenue from product sales | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 93 | 69 | 215 | 96 |
Other / Elimination | Gasoline | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 0 | 0 | 0 | 0 |
Other / Elimination | Distillates | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 67 | 50 | 150 | 76 |
Other / Elimination | Ammonia | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 0 | 0 | 0 | 0 |
Other / Elimination | UAN | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 0 | 0 | 0 | 0 |
Other / Elimination | Urea products | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 0 | 0 | 0 | 0 |
Other / Elimination | Freight revenue | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 0 | 0 | 0 | 0 |
Other / Elimination | Other products | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 26 | 19 | 65 | 20 |
Other / Elimination | Crude oil sales | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Revenue from product sales | 0 | 0 | 0 | 0 |
Other / Elimination | Other revenue | | | | |
Disaggregation of Revenue [Line Items] | | | | |
Other revenue | $ 0 | $ 0 | $ 0 | $ 0 |