Travel Cost Per Mile Calculator

What Is a Mile of Driving Actually Costing You?

"Cost per mile" gets used two different ways in practice: sometimes you already know a trip's total cost and want to spread it evenly across the distance, and sometimes you're building the figure up from fuel price and fuel economy plus a maintenance allowance. This calculator supports both directions so you can use whichever inputs you actually have.

The Formula

From total cost: Cost per Mile = Total Cost ÷ Total Miles From fuel price and economy: Fuel Cost per Mile = Fuel Price per Gallon ÷ MPG Cost per Mile = Fuel Cost per Mile + Maintenance Cost per Mile

Worked Examples

Cost per mile under each calculation mode
ModeInputsCost per mile
Fuel-based$3.50/gallon ÷ 25 MPG$0.1400/mile
Fuel-based$4.00/gallon ÷ 30 MPG$0.1333/mile

Fuel-based figures above cover fuel only; add a maintenance cost per mile in the calculator to include wear, tires, and servicing in the total.

Where This Calculation Matters

  • Comparing your own car against a rental — a true cost-per-mile figure, not just fuel, is what you need to compare against a flat rental-plus-fuel quote.
  • Splitting a road trip's cost fairly — charging fellow passengers a per-mile rate based on actual expenses rather than an arbitrary flat fee.
  • Deciding whether to drive or fly — a solid cost-per-mile figure, multiplied by the route distance, is directly comparable to an airfare quote.

How to Use This Calculator

  1. Select a mode: From Total Cost or From Fuel Price + MPG.
  2. In total-cost mode, enter Total Cost ($) and Total Miles.
  3. In fuel-based mode, enter Fuel Price per Gallon ($), Fuel Economy (MPG), and optionally a Maintenance Cost per Mile.
  4. Select Calculate to see the resulting cost per mile.

Related Calculations

Compare your computed figure against a flat rate with the Mileage Reimbursement Calculator, or estimate fuel cost alone with the Road Trip Fuel Cost Calculator.