What Is Oil Refinery Margins?
The profit spread between crude oil input costs and refined petroleum product selling prices at oil refineries.
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:
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
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?
Related Energy News

Global Manufacturing Crisis Unfolds as Middle East Energy Chokepoint Triggers Industrial Cascade
Sarah Chen · 3m
Energy Crisis Sparks Global Economic Realignment as Iran Conflict Reshapes Supply Chains
Rachel Kim · 3m
Critical Minerals Supply Chain Showdown: American Companies Race Against China's Tightening Grip
Dr. Emily Park · 2m
Market Paradox: Why Oil Prices Defy Traditional Geopolitical Crisis Playbook as Iran Tensions Escalate
Dr. Emily Park · 3m