MPG Snap

Cost per mile calculator

What does each mile in your car really cost? Start with fuel, then add service, insurance and other yearly costs to see the full running cost per mile or per km.

Registration, parking, tolls.

Fuel cost–
Fuel per year–
All costs per year–
Total cost–

The formula

Fuel cost per mile = price per gallon ÷ MPG
Total cost per mile = (fuel per year + other costs per year) ÷ miles per year

Example

A car that averages 28 MPG, with gas at $3.20 a gallon, driven 12,000 miles a year:

Why it is worth knowing

Questions

How do I calculate fuel cost per mile?

Divide the price of a gallon by your MPG. Example: $3.20 ÷ 28 MPG = $0.114 per mile. In metric: L/100km × price per liter ÷ 100 gives the cost per km.

What should I include in the total cost per mile?

Fuel plus everything you pay to keep the car running: service and repairs, tires, insurance, registration and parking. Add the yearly amounts and divide by the miles you drive a year. Depreciation and loan interest are real costs too, if you want the full picture.

Is this the same as the IRS mileage rate?

No. The IRS standard mileage rate is a fixed rate set each year for tax deductions. This calculator shows what your own car actually costs you. Check the IRS site or a tax advisor for deduction rules.

More tools and guides