Skip to content

Everyday

Fuel Cost Calculator

Enter the trip distance in miles, your fuel economy in miles per gallon, and the price of gas. The calculator shows the gallons the trip requires, the total fuel cost, and the cost per mile. It covers fuel only, not tolls, parking, or wear. Real-world mileage varies with speed, terrain, and load.

Updated 2026-11-12 Editorial estimate Calccc Editorial Team Free · No sign-up

Loading calculator…

What this calculator does

This fuel cost calculator estimates what a drive costs in gas. Divide the trip distance by your miles per gallon to get gallons, then multiply by the price at the pump. The result is useful for comparing a road trip with a flight, splitting fuel costs among passengers, or deciding whether a longer but cheaper route is worth it. Use your own measured mpg rather than the window-sticker figure for a realistic number.

How to use it

  1. Enter the one-way trip distance in miles.
  2. Enter your vehicle's real fuel economy in mpg.
  3. Enter the price you expect to pay per gallon.
  4. Review the gallons needed, total cost, and cost per mile.
  5. Add the return leg, or double the distance, to price the whole trip.

How it works

Gallons = distance in miles / fuel economy in mpg. Total fuel cost = gallons x price per gallon. Cost per mile = total fuel cost / distance, which also equals price per gallon / mpg. For 300 miles at 25 mpg and $3.50 a gallon, gallons = 12, cost = $42.00, and cost per mile = $0.14.

Example calculations

Example 1: 300 miles at 25 mpg

At $3.50 a gallon, 300 miles at 25 mpg needs 12 gallons and costs $42.00. That is 14 cents per mile, or about $14 for every 100 miles driven.

Example 2: 500 miles at 30 mpg

At $4.00 a gallon, 500 miles at 30 mpg needs about 16.7 gallons and costs about $66.67. The cost per mile is about 13 cents, so the more efficient car offsets the higher price.

Example 3: 100 miles at 20 mpg

At $3.25 a gallon, 100 miles at 20 mpg needs 5 gallons and costs $16.25. That is about 16 cents per mile, the highest of the three because the vehicle is the thirstiest.

What the result means

The cost per mile is the number worth remembering, because it prices any trip quickly. At 25 mpg and $3.50 gas, every 100 miles costs about $14. A vehicle that gets 35 mpg on the same fuel costs about $10 per 100 miles, so the difference adds up over a year of commuting. Real fuel economy usually lands below the EPA estimate. Short trips, cold starts, air conditioning, roof racks, heavy loads, and highway speeds above about 60 mph all raise consumption. If you track miles and gallons for a few fill-ups, you get a number that fits your driving far better than the label.

Common mistakes

  • Using the window-sticker mpg instead of the mileage you actually get.
  • Forgetting that a round trip doubles the distance.
  • Ignoring tolls, parking, and fuel burned while idling in traffic.
  • Mixing kilometers with miles per gallon.
  • Assuming the price is the same everywhere along the route.

Assumptions and limits

  • Fuel economy is constant for the whole trip.
  • The tank starts full and is refilled at the stated price.
  • Distance is one way unless you add the return leg.
  • Tolls, parking, and maintenance costs are excluded.
  • The price is per gallon in US dollars.

Frequently asked questions

How do I find my real mpg?

Fill the tank, reset the trip odometer, drive normally, then fill up again and divide miles driven by gallons added. Repeat over three or four tanks.

Does driving faster cost more?

Usually. Fuel economy drops quickly above about 60 mph because aerodynamic drag rises with speed. Slowing down a little often saves fuel.

Should I include the return trip?

Yes, if you are pricing the whole journey. Double the one-way distance or enter the round-trip total.

Why is my cost higher than the calculator?

Common causes are lower real mpg, idling, air conditioning, hilly terrain, headwinds, and a price at the pump higher than you entered.

Can this work for an electric vehicle?

Not directly. This calculator uses gallons and mpg. For an EV, use cost per kilowatt-hour and miles per kWh instead.

Does tire pressure matter?

Yes. Underinflated tires raise rolling resistance and reduce fuel economy, so check pressures monthly.

Sources

This calculator is an educational estimate only. It assumes a constant fuel economy and price, and it ignores tolls, parking, maintenance, and traffic. Real fuel economy varies with driving style, weather, terrain, and vehicle condition. Use it to plan a budget, not to predict an exact expense.

2026 update

How to use the professional output

This page is not just a formula box. The result is designed to be checked, compared, and taken away.

  • Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
  • A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
  • Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.

The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.

Go deeper

Guides that explain the math

Fuel Cost Calculator: MPG, Price, and Trip Cost
Everyday

Fuel Cost Calculator: MPG, Price, and Trip Cost

Estimate the fuel cost of a trip from distance, fuel economy, and price, including round trips and real-world MPG.

5 min read

Calccc Editorial Team · Updated 2026-11-12

Prepared by Calccc Editorial Team as an educational estimate. This page is not a licensed professional review and is not financial, medical, legal, or tax advice.

Editorial estimate prepared by the Calccc Editorial Team; not a licensed professional review.