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 each field means

Every input below changes the result in a specific way. This is what each one expects, what it starts at, and the range it accepts.

Miles per year

A plain number. Enter digits only, with no symbols or separators.

Starts at: A plain number. Enter digits only, with no symbols or separators.

Accepted range: 0 to 200000

Fuel economy (MPG)

A plain number. Enter digits only, with no symbols or separators.

Starts at: A plain number. Enter digits only, with no symbols or separators.

Accepted range: 1 to 100

Price per gallon

A monetary amount. Enter a number without a currency symbol.

Starts at: $3.5

Accepted range: $0 to $20

How to read your result

The calculator reports the figures below. The headline figure answers the question in the title; the rows underneath break it down so you can see what drives it.

Fuel cost per year
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Gallons used
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Cost per month
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Total gallons
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Gallons
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Per month
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Per week
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.

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