Trip Cost Calculator

The Trip Cost Calculator computes trip cost from the relation cost = distance / fuel economy x price per gallon. It takes 3 inputs (trip distance in miles, vehicle fuel economy in mpg, fuel price in USD per gallon) and returns the trip cost. These calculators are for everyday drivers, rideshare and delivery operators, small fleet managers and home mechanics who want to plan the cost or range of a journey, compare one vehicle or driving habit against another for running cost, put a performance figure such as acceleration or engine output into usable terms, or check that a size or part suits the vehicle before money is spent. Enter your values below and the result updates instantly, and you can share a permalink that pre-fills the exact calculation. Keep every input in one measurement system before you calculate, since mixing miles with litres, US gallons with imperial gallons, or inches with millimetres will quietly skew the answer, and where a figure describes how your vehicle actually behaves, take it from your own recent records (odometer readings, fuel receipts, the numbers printed on the car itself) rather than the brochure. For example, with trip distance = 500 miles, vehicle fuel economy = 25 mpg, fuel price = 4 USD per gallon, the trip cost works out to 80, and the worked example further down the page shows every step so you can follow the arithmetic and reproduce it by hand. The method is the standard form documented by US DOE fueleconomy.gov, and the figure above each result carries the date it was last verified. Where the result depends on how the vehicle is driven rather than on fixed numbers, as with fuel use, range and acceleration, expect the real figure to move with driving style, load, terrain, traffic, weather, tyre pressure and mechanical condition, and treat anything affecting fitment or safety, such as a change of tyre or wheel size, as something to confirm with the vehicle handbook or a qualified fitter before you commit.

With Trip distance = 500 miles, Vehicle fuel economy = 25 mpg, Fuel price = 4 USD per gallon, the result is 80.

Formula: cost = distance / fuel economy x price per gallon. Source: US DOE fueleconomy.gov, as at 2026-06-23.

Trip Cost80

Applies to: any numeric inputs. Method source: US DOE fueleconomy.gov, checked 2026-06-23.

The formula

cost = distance / fuel economy x price per gallon

Worked example

With Trip distance = 500 miles, Vehicle fuel economy = 25 mpg, Fuel price = 4 USD per gallon:

  1. gallons needed = distance / mpg = 20.000
  2. cost = gallons x price = 80.00
  3. Trip Cost = 80

This worked example is one of the automated golden-value tests this calculator must pass before it can publish.

What this assumes

  • Inputs are real numbers in the units shown.
  • The result is the exact value of cost = distance / fuel economy x price per gallon; general information, not professional advice.

Frequently asked questions

What formula does this use?

cost = distance / fuel economy x price per gallon, the standard form documented by US DOE fueleconomy.gov.

Does the result ever change over time?

No. This is a pure formula with no external rate, so the same inputs always give the same result.

Official sources and verification

Reviewed by the CalculatorHub team, edited by James Graham, 2026-06-23. See our methodology. General information, not professional advice.