How to Calculate Cost per Mile

Work out gas cost per mile, or the full cost of driving your car per mile.

Gas cost per mile = gas price ÷ MPG. At $3.50 per gallon and 28 MPG, gas costs $3.50 ÷ 28 = $0.125 per mile.

Formula

Gas cost per mile = price per gallon ÷ MPG
Total cost per mile = total car costs ÷ miles driven
Monthly fuel cost = monthly miles × gas cost per mile

Steps

  1. Choose the cost type

    Decide whether you want fuel cost only or total driving cost including insurance, maintenance and depreciation.

  2. Use the same period

    Use costs and miles from the same month or year so the result is fair.

  3. Add the costs

    For total cost, add fuel, insurance, payments or depreciation, maintenance, tires and fees.

  4. Divide by miles

    Total cost ÷ miles driven gives cost per mile.

Example

Total cost example

Your car costs $6,000 in a year and you drive 12,000 miles.

6,000 ÷ 12,000 = $0.50 per mile

For a quick result, use the Cost per Mile Calculator.

Common mistakes

  • Mixing yearly costs with monthly miles.
  • Counting a car payment and full depreciation twice for the same period.
  • Using only fuel cost when comparing the full cost of owning two cars.

FAQ

How do I calculate gas cost per mile?

Divide the price per gallon by MPG. At $3.50 and 28 MPG, gas cost is 12.5 cents per mile.

What should total cost per mile include?

Fuel, insurance, maintenance, tires, fees and depreciation or loan cost, all for the same period as the miles.

How do I calculate monthly fuel cost?

Multiply monthly miles by gas cost per mile. Driving 1,000 miles at $0.125 per mile costs about $125.

Related calculators