Markets
S&P 500------DOW------NASDAQ------BTC------GOLD------S&P 500------DOW------NASDAQ------BTC------GOLD------
Back to Glossary
EnergyGLOSSARY

What Is Oil Refinery Margins?

The profit spread between crude oil input costs and refined petroleum product selling prices at oil refineries.

Rachel Kim 3 min readUpdated Apr 7, 2026

Opening Hook


When Valero Energy (VLO) posted a staggering $4.7 billion in quarterly earnings last year—more than Apple made from iPads—it wasn't because oil prices skyrocketed. It was because refinery margins exploded to levels we hadn't seen since 2007. While everyone watches crude oil prices, the real money in energy often sits in the unglamorous world of turning black sludge into gasoline, diesel, and jet fuel.


What It Actually Means


Oil refinery margins represent the profit spread between what refiners pay for crude oil and what they receive for selling refined products like gasoline, diesel, heating oil, and jet fuel. Think of it like a restaurant buying raw ingredients and selling finished meals—the margin is your profit after accounting for the cooking process.


Technically, we calculate the gross refinery margin as: (Price of refined products) - (Price of crude oil feedstock) = Margin per barrel. The most commonly tracked benchmark is the 3-2-1 crack spread, which assumes a refinery processes three barrels of crude oil to produce two barrels of gasoline and one barrel of heating oil. This spread gets quoted in dollars per barrel and fluctuates daily based on supply, demand, and seasonal factors.


How It Works in Practice


Let's walk through Phillips 66's (PSX) operations during the summer driving season. In July 2023, West Texas Intermediate crude traded around $75 per barrel. Meanwhile, wholesale gasoline prices hit $2.40 per gallon ($100.80 per barrel) and diesel reached $2.20 per gallon ($92.40 per barrel).


Using the 3-2-1 crack spread formula:

Input cost: 3 barrels of crude × $75 = $225
Output revenue: 2 barrels gasoline ($100.80 × 2) + 1 barrel diesel ($92.40 × 1) = $294
Gross margin: $294 - $225 = $69 per three barrels, or $23 per barrel

This $23 margin was exceptional—historically, refiners operate on $8-15 per barrel margins. Phillips 66 reported refining margins of $31.67 per barrel that quarter, driving their stock up 28% as investors realized these weren't normal times. The key driver was tight refining capacity after COVID-19 shutdowns permanently closed several facilities.


Why Smart Investors Care


Professional energy investors use refinery margins as a leading indicator for integrated oil stocks and pure-play refiners like Marathon Petroleum (MPC) and Valero. When margins expand above $20 per barrel, we typically see massive free cash flow generation that funds share buybacks and special dividends.


Smart money also watches the margin curve—the difference between prompt month and future delivery spreads. When current margins trade significantly above forward margins, it signals temporary tightness rather than structural improvements. Conversely, Warren Buffett's 2020 investment in Chevron (CVX) came partly from his team recognizing that refining margins would eventually normalize upward as global travel resumed, benefiting integrated players with significant downstream operations.


Common Mistakes to Avoid


Assuming high crude prices automatically hurt refiners—margins often expand when crude falls faster than product prices, creating temporary disconnects that benefit processors
Ignoring seasonal patterns—driving season (summer) and heating season (winter) create predictable margin cycles that affect quarterly earnings
Overlooking refinery complexity—sophisticated refiners processing heavy crude often maintain better margins than simple refineries limited to light, sweet crude
Confusing gross margins with net margins—operational costs, maintenance turnarounds, and environmental compliance can eat 30-50% of gross spreads

The Bottom Line


Refinery margins offer one of the purest plays on energy supply-demand imbalances, often moving independently of crude oil prices. Smart investors track these spreads to time entries into refining stocks and understand when integrated oil companies will generate excess cash flow. As global refining capacity remains constrained and demand recovers, will margins stay elevated long enough to justify today's valuations?