AutoMath
Running costs

Fuel Cost Calculator

What a specific trip and a full year of driving actually cost in gas — at your real MPG and local price — plus a side-by-side against a more efficient car.

Your numbersSaved on this device only
This trip costs

$14.00

120 mi · 4 gal · $0.12/mi

A full year at 12,000 miles costs $1,400 in fuel.

Cost per mile
$0.12
Annual gallons
400 gal
Annual fuel cost
$1,400
Per month
$117annual ÷ 12

What this computes

Fuel is the cost that's easy to underestimate because it's paid in small, frequent amounts. A $55 fill-up doesn't feel like much; the $2,000+ a year it adds up to does. This calculator makes both the trip number and the annual number visible at once.

Enter your real MPG, local gas price, a trip distance, and your annual mileage. It returns the cost of that trip, the cost per mile, and the full-year fuel bill. Add a second MPG to see exactly what a more efficient vehicle would save you per year — the figure that decides whether the efficient car's price premium is worth it.

The math

It's deliberately simple and exact:

Trip gallons   = trip miles / MPG
Cost per trip  = trip gallons × price
Cost per mile  = price / MPG
Annual cost    = (annual miles / MPG) × price

Cost per mile is the key derived number: it's independent of distance, so it compares any two vehicles or routes directly. The annual figure is just cost per mile scaled by how far you drive in a year.

A worked example

30 MPG, $3.50/gallon, a 120-mile one-way trip, 12,000 miles a year.

  • Trip: 120 / 30 = 4 gal × $3.50 = $14
  • Cost per mile: $3.50 / 30 ≈ $0.117
  • Annual: (12,000 / 30) × $3.50 = $1,400
  • A 45-MPG car would cost ≈ $933 — $467/yr less
What matters is gallons per mile, not miles per gallon. That's why 20→30 MPG saves far more than 40→50.

How to use this

  1. Measure your real MPG. Divide miles driven by gallons filled over a few tanks. It's almost always below the sticker — budget on the real number.
  2. Use cost per mile to compare cars. It strips out trip length and exposes the true efficiency gap between two vehicles.
  3. Run the comparison MPG before upgrading. See the annual saving, then weigh it against the price difference and how long you'll keep the car.
  4. Plan road trips with the trip figure. Toggle round trip and enter the route distance for an exact fuel line in your travel budget.

The real-MPG gap

The single biggest source of error in fuel budgeting is using the EPA sticker MPG. Real-world economy is typically lower because of:

  • Speed. Aerodynamic drag rises with the square of speed; sustained 75+ mph highway driving can cut MPG 10-15% versus the test cycle.
  • Short trips and cold starts. An engine is least efficient before it warms up — lots of short trips destroys economy.
  • Climate and accessories. Cold weather, winter blends, A/C, and roof/cargo loads all take a measurable bite.

The fix is trivial: use your measured MPG, not the brochure's. A 4-MPG optimism on a 12,000-mile year is roughly $200 of budget that simply isn't there.

What this calculator doesn't model

  • Electric vehicles. EV energy is priced per kWh with charging losses, not per gallon. Use the EV Charging Cost calculator.
  • Variable MPG within a trip. City vs highway economy differ; this uses one blended figure. For mixed driving, enter a realistic combined number.
  • Price volatility. Gas prices move. For an annual budget, use a conservative (higher) price or re-run periodically.
  • The rest of ownership cost. Fuel is one line. Depreciation, insurance, and maintenance are the rest — see True Cost of Ownership.

Frequently asked questions

How is fuel cost per trip calculated? +
Trip miles divided by your MPG gives gallons used; gallons times the price per gallon gives the cost. For a round trip the distance is doubled first. Cost per mile is simply the gas price divided by MPG — a useful constant for comparing any distance or vehicle.
Should I use the EPA MPG or my real-world MPG? +
Use your real-world figure if you have it. EPA sticker numbers are lab-derived and most drivers see lower, especially with short trips, cold weather, highway speeds above 65, roof racks, or aggressive driving. Reset a trip computer or divide miles driven by gallons filled over a few tanks for an honest number. Budgeting on the optimistic sticker MPG understates annual cost.
How much does a more efficient car actually save? +
Enter a second MPG to see it. The saving is not linear in MPG — going from 20 to 30 MPG saves far more fuel than going from 40 to 50, because what matters is gallons per mile, not miles per gallon. At typical annual mileage the gap between a 25-MPG and a 40-MPG car is often $700-1,000+ per year at moderate gas prices.
Why is cost per mile such a useful number? +
It's the one figure that's independent of trip length, so you can compare vehicles, plan any route, or sanity-check a road trip in seconds. At $3.50/gallon a 30-MPG car costs about 12¢/mile in fuel; a 15-MPG truck about 23¢. Over 100,000 miles that's an $11,000 difference from fuel alone.
Does this work for diesel or premium fuel? +
Yes — just enter the correct price per gallon for the fuel your car takes and its MPG on that fuel. The math is identical. For an electric vehicle, use the EV Charging Cost calculator instead, since energy is priced per kWh, not per gallon.
Is this an exact figure? +
It's a solid planning estimate. Real fuel use varies with terrain, traffic, load, weather, and how you drive. AutoMath is an educational tool; the output depends entirely on the MPG and price you enter. Use a conservative MPG for budgeting.

Related calculators

Why gallons-per-mile beats MPG: the real cost of fuel.

AutoMath is an educational tool. The numbers above depend entirely on assumptions you provide and are not financial advice.