From Barrel to Gallon: Where the 42 Comes From
A barrel of crude is 42 gallons, and that single number does most of the work here. Divide the barrel price by 42 and you get the crude cost embedded in one gallon of gasoline before anyone refines, ships, or taxes it. At $70 crude that is $1.67 a gallon; at $120 crude it is $2.86. Everything else at the pump — refining, distribution and marketing, and taxes — gets stacked on top of that base. The handy shortcut worth remembering: a $1 change in crude moves the pump by about 2.4 cents, because $1 spread across 42 gallons is roughly $0.024.
A Worked Example at $80 a Barrel
Say crude is trading at $80. The crude cost per gallon is $80 / 42 = about $1.90. Refining typically adds around $0.40, and distribution plus marketing and retailer margin adds roughly another $0.20, so call it $0.60 of downstream cost. Taxes land near $0.50 for a typical state — the 18.4-cent federal excise tax plus a state tax in the low-to-mid 30s. Add it up: $1.90 + $0.60 + $0.50 lands right around $3.00 a gallon at the pump. Change the crude input to $100 and the crude slice jumps to $2.38, pushing the same build toward $3.50 — that is the 2.4-cents-per-dollar rule playing out.
Why the Pump Lags the Barrel
Oil prices reset by the second on futures screens, but the gasoline in a station's tanks was refined from crude purchased weeks ago, so the pump is always looking backward. Layer on the fixed cents-per-gallon taxes that never fall when crude falls, refining margins that widen during outages and the summer-blend switch, and the well-documented tendency of retailers to raise fast and cut slow, and you get a pump price that drifts rather than tracks. This tool strips all that noise out and shows the pure cost-based number, so you can see what gas should cost at a given crude price and how far reality has wandered from it.
Oil Price to Gas Pump Price Calculator
How to Use This Calculator
- Enter the Crude Oil Price ($/barrel): Type the current WTI or Brent barrel price — the field accepts $20 to $200. This is the one input that drives the crude-per-gallon base, computed as barrel price divided by 42 gallons.
- Set Your State Gas Tax ($/gal): Enter your state's per-gallon gas tax. It ranges from single digits to over $0.60 depending on where you live; the federal 18.4-cent tax is already added for you.
- Adjust the Refining Cost ($/gal): Set the refining margin. Around $0.40 is typical, but bump it toward $0.80-$1.00 during refinery outages, hurricane season, or the summer-blend changeover.
- Click Calculate: Run the numbers to stack crude, refining, taxes, and margin into an estimated pump price. Results appear instantly below.
- Read the Breakdown: Check the crude cost per gallon, total taxes, retailer margin, and the crude share of the total. Change the barrel price and recalculate to see the roughly 2.4-cents-per-dollar sensitivity for yourself.
How It Works
Start with the one number that anchors everything: a barrel of crude holds 42 gallons, so dividing the barrel price by 42 tells you the raw crude cost baked into every gallon of gas. From there the calculator stacks on the four other costs that turn crude into finished fuel at the pump — refining, distribution and marketing, the 18.4-cent federal excise tax, and your state's gas tax.
The basic rule:
- Crude per gallon = barrel price / 42
- Estimated gas = crude/gal + refining + taxes + margin
A useful rule of thumb falls out of the math: every $1 move in crude shifts the pump by about 2.4 cents a gallon, since $1 spread over 42 gallons is roughly $0.024. The output is a cost-based estimate, not a live quote — real pump prices lag crude by weeks and vary by region.
Tips & Considerations
- Remember the shortcut: every $1 move in crude shifts the pump about 2.4 cents ($1 ÷ 42 gallons ≈ $0.024), so a $10 crude swing is roughly a quarter a gallon.
- Use WTI or Brent spot prices for the barrel input — they usually differ by a few dollars, so pick whichever benchmark your region's refiners actually buy.
- Nudge the refining cost up in summer: EPA low-volatility blends and peak demand routinely add 10-40 cents a gallon that crude alone won't explain.
- Compare your calculated price to what you're actually paying — a big gap usually means crude moved recently and the pump hasn't caught up, or a refinery is offline.
- Look up your own state's gas tax rather than guessing; the spread between low- and high-tax states is over 50 cents a gallon and dwarfs small crude moves.
Frequently Asked Questions
How many gallons of gas come from a barrel of oil?
A 42-gallon barrel of crude yields roughly 19-20 gallons of gasoline, plus diesel, jet fuel, heating oil, and other products. That is why the crude cost per gallon in this tool uses 42 (the physical barrel size) rather than the smaller gasoline yield — the whole barrel has to be paid for, and refiners recover the rest of the cost across every product they sell.
Why don't pump prices drop right away when oil prices fall?
Two reasons. First, timing: the gasoline in the station's underground tanks was refined from crude bought weeks earlier, so today's price reflects last month's oil. Second, behavior: stations raise prices fast when crude jumps to protect margins but lower them slowly when crude drops, an asymmetry economists nicknamed 'rockets and feathers.' A crude decline usually takes 4-6 weeks to fully show up at the pump, versus 1-2 weeks for an increase.
How much do taxes add to a gallon of gas?
The federal excise tax is a flat 18.4 cents per gallon and has not changed since 1993. State taxes stack on top and vary widely — from single digits in a few states to well over 60 cents in California, Pennsylvania, and Illinois. Combined, taxes typically add 40 to 80 cents per gallon. Because these are fixed cents-per-gallon amounts, they do not shrink when crude falls, which is a big reason cheap oil never fully translates to cheap gas.
What is the refining margin, and why does it swing?
Refining margin (often tracked as the 'crack spread') is what refiners charge to turn crude into finished gasoline. It usually runs 30 to 60 cents a gallon but blows out to a dollar or more when refineries go offline for maintenance, get hit by hurricanes, or can't keep up with summer demand. This margin is why gas can spike even when crude is flat — the bottleneck is refining capacity, not the price of oil itself.
Why does gas cost more in the summer?
From roughly June through September, the EPA requires lower-volatility 'summer blend' gasoline in many metro areas to cut smog. Summer blend is more expensive to produce and there are dozens of regional recipes (so-called boutique fuels), which fragments supply. Add peak driving-season demand and the seasonal switch typically adds 10 to 40 cents a gallon that has nothing to do with the crude price you enter here.
How much would gas cost if oil hit $200 a barrel?
At $200 per barrel, crude alone is $200 / 42 = about $4.76 per gallon. Add roughly $0.40-$0.60 for refining, $0.10-$0.15 retailer margin, and $0.55-$0.85 in combined federal and state taxes, and the pump lands around $5.80-$6.30 per gallon. Real prices could run higher if a $200 barrel came from a supply shock that also strained refining capacity.
What share of the pump price is actually crude oil?
At normal prices, crude makes up about 50-60% of what you pay. Taxes are usually 16-22%, refining is 14-18%, and distribution, marketing, and retailer margin cover the rest. When oil spikes, crude's share climbs past 65% because the fixed-cent taxes and margins shrink as a percentage of a bigger total. Run two scenarios in the calculator and watch the 'Crude % of Gas Price' figure move.