Finance Field guide

Fuel margin math: cents per gallon, taxes, card fees and what you keep

How to calculate real fuel margin: cents per gallon, taxes inside the pump price, FIFO cost, card fees, cash vs credit pricing and tank variance.

By the CornerHawk team Published Updated 7 min read

A row of fuel pumps under a gas station canopy

Ask a gas station owner what they make on fuel and you’ll often get a number like “about 30 cents.” That number is usually right at the pump and wrong in the bank. Between the posted price and the deposit sit taxes, card fees, cost changes from one delivery to the next, and the gallons that never made it out of the tank.

This guide walks through the math, step by step, with an illustrative example you can redo with your own numbers.

Try it: the free fuel margin calculator runs this math on your own price, cost, taxes and card mix. It runs in your browser.

Why cents per gallon

Fuel retailers measure margin in cents per gallon (CPG). A percentage margin is misleading for fuel because the price moves so much. If your cost jumps 40 cents and you pass it on, your percentage margin drops even though you earn the same per gallon. CPG tells you what you actually keep per gallon sold.

Gross fuel margin (CPG) = pump price − cost per gallon

Everything else in this article is about getting those two numbers right.

What’s inside the pump price

In the US, per-gallon excise taxes are normally included in the posted price. When a customer pays $3.199, part of that is tax the store collected and must pass on, or that the supplier already paid at the rack and billed back to you in the cost.

The federal excise tax is 18.4¢ per gallon on gasoline and 24.4¢ on diesel, each including 0.1¢ for the Leaking Underground Storage Tank (LUST) trust fund. State excise taxes, environmental or UST fees, and local taxes vary by state and sometimes by county. Some states charge sales tax on fuel on top; others don’t. Check your state’s current rates. They change.

What matters for margin is who remits each tax:

  • Supplier pre-paid. Many taxes are paid by the supplier at the rack and included in your delivered cost per gallon. You don’t owe them again, but they are in your cost.
  • Store remits. Some fees, often environmental or UST fees and sales tax where it applies, are collected by the store and paid to the state directly.

If you treat the whole pump price as revenue and the whole delivered cost as cost, your CPG is correct, but your P&L overstates both sales and cost of sales. If you mix the two, for example taking taxes out of revenue but leaving them in cost, your margin is wrong.

Shop-floor tip: Get a breakdown of your delivered cost from your jobber at least once: rack price, freight, each tax and fee. Then you’ll know which taxes are already in your cost and which ones you owe yourself.

A worked example

Here’s one illustrative day for regular unleaded. Your numbers will be different.

Item Per gallon
Posted pump price (credit) $3.199
Delivered cost from jobber (rack + freight + supplier-paid taxes) $2.840
Gross margin $0.359

That’s 35.9 CPG at the pump. Now the deductions.

Card fees

Most fuel is paid by card. Card fees are usually a percentage of the sale plus a small per-transaction fee. Say your blended effective rate on fuel works out to 2.5% of the price. That’s illustrative; yours depends on your processor, card mix and average ticket.

2.5% × $3.199 = about $0.080 per gallon

So card fees eat 8 CPG of your 35.9.

Fees the store remits

Say your state charges a delivery or UST fee that the store remits itself and that isn’t in the jobber cost. Use an illustrative 1.0¢ per gallon.

What’s left

Item Per gallon
Gross margin $0.359
− Card fees (2.5% of price) $0.080
− Store-remitted fees $0.010
Net margin before overhead $0.269

On 3,000 gallons that day:

3,000 × $0.269 = $807

The “about 36 cents” at the pump became about 27 cents before rent, labor and equipment. That gap is normal. Knowing it is the point.

Cash vs credit pricing

Many stations post a lower cash price and a higher credit price. Say cash is 10¢ less: $3.099. A cash gallon has no card fee, so:

Credit Cash
Price $3.199 $3.099
Cost $2.840 $2.840
Gross CPG $0.359 $0.259
Card fee $0.080 $0.000
Store fee $0.010 $0.010
Net CPG $0.269 $0.249

In this example, the cash discount is slightly bigger than the card fee it saves, so a cash gallon earns 2¢ less. Adjust either number and the answer flips. Run this with your own effective rate before you set the spread.

To report cash and credit separately you need to know how many gallons went each way. Pump sheets often don’t tell you that. One way is to use your fuel card settlement for the credit side and treat the rest as cash. Another is to solve for the mix: if you know total gallons, total dollars, and the cash and credit prices for the day, there’s only one split that matches both.

FIFO: which gallons did you sell?

