Cost Per Mile Calculator
The all-in cost to drive one mile — fuel plus depreciation, insurance, maintenance, and registration — so you can compare cars, set a fair mileage rate, or sanity-check the IRS standard rate against your real numbers.
$0.605
that's 60.5¢ per mile on $7,257 a year, all in
- Annual total
- $7,257all five buckets per year
- Fuel / mile
- 12.1¢
- Depreciation / mile
- 25.0¢
- Fixed vs variable
- 40.8¢ / 19.6¢fixed / variable per mile
What this computes
"Gas is expensive" is the cost everyone notices. It's rarely the biggest one. The real cost of driving a mile is five buckets stacked together: fuel, depreciation, insurance, maintenance/repairs, and registration/fees. This calculator adds them up and divides by the miles you drive, so you get one honest number — what a mile actually costs you.
Enter your annual miles, real fuel economy, and gas price, plus your yearly insurance, maintenance, depreciation, and other costs. It computes the annual total, the cost per mile in dollars and cents, a per-mile breakdown of each bucket, and the split between fixed and variable cost — then compares your number to the IRS standard mileage rate.
The math
Fuel is derived from miles, economy, and price; the rest are annual dollars:
Fuel (yr) = (annual miles / MPG) × gas price
Total (yr) = fuel + insurance + maintenance + depreciation + other
Cost / mile = total annual / annual miles
¢ / mile = cost per mile × 100 Each bucket's per-mile share is just that bucket divided by annual miles, and the five shares always sum back to the total cost per mile.
A worked example
12,000 miles a year, a real 28 MPG, $3.40/gallon gas, $1,600 insurance, $900 maintenance, $3,000 depreciation, $300 registration.
- Fuel: (12,000 ÷ 28) × $3.40 ≈ $1,457/yr
- Total: $1,457 + $1,600 + $900 + $3,000 + $300 = $7,257/yr
- Cost per mile: $7,257 ÷ 12,000 ≈ $0.605 (about 60.5¢)
Fuel is barely a fifth of it. Depreciation — the silent drop in resale value — is the single largest line, and it never shows up at a gas pump.
People budget for gas and ignore depreciation. Per mile, depreciation is usually the bigger number.
Fixed vs variable cost per mile
Not every bucket behaves the same way when you change how much you drive:
- Variable costs — fuel and maintenance — scale with miles. Their per-mile cost stays roughly flat no matter how far you drive.
- Fixed costs — insurance, depreciation, and registration — are paid regardless of miles. Their per-mile cost falls as you drive more, because the same dollars spread over more miles.
This is why mileage matters so much. The same car driven 6,000 miles a year can cost nearly double per mile compared to 18,000 miles a year — not because anything got cheaper, but because the fixed buckets are spread thin. If you barely drive, a huge share of your cost per mile is just owning the car, not using it.
How to use this
- Use real, measured MPG. Sticker economy is optimistic. Divide miles driven by gallons filled over a few tanks and enter that.
- Estimate depreciation honestly. It's the biggest bucket and the easiest to lowball. Use the drop in your car's resale value over a year, not zero just because you didn't "spend" it.
- Compare two cars. Run your current car, then a car you're considering. The all-in cost per mile, not the MPG difference alone, tells you which is actually cheaper to drive.
- Set or check a mileage rate. If you're paid (or pay yourself) a per-mile rate, compare your real number to the IRS standard rate to see whether it covers your true cost.
What this calculator doesn't model
- Financing interest. If the car is financed, loan interest is a real cost of driving not captured here — see the Auto Loan calculator.
- Lumpy repairs. A transmission or a set of tires hits in one year, not evenly. Use a multi-year average for the maintenance bucket so one big bill doesn't distort the per-mile figure.
- EV energy pricing. For an electric car, the fuel bucket is electricity, not gas — compute it with the EV Charging Cost calculator and enter the annual figure.
- The full ownership picture. Cost per mile is a running-cost lens. For the whole life of the car including upfront cost, see True Cost of Ownership.
Frequently asked questions
What's a typical cost per mile? +
Does the IRS standard mileage rate cover my real cost? +
How do I estimate depreciation per mile? +
What's the difference between fixed and variable costs? +
How does cost per mile work for an EV? +
Is this financial advice? +
Related calculators
- MPG / Gas Mileage — the fuel bucket's input: your real measured MPG.
- Fuel Cost — the fuel bucket in detail, per trip and per year.
- True Cost of Ownership — cost per mile plus the upfront cost of the car.
- Mileage Reimbursement — standard vs actual method at the IRS rate.
- Car Depreciation — project the value curve that drives your biggest per-mile bucket.
AutoMath is an educational tool. The numbers above depend entirely on assumptions you provide — especially depreciation — and are not financial advice.