AutoMath
Running costs

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.

Your numbersSaved on this device only
Cost per mile

$0.605

that's 60.5¢ per mile on $7,257 a year, all in

Fuel 12.1¢Maintenance 7.5¢Depreciation 25.0¢Insurance 13.3¢Other 2.5¢
You're under the IRS rate
Your real cost (60.5¢/mi) is below the 2026 IRS standard mileage rate of 70¢/mi. If you're reimbursed at the IRS rate, it more than covers your actual driving cost.
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

  1. Use real, measured MPG. Sticker economy is optimistic. Divide miles driven by gallons filled over a few tanks and enter that.
  2. 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.
  3. 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.
  4. 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? +
For a typical owned car driven 12,000-15,000 miles a year, all-in cost lands roughly in the $0.50-$0.80 per mile range once you include fuel, depreciation, insurance, maintenance, and registration. AAA's annual study puts the average new car around $0.80-$1.00 per mile at lower mileage, because fixed costs (depreciation, insurance) get spread over fewer miles. A paid-off, fuel-efficient, high-mileage car can fall below $0.40. Your number depends heavily on the car's depreciation and how many miles you drive.
Does the IRS standard mileage rate cover my real cost? +
Sometimes. The 2026 IRS standard business mileage rate is about 70¢ per mile. It's a nationwide average meant to approximate the cost of operating a typical car for business. If your real cost per mile is below that — common for efficient, moderately-depreciating cars driven a lot — being reimbursed at the IRS rate more than covers your actual cost. If you drive a heavily-depreciating or expensive-to-insure vehicle, or relatively few miles, your real cost can exceed the IRS rate and reimbursement falls short.
How do I estimate depreciation per mile? +
Depreciation is usually the largest single bucket and the one people forget. Estimate the annual figure as the drop in the car's resale value over a year: roughly (value at start of year − value at end of year). For a newer car that's often 10-20% of its value per year; for an older paid-off car it's much smaller in dollar terms. Divide that annual depreciation by your annual miles to get depreciation per mile. Our car depreciation calculator can help you project the value curve.
What's the difference between fixed and variable costs? +
Variable costs scale with how much you drive — fuel and most maintenance/repairs. Variable cost per mile stays roughly constant no matter how many miles you put on. Fixed costs are paid regardless of miles — insurance, depreciation (largely time-based), and registration. Fixed cost per mile falls as you drive more, because the same dollars spread over more miles. This is why a car driven 6,000 miles a year costs far more per mile than the same car driven 18,000.
How does cost per mile work for an EV? +
The structure is identical, but the fuel bucket becomes electricity. Replace the gas-derived fuel cost with your annual charging cost (kWh used × price per kWh, including charging losses). EVs typically have a much lower energy cost per mile and lower maintenance, but can depreciate quickly and cost more to insure — so the all-in cost per mile is closer than the energy figure alone suggests. Use the EV charging cost calculator for the energy bucket, then plug that annual figure in here.
Is this financial advice? +
No. AutoMath is an educational tool. Your cost per mile depends entirely on the inputs you provide — especially depreciation, which is an estimate. Use measured fuel economy and realistic annual figures, and treat the result as a planning number, not a precise accounting of past spending.

Related calculators

AutoMath is an educational tool. The numbers above depend entirely on assumptions you provide — especially depreciation — and are not financial advice.