Independent, non-commercial site. Not affiliated with, sponsored by, or endorsed by Exxon Mobil Corporation. EXXON is a trademark of its owner. Disclaimer

Splitting a Gallon: Pump Price Math by Hand

This page is a calculator in the old sense: a short formula you can run on paper or in a spreadsheet. It takes one posted gasoline price and splits it into the four parts the U.S. Energy Information Administration uses when it explains what drivers pay for: the cost of crude oil, refining costs and margins, distribution and marketing, and taxes. Nothing here predicts prices. It only rearranges numbers you already have.

What the calculation needs

The formula, step by step

  1. Crude per gallon = crude price per barrel ÷ 42. A barrel holds 42 U.S. gallons, so this converts the benchmark into the same unit as the pump.
  2. Taxes = federal excise + state excise + any local per-gallon tax. If your state uses a percentage tax, multiply the pre-tax price by the rate.
  3. Refining share = wholesale gasoline per gallon − crude per gallon. This is a gross margin: it pays for running the refinery and leaves profit or loss.
  4. Distribution and marketing = pump price − taxes − wholesale price. This covers pipelines, terminals, trucks, the station and its margin.

Illustrative example

The figures below are assumptions chosen to show the arithmetic. They are not current prices.

Input (assumed)ValueWorking
Pump price$3.40 / galgiven
Crude benchmark$75 / bbl75 ÷ 42 = $1.79 / gal
Taxes (federal + an assumed state rate)$0.18 + $0.30= $0.48 / gal
Wholesale gasoline$2.35 / galrefining = 2.35 − 1.79 = $0.56
Distribution & marketing3.40 − 0.48 − 2.35 = $0.57

In this made-up case, crude is a little over half of the pump price, taxes are about a seventh, and the rest splits roughly evenly between refining and getting fuel to the nozzle.

Limits of the method

The biggest error comes from timing. A station’s price today reflects fuel it bought days or weeks ago, while the benchmark and wholesale quotes are today’s. When crude is moving fast, the shares can look strange or even negative for a while. The method also assumes the crude benchmark matches what the refinery actually ran, which is rarely exact, and it treats ethanol blending as part of the wholesale price. Use the result as a rough picture of where the money goes, not as an audit of any company.

Sources