Saved

Press the star next to a tool's name to save it.

All my tools

Cost per Mile Calculator

Use this cost per mile calculator to add up fuel, insurance, depreciation and other vehicle costs, divide by the miles driven and compare with the IRS rate.

Restored your last values ·

Enter the distance you drove over a period and what you spent on the vehicle in that same period. Fill in only the costs you want to count. Fuel alone gives the running cost; adding insurance, depreciation and the rest gives the full cost of owning the car. Pick an IRS rate if you want to compare.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Enter the distance and your costs, then press Calculate.

See full result

A cost per mile calculator divides what you spend on a vehicle by the distance you drive, so you can see what each mile really costs you. Add up fuel, maintenance, tires, insurance, registration, depreciation, loan interest and tolls for a period, enter the miles driven in the same period, and the calculator gives your cost per mile, your cost per 100 miles and, for US miles, a comparison with the IRS standard mileage rate. It runs in your browser and nothing is uploaded.

What cost per mile tells you

Cost per mile is the total cost of running a vehicle divided by the miles driven. It turns a pile of separate bills into one number you can use to compare vehicles, check a mileage allowance, price a delivery job, or decide whether a long commute is worth it. Fuel is the cost people notice, but it is often less than half the full amount once insurance, depreciation and repairs are included.

How to use the cost per mile calculator

  1. Choose miles or kilometres.
  2. Enter the distance driven over the period you are looking at, such as a year.
  3. Enter each cost for the same period: fuel, maintenance, tires, insurance, fees, depreciation, loan interest, tolls and anything else. Leave blank what does not apply.
  4. If you drive in miles, you can choose an IRS rate to compare.
  5. Press Calculate.

The formula

Cost per mile is the total of all costs divided by the distance driven. Cost per 100 miles is the same figure times 100. The difference from the IRS rate is your cost per mile minus the IRS rate, and over the whole distance it is that gap times the miles driven. The same arithmetic works in kilometres, giving a cost per kilometre.

Which costs to include

For a full cost, include everything you pay because you own and run the vehicle. Fixed costs do not depend on how far you drive: insurance, registration and fees, depreciation and loan interest. Running costs rise with the miles: fuel, tires, maintenance and repairs, tolls and parking. If you want the cost of one extra trip, count only the running costs, because the fixed costs are paid either way. If you want the true cost of owning the car, count both. Use the same period for every figure, and use the distance for that same period.

Worked example

A driver covers 12,000 miles in a year and spends $1,800 on fuel, $600 on maintenance and $1,200 on insurance. The total is $3,600, and the cost per mile is 3,600 divided by 12,000, which is $0.30 a mile, or $30 per 100 miles. Compared with the IRS business rate of 76 cents a mile, the driver's own cost is 46 cents a mile lower, which is $5,520 over 12,000 miles. The gap is not a sign that the IRS rate is wrong: this example left out depreciation, tires and fees, and the IRS rate is a published figure for deductions and reimbursements, not a measure of your own costs.

The IRS standard mileage rates

The IRS publishes standard mileage rates each year. For 2026 the business rate is 72.5 cents a mile from January 1 to June 30 and 76 cents from July 1 to December 31. The medical and military moving rate is 20.5 cents for the first half and 23.5 cents for the second half, and the charitable rate is 14 cents for the year. The calculator uses the July to December figures for its comparison. These rates are for claiming a deduction or setting a reimbursement, and they are not your own cost.

Ways to lower your cost per mile

  • Keep tires inflated and the car serviced, since this helps fuel use and avoids bigger repairs.
  • Shop around for insurance each year.
  • Combine trips so fewer miles are driven cold.
  • Choose a vehicle with the right size for your needs, since depreciation is often the largest cost.
  • Drive more of the miles you pay a fixed cost for, which spreads that cost over more distance.

Using the result

Once you know your cost per mile, you can compare it with an offered mileage allowance, work out whether a long commute is worth it, or price a trip. For example, at $0.30 a mile a 25-mile commute each way costs $15 a day, and at 230 working days a year that comes to $3,450. You can also use it to compare two vehicles: a car with a lower fuel cost but a higher yearly depreciation may cost more per mile than it first looks. Recalculate each year, because fuel prices, insurance and repair bills change.

Choosing the period

A full year is the best period, because it includes the big yearly bills, such as insurance and registration, and averages out the months with repairs and the months without. If you use a shorter period, such as a month, include only a month's share of each yearly cost. Match the miles to the same period, taken from the odometer at the start and end. If you did not note the start, divide your yearly mileage by 12 for a rough monthly figure.

Miles or kilometres

The calculator works the same way in kilometres. Choose kilometres, enter the distance in kilometres and your costs in dollars or your own currency, and the answer is the cost per kilometre. The comparison with the IRS rate is shown only for miles, since the IRS rates are set per mile.

Common mistakes

  • Using different periods. Costs and miles must cover the same months.
  • Counting fuel only. It understates the cost of owning the car.
  • Leaving out depreciation. It is often the biggest cost.
  • Using a very short period. A big repair bill in one month will distort the figure; a full year is steadier.

What next

Use this often? Add Cost per Mil to your Home screen.

Frequently asked questions

What is a cost per mile calculator?

A tool that divides the total cost of running a vehicle by the miles driven to give a cost for each mile.

How do I calculate my cost per mile?

Add up all vehicle costs for a period and divide by the miles driven in that same period.

Which costs should I include?

Include fuel, maintenance, tires, insurance, fees, depreciation, loan interest, tolls and parking for the full cost. Use only running costs for the cost of one extra trip.

What is the IRS standard mileage rate for 2026?

The IRS lists 72.5 cents per business mile for January to June 2026 and 76 cents for July to December. Medical is 20.5 then 23.5 cents and charity is 14 cents.

Can I use kilometres?

Yes. Choose kilometres and the calculator gives the cost per kilometre. The IRS comparison applies to miles only.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Finance Tools