Crack Spread Calculator
Calculate refinery profit margins with real-time crude oil and petroleum product prices. Supports 3-2-1, 2-1-1, and simple crack spread formulas.
Need this data in a production workflow?
Compare API limits, history, and support before you build.
The crack spread is the single most-watched measure of refining profitability — the gap between what a refinery pays for a barrel of crude and what it earns selling the gasoline and distillate cracked from it. This calculator applies common benchmark 3-2-1, 2-1-1, and simple gasoline formulas to live crude, gasoline, and heating oil prices, so you can estimate a gross refining-margin proxy per barrel in seconds and compare it with recent history.
Enter your own prices or use the live quotes to see how shifting crude costs and product values move the spread. The ratio is a hedge and analytics convention, not a literal refinery yield statement. For the theory behind the math, see our crack spreads explained guide and refinery margins explained.
Crack Spread Calculator
Refining margin analysis
Price Inputs
Benchmark proxy for a gasoline-heavy refinery slate: two gasoline legs and one distillate leg against three crude barrels.
= $88.20/barrel
= $100.80/barrel
Crack Spread Result
Prices from OilPriceAPI.com. Crack spreads are benchmark gross-margin proxies and do not include actual refinery yields, operating costs, transportation, basis, or downtime. 1 barrel = 42 US gallons.
Read the Spread, Not Just the Number
A crack spread is most useful when it answers compared to what. Track the current margin proxy against its own range, recent changes, and product-leg sensitivity before drawing a conclusion about refinery economics.
Current gross margin proxy
The live result shows product value per crude barrel after the $/gal product legs are converted to $/bbl.
Percentile and range
The historical strip compares today's spread with recent observations, median, minimum, maximum, and the 30-observation move.
Crude vs. product moves
Scenario rows show which leg matters most and how far product prices can move before the benchmark spread reaches zero.
Turn it into an alert
Use the same crude, gasoline, and distillate legs through the API to monitor thresholds, percentiles, and report changes.
How Crack Spreads Work
Crude Input
Refineries purchase crude oil (WTI, Brent) as the primary feedstock. The crude price is your cost basis for calculating margins.
Product Output
Crude is cracked into gasoline, diesel, heating oil, and other products. The spread formula uses benchmark product weights so traders and analysts can compare margin pressure consistently.
Margin Calculation
The crack spread is the difference between product revenue and crude cost. It approximates gross margin before operating costs, transportation, blending, downtime, and local basis effects.
Crack Spread Formulas
3-2-1 Crack Spread (Most Common)
The 42 multiplier converts $/gallon to $/barrel (42 gallons per barrel). This is the gasoline-heavy benchmark most often quoted for US refining-margin analysis.
2-1-1 Crack Spread
Useful when you want a balanced gasoline/distillate proxy rather than a gasoline-heavy benchmark.
Simple Gasoline Crack
Single-product margin calculation. Useful for analyzing gasoline-specific profitability or simple hedging strategies.
Data, Units, and Assumptions
What the calculator includes
The calculator uses crude prices in dollars per barrel and RBOB gasoline / heating oil prices in dollars per gallon. Product legs are multiplied by 42 because a petroleum barrel contains 42 US gallons.
The 3-2-1 and 2-1-1 ratios are standardized market benchmarks. They are useful for comparing margin pressure over time, but they do not capture actual refinery yields, crude quality, fuel gas, byproducts, operating expense, transportation, basis, or downtime.
Trading with Crack Spreads
Wide Spreads Signal
High crack spreads ($20+) indicate strong refining margins, often due to product shortages, refinery outages, or strong demand. Refiners profit.
Narrow Spreads Signal
Low or negative spreads indicate weak refining economics. May signal crude oversupply, product glut, or weak demand. Refiners may reduce runs.
Seasonal Patterns
Spreads typically widen before summer (driving season) and winter (heating demand). Refinery turnaround season (spring/fall) can create volatility.
Hedging Applications
Refiners hedge crack spreads to lock in margins. Traders use futures (NYMEX crack spread contracts) to speculate on margin movements.
Frequently Asked Questions
What is a crack spread?
A crack spread is the difference between crude oil input cost and the market value of refined petroleum products such as gasoline and distillate. It is a gross margin proxy, not a complete refinery profit calculation.
What is a 3-2-1 crack spread?
The 3-2-1 crack spread is a common benchmark ratio: two gasoline legs and one distillate leg against three crude barrels. Product futures quoted in dollars per gallon are multiplied by 42 to convert them to dollars per barrel before the spread is calculated.
What is a 2-1-1 crack spread?
The 2-1-1 crack spread uses one gasoline leg and one distillate leg against two crude barrels. It is useful when you want a more balanced gasoline/distillate benchmark than the gasoline-heavy 3-2-1 spread.
Why do refineries use crack spreads?
Refineries use crack spreads to measure profitability, hedge against price volatility, and make operational decisions. Traders use them to speculate on refining margins and identify market opportunities.
What is a good crack spread?
There is no universal good level because crude quality, region, season, product slate, operating costs, and logistics all matter. Compare the current spread with its own recent history, percentile rank, and seasonal context instead of relying on a fixed threshold.
How often do crack spreads change?
Crack spreads change constantly during trading hours as crude oil and refined product prices fluctuate. Seasonal factors (summer driving, winter heating), refinery outages, and geopolitical events all impact spreads.
Need Crack Spread Data in Your Application?
Access real-time crude oil, gasoline, and heating oil prices via our API. Build automated crack spread calculations, alerts, and analytics.
Related Refining & Product Prices
Crack Spreads Explained
The 3-2-1 benchmark, how it's built, and what wide vs. narrow spreads signal for refiners.
Refinery Margins Explained
How refineries measure profitability beyond the headline crack spread.
Gasoline Price
Live RBOB gasoline prices — the primary product leg of the crack spread.
Heating Oil Price
Live heating oil (distillate) prices used for the distillate leg of the spread.
Diesel Prices
Track diesel and distillate prices, a key driver of the diesel crack.
Brent-WTI Spread
Compare the two crude benchmarks that anchor the cost side of the crack spread.