Skip to content

Fuel Cost Calculator

The Fuel Cost Calculator converts miles driven and your car's fuel economy into gallons of fuel and total cost, helping you budget gas and compare vehicles fairly.

What this means

Fuel cost = miles ÷ MPG × price per gallon. Two cars with different MPG can differ by hundreds of dollars a year in gas — a key factor in total ownership cost.

How we calculate it

Formula

Gallons = miles / MPG. Cost = gallons × price per gallon.

Worked example

12,000 miles a year at 30 MPG and $3.50 per gallon:

  1. 1Gallons = 12,000 / 30 = 400
  2. 2Cost = 400 × $3.50 = $1,400

Important assumptions

  • Fuel economy is constant and real-world results vary with driving style.
  • The price per gallon is held constant.

Frequently asked questions

How do I find my real MPG?

Divide the miles driven on a full tank by the gallons needed to refill it. Real-world MPG often differs from the sticker estimate.

Is an EV cheaper to run?

Per mile, electricity is usually far cheaper than gasoline, though purchase price and charging availability matter. Compare total ownership cost, not fuel alone.

Related calculators