A single cost per mile rate is useful on its own, but most people want to know which of two journeys is the better deal. Omni's cost per mile calculator is built for that question: it computes a rate for each trip and then reports the gap between them in its "You save" field.
To compare two trips, divide each trip's cost by its distance to get two cost-per-mile rates, then take the absolute difference between them: |cost A per mile - cost B per mile|. That difference is the savings per mile the calculator reports, with the sign removed so the result is always a positive amount regardless of which trip is listed first.
What does the two-trip comparison calculate?
The calculator holds two sets of inputs: a Cost and Distance for the first trip, and a Cost and Distance for the second. Each pair produces its own "Price per distance" output by dividing cost by distance. A third output, labelled "You save," compares the two rates:
The absolute value matters. It means the comparison reports the size of the gap, not a direction, so swapping which trip you enter first does not change the answer.
| Trip | Cost | Distance | Price per distance |
|---|---|---|---|
| Trip 1 (worked example) | $200 | 400 miles | $0.50 per mile |
| Trip 2 (FAQ example) | $175 | 350 miles | $0.50 per mile |
| Savings ("You save") | n/a | n/a | $0.00 per mile |
Worked example: comparing the two sourced trips
Using the two cost and distance pairs already established — 175 over 350 miles — both trips price at $0.50 per mile. Applying the savings formula:
The "You save" field therefore reads $0.00 per mile. The two journeys are equally expensive per mile even though their totals and distances differ, which is exactly the kind of result the comparison is designed to surface.
Frequently Asked Questions
Why does the calculator use an absolute difference?
Because the question is how far apart the two rates are, not which one is larger. The absolute value keeps the "You save" figure positive whichever way round you enter the trips.
Can I compare trips with different distances?
Yes. Each trip's rate is computed from its own cost and distance first, so trips of different lengths become directly comparable once both have been reduced to a per-mile figure.
What if both trips have the same price per mile?
The savings is zero. The two sourced examples show this: 175 over 350 miles both give 0.00 per mile.
References
- Omni Calculator, "Cost per Mile Calculator" — source of the two-trip Cost and Distance inputs, the Price per distance outputs, and the Savings equation.
- Standard references on absolute difference and per-unit rate comparison.