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.
The formula
Example
A car that averages 28 MPG, with gas at $3.20 a gallon, driven 12,000 miles a year:
- Fuel: $3.20 ÷ 28 = $0.114 per mile, or $1,371 a year
- Add $600 of service, $1,500 of insurance and $300 of other costs: $3,771 a year
- Total running cost: $3,771 ÷ 12,000 = $0.314 per mile
Why it is worth knowing
- Car or bus, drive or fly: compare a trip's real cost, not just the gas.
- Buying a car: a car with better MPG but higher insurance might not be cheaper.
- Driving for work: know whether the mileage you are paid covers what the car costs you.
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
- MPG calculatorMPG, L/100km and km/L from one fill-up.
- Trip fuel cost calculatorGas needed and cost for a drive.
- MPG converterL/100km to MPG and back, US and UK gallons.
- How to calculate MPGThe full-tank method, step by step.
- Dashboard MPG vs real MPGWhy your car's display disagrees.
- Gas mileage tracker appTrack every fill-up automatically.
- Gas receipt scannerPhoto of the receipt, numbers filled in.