Oct 28, 20266 min read

How to calculate your real cost per mile or km

By DriveMarker

The short answer

Cost per mile = total annual cost ÷ annual distance. Include fuel, insurance, registration, maintenance, tires, depreciation and finance for the all-in number; include only fuel and wear for the marginal cost of an extra trip. The two numbers answer different questions.

There are two useful cost-per-mile numbers, and most arguments about car costs go wrong because people mix them up.

  • The all-in number tells you what the car costs to own. Use it to compare cars, set a budget or decide whether to keep a car.
  • The marginal number tells you what an extra mile costs. Use it to decide whether to drive or fly, take the toll road or the free one, or split a trip with passengers.

Both are simple. They just include different things.

The all-in formula

Cost per mile = total annual cost ÷ annual miles

Cost per kilometre = total annual cost ÷ annual kilometres

The numerator is everything you spend on the car in a year. The denominator is the distance you actually drove in that year. The result is the average cost of every mile or kilometre.

What goes in the numerator

| Line | Include? | Notes | | ---------------------------------- | ------------ | -------------------------------------------------------------------- | | Fuel or charging | Yes | Use receipts or your logged consumption, not a brochure figure | | Insurance | Yes | The annual premium | | Registration, taxes and inspection | Yes | Annual fees | | Maintenance and repairs | Yes | Last year's receipts are better than an average | | Tires | Yes | Amortise a set over its expected life, or use the year you bought it | | Depreciation | Yes | (Purchase price − current value) ÷ years owned | | Finance interest | Yes | Interest only, not the principal | | Parking and tolls | Optional | Include for total ownership; exclude for driving cost | | Car washes and cosmetic care | Optional | Include if you want the full picture | | The whole loan payment | No | Principal is equity, not a running cost; only interest is a cost |

The biggest omission is usually depreciation. It never arrives as a bill, so it feels free. It is often the largest line.

A worked example in miles

A hypothetical car driven 12,000 miles a year:

| Line | Annual cost | | ----------------------------- | ----------: | | Fuel (30 mpg at $4.00/gallon) | $1,600 | | Insurance | $1,800 | | Registration and taxes | $400 | | Maintenance and tires | $1,300 | | Depreciation | $3,000 | | Finance interest | $600 | | Total | $8,700 |

$8,700 ÷ 12,000 = 72.5¢ a mile.

The fuel-only figure is $1,600 ÷ 12,000 = 13.3¢ a mile. The other 59 cents is everything else — and it is the part most people leave out when they say "my car costs 13 cents a mile."

A worked example in kilometres

A hypothetical car driven 20,000 km a year:

| Line | Annual cost | | --------------------------------- | ----------: | | Fuel (7.5 L/100km at $1.60/litre) | $2,400 | | Insurance | $1,800 | | Registration and taxes | $500 | | Maintenance and tires | $1,500 | | Depreciation | $4,000 | | Finance interest | $800 | | Total | $11,000 |

$11,000 ÷ 20,000 = 55¢ a kilometre.

Fuel-only: $2,400 ÷ 20,000 = 12¢ a kilometre.

The two examples are roughly consistent once you convert: 20,000 km is about 12,400 miles, and 55¢/km is about 88¢/mile. The cars are different, the currencies are different, and the arithmetic is the same.

The marginal mile

The all-in number is an average. It includes costs that do not change when you take one more trip. For a trip decision, use the marginal cost:

Marginal cost per mile = fuel per mile + wear per mile

  • Fuel per mile = price per gallon ÷ MPG, or price per litre × L/100km ÷ 100.
  • Wear per mile = tires and maintenance, often about 3–5 cents a mile for a normal car; more for a heavy or performance car.

A car at 30 mpg and $4.00 a gallon has a fuel cost of 13.3¢ a mile. Add 3–5 cents of wear and the marginal cost is roughly 16–18¢ a mile. The insurance, registration and depreciation are already sunk for the year; an extra 200-mile trip does not change them much.

This is why the marginal number is the right one for "should we take the car?" and the all-in number is the right one for "can we afford this car?"

