Cost per Mile Calculator

Find what each mile costs you in gas, or the total cost per mile to own and drive your car.

Enter a price greater than 0.
Enter a number greater than 0. Calculate your MPG if you are not sure.
Enter a number greater than 0. Add it to see your monthly and yearly fuel cost.

Fuel cost per mile

$0.000/ mile

Enter gas price and MPG.

Per 100 miles
—
Per 1,000 miles
—
Monthly fuel cost
—
Yearly fuel cost
—
Formula

How to calculate cost per mile

Cost per mile = total cost ÷ miles driven. For gas only, divide the price per gallon by your MPG: $3.50 ÷ 28 MPG = $0.125 per mile (12.5 cents).

Gas cost per mile

Fuel cost per mile = price per gallon ÷ MPG

Example

Gas is $3.50 a gallon and your car gets 28 MPG.

$3.50 ÷ 28 = $0.125 per mile
× 100 miles = $12.50
× 1,000 miles a month = $125 a month

Cost per mile for fuel from a fill-up

If you know what you spent and how far you drove on that tank, skip MPG and divide directly:

Fuel cost per mile = amount spent on gas ÷ miles driven

Example: you paid $45.60 to fill up and drove 380 miles on the previous tank. $45.60 ÷ 380 = $0.12 per mile.

Full picture

Total cost per mile to drive your car

Gas is only part of what a mile costs. To find your car's total cost per mile, add up every cost for the same period and divide by the miles you drove in that period:

Total cost per mile = (fuel + insurance + payment + maintenance + tires + fees + parking) ÷ miles

Example: one year of driving

12,000 miles a year at 30 MPG with gas at $3.50 uses 400 gallons, so fuel costs $1,400.

  • Fuel: $1,400
  • Insurance: $1,800
  • Car payment: $4,800
  • Maintenance & repairs: $900
  • Tires: $250
  • Registration & fees: $150

Total = $9,300 a year
$9,300 ÷ 12,000 miles = $0.775 per mile

What to include

  • Fuel: calculated for you from miles, MPG and gas price.
  • Insurance: your auto insurance premium for the period.
  • Car payment or depreciation: your loan or lease payment. If the car is paid off, you can enter an estimate of how much value it loses per year, or leave it blank.
  • Maintenance and repairs: oil changes, brakes, filters, fluids and repair bills.
  • Tires: the cost of a set of tires spread over the years they last.
  • Registration and fees: registration, inspection and other yearly fees.
  • Parking and tolls: only the regular costs that come with your driving.
FAQ

Cost per mile questions

How do you calculate cost per mile?

Divide your total cost by the miles you drove: cost per mile = total cost ÷ miles. For a whole year of driving, add up fuel, insurance, payments, maintenance, tires and fees, then divide by the miles you drove that year.

How do I calculate gas cost per mile?

Divide the price of a gallon of gas by your car's MPG. At $3.50 per gallon and 28 MPG, gas costs $3.50 ÷ 28 = $0.125 (12.5 cents) per mile. You can also divide what you spent on a fill-up by the miles you drove on that tank.

How do I calculate my monthly fuel cost?

Multiply the miles you drive in a month by your gas cost per mile. Driving 1,000 miles a month at $0.125 per mile costs about $125 a month in fuel, or $1,500 a year.

What costs should I include in my car's cost per mile?

For the full cost of driving, include fuel, insurance, your car payment or the value the car loses each year (depreciation), maintenance and repairs, tires, registration and fees, and regular parking or tolls. Use the same period (month or year) for every cost and for the miles.