STRATEGY LIBRARY · SPREADS & CARRY · 2 OF 5

The crack spread (refining margin)

Trade crude oil against gasoline and diesel to express a view on refining margins, using the 3:2:1 crack.

STRATEGY PROFILE~15–20 MINUTES
Style
Inter-commodity spread
Horizon
Weeks to months
Typical markets
CL, RB, HO futures
Data you need
Daily settlements of three contracts
Difficulty
Advanced

Why it might work

Refiners buy crude and sell products, so their margin is the crack spread. It is driven by product demand (summer driving, winter heating), refinery outages and capacity, and crude supply. Because the relationship is economic, extreme margins tend to attract responses, such as refiners running harder when margins are high, which can pull them back over time.

When it works, and when it struggles

Margins have strong seasonality and can stay extreme for long periods during outages or demand shocks. Mean-reversion rules need seasonal context.

The rules, written so they can be tested

Spread
(2 × RB × 42 + HO × 42 − 3 × CL) ÷ 3, in dollars per barrel.
Entry
Buy the crack (long 2 RB, long 1 HO, short 3 CL) when it is 1.5 standard deviations below its 20-day average.
Exit
When it is 0.5 standard deviations above the average, or after 30 trading days.
Risk
A dollar stop equal to 2 standard deviations of the crack × 3,000 barrels.
WORKED EXAMPLE
3:2:1 crack spread, syntheticThe value of a 3:2:1 crack spread over 60 days, with a buy where it is 1.5 standard deviations below its 20-day average and an exit when it is half a standard deviation above.$24.36$25.19$26.02$26.85$27.68$28.513:2:1 crack ($/bbl)Buy crackExitSYNTHETIC DATA · ILLUSTRATION ONLY
Synthetic daily settlements for crude oil (CL, $/bbl), RBOB gasoline (RB) and ULSD (HO), both in $/gallon.

A refiner turns roughly three barrels of crude into two of gasoline and one of diesel. The 3:2:1 crack spread approximates that margin per barrel: (2 × gasoline × 42 + 1 × diesel × 42 − 3 × crude) ÷ 3, because product prices are quoted per gallon and a barrel holds 42 gallons.

On day 22 the crack was $25.26 a barrel, 1.59 standard deviations below its 20-day average, past the 1.5 threshold. Buying the crack means long 2 RB and 1 HO, short 3 CL.

On day 36 the crack had recovered to $25.59. Leg by leg: gasoline 2 × ($2.2286 − $2.3503) × 42,000, diesel ($2.3139 − $2.4486) × 42,000, crude −3 × ($69.21 − $74.83) × 1,000. The total is $979.80.

That equals the change in the crack, +$0.33 a barrel, times the 3,000 barrels of crude in the spread. Refining margins have strong seasonal patterns and can stay depressed or elevated for months, so a z-score alone is a weak reason to trade them.

Crude (CL)Gasoline (RB)Diesel (HO)Crack
Day 22$74.83$2.3503$2.4486$25.26
Day 36$69.21$2.2286$2.3139$25.59

How it fails

  • Seasonal shifts mistaken for mean reversion.
  • Refinery outages or policy changes that reset the level.
  • Execution of three legs at once (legging risk).

Test it yourself

  • Compare each z-score signal with the same calendar weeks in prior years.
  • Price the three legs at the same time of day; mismatched settlement times create fake signals.

Common variants

  • The 1:1 gasoline crack (RB × 42 − CL).
  • Using the exchange's listed crack spread contracts.

Watch for this misconception

Thinking a crack trade is a bet on crude oil. It is a bet on the margin between crude and products; crude can rise and the crack can still widen.

PRACTICE EXERCISE

Using today's settlement prices for CL, RB and HO, compute the 3:2:1 crack in dollars per barrel.

Futures P&L calculator ↗
KNOWLEDGE CHECK

Why is gasoline's price multiplied by 42 in the crack formula?

Select the best answer

Go deeper

Educational description of a publicly discussed trading approach, illustrated on synthetic data. It is not a recommendation, a signal, or evidence that the approach is profitable. Test any idea yourself, with realistic costs, before risking money.