Calculatorz

Free calculator — no sign-up

Fuel Cost Calculator

Before a road trip or a new commute, the fuel bill is the number that matters. Enter the distance, your car's MPG and the fuel price, and this calculator gives you the gallons, the total cost and the cost per mile.

Fuel pump nozzle refuelling a white car at a gas station
Fuel pump nozzle refuelling a white car at a gas station — Photo by Engin Akyurt on Pexels

Your numbers

Your result

Total fuel cost$35.00for this trip

Fuel neededgallons
10
Cost per milefuel cost for each mile driven
$0.12

Results update as you type. They are estimates for planning — see the disclaimer below.

How it works

Fuel (gallons) = distance (miles) ÷ MPG. Total cost = gallons × price per gallon. Cost per mile = price per gallon ÷ MPG (US DOE fueleconomy.gov method).

How to use it

  1. Enter the trip distance in miles — one way, or round trip if that is what you are budgeting.
  2. Enter your car's fuel economy in MPG (check the dashboard or fueleconomy.gov for your model).
  3. Enter the fuel price per gallon.
  4. Read the gallons, the total cost and the cost per mile.

Worked example

A 300-mile trip in a car doing 30 MPG, with fuel at $3.50 a gallon.

Step 1 — fuel: 300 ÷ 30 = 10 gallons. Step 2 — cost: 10 × $3.50 = $35.00. Step 3 — cost per mile: $3.50 ÷ 30 = $0.117 per mile. So the trip costs $35 in fuel, and every extra mile adds about 12 cents.

Result: 10 gallons — $35.00 total, about $0.12 per mile.

Try it yourself: enter the example numbers above and check you get the same answer.

What your result means

Thirty-five dollars for 300 miles is cheap motoring — but the per-mile figure is the useful one: at about 12 cents a mile, a 50-mile daily commute costs about $5.83 a day in fuel, or about $127 a month over 22 workdays. Compare that with the car's other per-mile costs (depreciation, insurance, maintenance) before deciding a long commute is affordable — fuel is usually only a third of the true cost of driving.

Frequently asked questions

How much fuel will my trip use?

Divide the distance by your MPG. A 300-mile trip at 30 MPG uses 10 gallons; at 25 MPG it uses 12 gallons. Multiply the gallons by the fuel price for the cost — $35 at $3.50 a gallon for the 30 MPG car.

What is a good cost per mile for fuel?

At $3.50 a gallon, a 30 MPG car costs about $0.12 a mile, a 25 MPG car $0.14 and a 40 MPG car $0.09. Electric cars are usually $0.03–0.05 a mile for electricity at home rates. Fuel is only part of driving cost — the IRS standard mileage rate, which covers all costs, is far higher.

How do I find my car's real MPG?

Fill the tank, reset the trip meter, drive normally, then fill up again: divide the miles driven by the gallons added. Do it over two or three tanks for a reliable average. Dashboard figures are usually 5–10% optimistic, and fueleconomy.gov lists the official rating for your model.

Does speed affect fuel cost?

Yes — fuel economy falls quickly above about 50 mph, because air resistance rises with the square of speed. Driving at 75 mph instead of 65 can raise fuel use by 15–20%, which on a 300-mile trip at 30 MPG adds about $5–7. Gentle acceleration and steady speed matter more in town.

How do I calculate a round trip?

Enter the total distance — out and back together. A 150-mile round trip is 300 miles of driving, so enter 300. For a regular commute, enter one day's miles and multiply the result by your working days for the monthly cost.

Guides

More in Everyday calculators or all calculators.