Cost Per Mile Calculator

Convert total trip cost into cost per mile and cost per kilometer. Use it to compare lanes, carriers, or internal fleet performance with a consistent benchmark.

Compute cost per mile and per kilometer. Private by design—everything runs locally in your browser.

Inputs

Results

Cost per mile:
Cost per kilometer:
Total trip cost:
Distance:
Formula: Cost per mile = Total Cost / Miles, Cost per km = Total Cost / Kilometers.

Why cost per mile matters

Cost per mile is one of the most common transportation benchmarks. It converts a total trip cost into a normalized metric that can be compared across lanes, carriers, or fleet routes. The calculation is simple, but the insight is powerful: it highlights whether route design, stop density, fuel efficiency, or accessorial fees are pushing costs up or down.

When managing a private fleet, cost per mile helps translate operating expenses such as fuel, maintenance, driver wages, tolls, and insurance into a single figure. For third-party carriers, the metric can be used to compare contract rates or spot market quotes across similar distances. Pairing cost per mile with load utilization provides even better insight because a low cost per mile is not necessarily efficient if trailers are consistently underfilled.

International teams often need cost per kilometer. This calculator reports both units so you can share a single benchmark across regions. If your input distance is in miles, it will convert to kilometers for reporting. If you input kilometers, it will convert to miles for an apples-to-apples comparison with North American benchmarks.

Cost per mile should be interpreted with context. A lane with a low cost per mile may still be uncompetitive if transit time is too slow or if service failures are common. Conversely, premium service levels or expedited shipping will raise cost per mile by design. Use this metric as part of a balanced scorecard that also includes lead time and on-time performance. This calculator keeps the math local to your browser so rate data remains private.

To improve the metric, teams often focus on reducing empty miles, increasing stop density where practical, and improving load utilization. Technology such as route optimization and appointment scheduling can reduce dwell time, which lowers cost per mile over time. If you are evaluating carrier proposals, compare cost per mile against service levels and accessorial policies so the cheapest route does not create downstream delays or customer penalties.

Formula

Cost per mile: Total Cost / Miles

Cost per kilometer: Total Cost / Kilometers

Example calculation

If a shipment costs $1,537 and travels 520 miles, cost per mile is 1,537 / 520 = $2.96. That same distance is 837 kilometers, so cost per kilometer is 1,537 / 837 = $1.84 per km.

FAQs

What is cost per mile?

Cost per mile is total trip cost divided by distance, used to compare routes and carriers.

Can I use kilometers instead of miles?

Yes. Enter distance in miles or kilometers, and the tool shows both cost per mile and cost per kilometer.

What costs should be included?

Include fuel, tolls, driver costs, accessorials, and any other trip-level expenses you want to benchmark.

Is this calculator private?

Yes. All calculations run locally in your browser.

How it works

This calculator divides total cost by distance, then converts between miles and kilometers for reporting. All computation is client-side for privacy.

5 Fun Facts about Cost Per Mile

Benchmarking depends on lane mix

Short, urban routes often cost more per mile than long-haul trips.

Lane mix

Fuel can swing the metric quickly

Even small fuel price changes can move cost per mile noticeably.

Fuel

Deadhead miles raise costs

Empty return trips increase total cost but add no revenue miles.

Efficiency

Utilization improves cost per mile

Better load planning spreads fixed costs over more shipped goods.

Utilization

Mode choice matters

Rail, ocean, and air have very different cost per distance profiles.

Mode

Disclaimer

Cost per mile is a planning metric. Actual costs depend on carrier contracts, fuel prices, and route conditions.

Explore more tools