Cost per Mile Calculator

Find your true cost per mile by combining fixed vehicle costs (insurance, registration, financing, depreciation) with variable costs (fuel and maintenance) spread across your annual mileage.

Quick Facts

Formula
Cost per mile = (Fixed costs ÷ Annual miles) + Fuel cost per mile + Maintenance per mile
Fuel cost per mile = fuel price per gallon ÷ miles per gallon. Fixed costs include insurance, registration, financing, and depreciation.

Your Results

Calculated
Total cost per mile
-
Fixed + variable cost per mile
Fixed cost per mile
-
Annual fixed costs ÷ annual miles
Variable cost per mile
-
Fuel + maintenance per mile
Estimated annual driving cost
-
Total cost to drive this many miles a year

Ready

Enter your annual mileage and cost assumptions, then press Calculate.

About the Cost per Mile Calculator

This calculator finds the true cost of driving a mile by splitting vehicle expenses into two groups: fixed costs that you pay no matter how far you drive, and variable costs that scale directly with distance. Blending the two over your annual mileage gives a realistic cost-per-mile figure for budgeting, trip planning, reimbursement comparisons, or deciding whether to keep, replace, or sell a vehicle.

The formula

Cost per mile is calculated as:

  • Fuel cost per mile = Fuel price per gallon ÷ Fuel economy (miles per gallon)
  • Variable cost per mile = Fuel cost per mile + Maintenance & repairs per mile
  • Fixed cost per mile = Annual fixed costs ÷ Annual miles driven
  • Total cost per mile = Fixed cost per mile + Variable cost per mile

Annual fixed costs typically include insurance premiums, registration and title fees, loan or lease payments, and depreciation — the vehicle's loss in value over the year. These do not change with mileage, so the more miles you drive, the thinner they are spread and the lower the fixed cost per mile becomes. Variable costs — fuel and routine maintenance such as oil changes, tires, and repairs — scale with distance and stay roughly constant on a per-mile basis regardless of how much you drive.

Using the result

Total cost per mile is useful for comparing vehicles, deciding whether a longer commute or road trip is worth the expense, setting a fair per-mile reimbursement or freelance delivery rate, or checking whether a lower-mileage year is actually saving you money once fixed costs are accounted for. If your fixed costs are a large share of the total, driving more miles per year lowers your average cost per mile even though your total spending rises — the two are not the same thing.

Frequently Asked Questions

What is the formula for cost per mile?
Cost per mile equals your fixed annual costs (insurance, registration, financing, depreciation) divided by annual miles driven, plus your variable cost per mile (fuel cost per mile plus maintenance and repairs per mile). Fuel cost per mile is simply fuel price per gallon divided by your vehicle's miles per gallon.
Why does cost per mile go down the more I drive?
Fixed costs like insurance and depreciation stay roughly the same no matter how many miles you drive, so spreading them over more miles lowers the fixed cost per mile. Variable costs like fuel and maintenance scale with mileage and do not change per mile driven, so higher annual mileage lowers your blended average cost per mile.
What counts as a fixed cost versus a variable cost?
Fixed costs are expenses you pay regardless of mileage, such as insurance premiums, registration fees, loan or lease payments, and depreciation. Variable costs scale directly with distance driven, primarily fuel and routine maintenance such as oil changes, tires, and repairs.
How is this different from the IRS standard mileage rate?
The IRS publishes a single flat cents-per-mile rate meant to approximate average vehicle costs nationwide for tax deduction purposes. This calculator instead uses your own fixed and variable costs, so it reflects your specific vehicle, insurance, and driving habits rather than a national average.