Skip to content
FiftyCalc Free calculators for all 50 states

Fuel Cost Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Enter the distance, your car's fuel economy and the gas price.

Result

Sample figures

Fuel cost—

Fuel used (gallons) —

  • Cost per mile—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Fuel Cost Calculator

Distance, in mi: enter 0 or more. Prefilled example: 300.

Fuel economy (miles per gallon): enter 1 or more. Prefilled example: 28.

Gas price ($ per gallon): enter 0 or more. Prefilled example: 3.2.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Distance, in mi: enter 0 or more.
  2. Fuel economy (miles per gallon): enter 1 or more.
  3. Gas price ($ per gallon): enter 0 or more.
  4. Read the result: Fuel cost; the panel also shows Fuel used (gallons) and Cost per mile.

How this calculator works

Gallons = miles ÷ MPG. Fuel cost = gallons × price per gallon. Cost per mile = price ÷ MPG.

The formula

  1. G=mmpg
  2. C=G×p
Symbols used in the formula
SymbolMeaningUnit
mDistancemi
mpgFuel economy (miles per gallon)
pGas price ($ per gallon)
GFuel usedgallons
CFuel cost$

Worked example

Distance300 mi
Fuel economy (miles per gallon)28
Gas price ($ per gallon)3.2
Fuel used (gallons)10.71
Cost per mile$0.11
  1. G=30028=10.7143
  2. C=10.7143×3.2=34.2857

Fuel cost $34.29

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

How do I calculate gas cost for a trip?

Divide the miles by your MPG and multiply by the gas price: 300 miles at 28 MPG and $3.20 a gallon costs $34.29.

Where do I find my car's MPG?

On fueleconomy.gov or the window sticker; your real figure from a fill-up is more accurate.

Questions answered

Related calculators