Your tank holds fuel from several drops at different costs. Say you had 4,000 gallons left from a delivery at $2.78, then dropped 8,000 gallons at $2.90.

If you sold 6,000 gallons since the drop, FIFO says the first 4,000 came from the old load and 2,000 from the new one:

(4,000 × $2.78 + 2,000 × $2.90) ÷ 6,000 = ($11,120 + $5,800) ÷ 6,000 = $2.820 per gallon

Using only the latest delivery cost ($2.90) would understate margin by 8 CPG on those gallons. Using an old cost after prices rise overstates it. FIFO follows the fuel.

Shop-floor tip: When the rack price spikes, don’t panic-price off the new delivery cost while you’re still selling the old load. And when it falls, don’t sit on the old price too long. Your FIFO cost tells you where you really are.

Wetstock: gallons that disappear

Fuel shrinks too. Temperature changes volume. Meters drift. Tanks and lines can leak. Deliveries can come in short.

Wetstock reconciliation compares:

Opening tank volume + deliveries − gallons sold − closing tank volume = variance

A small daily variance that wobbles around zero is normal. A variance that runs in one direction day after day is a meter problem, a delivery problem or a leak, and a leak is a compliance and environmental issue, not just a margin issue. Your state and your tank monitoring equipment have specific requirements here. Follow them.

Day Opening Delivered Sold Expected closing Stick / gauge Variance
Mon 6,200 0 2,950 3,250 3,240 −10
Tue 3,240 8,000 3,100 8,140 8,150 +10
Wed 8,150 0 3,020 5,130 5,105 −25

Track it daily so a trend shows up early.

Putting it on the P&L

For a P&L that’s comparable month to month:

  • Net fuel revenue = pump sales − taxes included in the price − sales tax on fuel (where it applies).
  • Net fuel cost = FIFO cost − supplier pre-paid taxes + fees the store absorbs.
  • Fuel margin = net revenue − net cost.

Card fees go to their own expense line. That way fuel margin compares cleanly across price swings, and card fees are visible as what they are.

How CornerHawk handles fuel

CornerHawk’s fuel module covers the parts of this you need day to day.

  • Prices per grade with cash and credit prices, and deliveries that feed FIFO cost per grade.
  • Taxes and fees per gallon (federal excise, state excise, environmental or UST fee, local, other) per grade and store, with effective dates, whether each is in the pump price or absorbed by the store, and whether the store or the supplier remits it. A Texas starting set is included, each line marked to verify with your state. Nothing is hard-coded per state.
  • For each grade-day, the Profit tab uses net revenue and net cost as described above; the P&L and general ledger use the same figures, with only what the store owes accruing to fuel taxes payable.
  • Fuel cash vs credit in the reports center splits gallons and dollars per grade per day, from the Daily Book jobber settlement when entered, otherwise from that day’s cash and credit prices.
  • Fuel sales and jobber card settlements flow into the Daily Book, and card processing shows your effective rate.

The glossary defines rack price, jobber, UST fee and wetstock if you need them.

The short version

  • Measure fuel in cents per gallon.
  • Know which taxes are already in your delivered cost and which ones you remit.
  • Take card fees out at your real effective rate.
  • Use FIFO cost, not the last delivery.
  • Reconcile tank volumes every day and act on trends.

Quick answers

How is fuel margin usually measured?

In cents per gallon (CPG): the pump price minus the cost of the fuel, per gallon. Retailers use CPG instead of a percentage because fuel prices move a lot and a percentage hides what's actually earned per gallon.

Are fuel taxes included in the pump price?

In the US, federal and state per-gallon excise taxes are normally built into the posted price, not added at the register. Some states also charge sales tax on fuel, and some don't. Check your state's rules.

What is the federal tax on gasoline and diesel?

Federal excise is 18.4 cents per gallon on gasoline and 24.4 cents on diesel, each including 0.1 cent for the Leaking Underground Storage Tank (LUST) trust fund. State and local taxes vary widely.

Why use FIFO for fuel cost?

Your tank holds fuel from several deliveries at different prices. FIFO assumes the oldest gallons sell first, which matches how a tank actually drains and gives a cost per gallon that follows your real purchases.

#fuel#margins#taxes#wetstock

→ Next step

Bring your pricebook. We’ll show you your store in it.

A 30-minute walkthrough on your kind of store: your departments, your vendors, your end-of-day. No slide deck.

Or write to hello@cornerhawk.com

A corner market on a wide street corner on a sunny day
Open late.
Closes itself.