Five mistakes that change the answer

  1. Leaving out depreciation. It is usually the largest line. If you ignore it, a new car looks cheaper than it is.
  2. Counting the whole loan payment. The principal is not a cost; it is your money moving from cash into the car. Count the interest.
  3. Dividing by the wrong distance. Use the distance driven during the period you are costing, not the distance you plan to drive next year.
  4. Mixing units. Miles with gallons, kilometres with litres, US gallons with imperial gallons. Pick one system and stay in it.
  5. Using the brochure figure. Real MPG and real L/100km are what you buy at the pump. Use your own fill-up log.

A sixth, subtler mistake: comparing one car's all-in cost with another car's fuel-only cost. Put both cars through the same lines over the same ownership period. The buy vs lease calculator helps with the finance side; the cost-to-run guide covers the full ledger.

How to track it without a spreadsheet

You need three things: the odometer at the start, the odometer at the end, and the money you spent in between.

  1. Log every fill-up. Odometer, litres or kWh, price. That gives you real consumption and fuel cost.
  2. Keep the annual bills. Insurance, registration, inspections — one folder or one app.
  3. Keep service receipts. Date, odometer, job, cost.
  4. Once a year, add the depreciation. Look up the current resale value and subtract it from what you paid, then divide by the years you have owned it.
  5. Divide by the distance. The result is your number.

The free DriveMarker garage does the log and the consumption maths; the annual review is still yours. Export the data if you want to do the rest in a spreadsheet.

What to do with the number

  • Compare cars. Two cars with the same sticker price can differ by thousands a year once depreciation, insurance and fuel are included.
  • Set a monthly budget. Divide the annual total by 12. Put the maintenance and depreciation portion aside so the irregular bills do not become a crisis.
  • Price a trip. Use the marginal number for fuel and wear, and the trip cost calculator for tolls and splitting the cost.
  • Decide repair versus replace. If the repair is more than a year of the replacement's depreciation plus finance, the replacement may be cheaper — but safety and reliability come first.
  • Check a mileage claim. If you are reimbursed per mile, the all-in number shows whether the rate covers your actual costs.

The point of the exercise is not a perfect number. It is a number that is yours, measured on your roads, in your currency, with your bills. That beats any average.

The formulas, in one place

  • All-in cost per mile = total annual cost ÷ annual miles
  • All-in cost per km = total annual cost ÷ annual kilometres
  • Fuel cost per mile = price per gallon ÷ MPG
  • Fuel cost per km = price per litre × L/100km ÷ 100
  • Depreciation per year = (purchase price − current value) ÷ years owned
  • Marginal cost per mile = fuel per mile + wear per mile

Sources and method

  • AAA, Your Driving Costs 2026 — the six ownership cost categories and per-mile methodology used as the structure for this guide. AAA.
  • US Energy Information Administration — fuel prices and unit conversions. EIA.
  • US Environmental Protection Agency — MPG and L/100km conversions. fueleconomy.gov.

The worked examples are hypothetical and rounded; they are there to show the method, not to quote a particular car. Prices and figures were checked on 28 October 2026.

Common questions

What is the formula for cost per mile?
Add up everything the car costs you in a year, then divide by the miles you drove. Total annual cost ÷ annual miles = cost per mile. For kilometres, use total annual cost ÷ annual kilometres. The hard part is deciding what belongs in the numerator, not the division.
What should I include in the total?
For the all-in number: fuel or charging, insurance, registration and taxes, maintenance, tires, depreciation and finance interest. Include parking and tolls if you want total ownership cost. Do not count the whole loan payment — only the interest is a running cost; the principal builds equity in the car.
Why is my cost per mile higher than my fuel cost?
Because fuel is only one line. Depreciation, insurance, registration and finance are usually larger than fuel for a new car. A car that costs 13 cents a mile in fuel can easily cost 70–90 cents a mile all-in once the fixed costs are included.
What is marginal cost per mile?
The extra cost of driving one more mile: fuel plus wear on tires and maintenance. It excludes fixed costs such as insurance and registration, which do not change for a single trip. Use the marginal number for trip decisions and the all-in number for ownership decisions.
How do I calculate cost per km?
Use the same formula with kilometres: total annual cost ÷ annual kilometres. For fuel only, cost per km = L/100km × price per litre ÷ 100. For miles, cost per mile = price per gallon ÷ MPG.

Use the tools from this guide

Track your own numbers

Averages describe somebody else’s car. Log your fill-ups, costs and service in a free garage and the guide above turns into your own data.

Essential cookies run DriveMarker. With your permission, privacy-friendly analytics and advertising cookies do too. Cookie policy.