Loans

Trip fuel cost calculator

Estimate the fuel a journey uses and what that fuel costs, in US or metric units.

Free to useNo sign-upCalculated in your browser

Journey and fuel

Switching units resets distance, economy, and price. A number from the other system is not reused.

Unit system
Trip
mi

0–100,000. Up to 2 decimal places. Zero is allowed.

Whole number from 1 to 3,660.

MPG

0.000001–1,000 miles per gallon.

US dollars

$0.000–$99.999. A zero price still shows the fuel quantity.

Your trip details stay in this browser.

Fuel cost

Enter the distance, how often you drive it, the economy, and the price. Changing an input clears the previous result.

Fuel quantity and price only · No tolls, maps, or vehicle depreciation

Distance, quantity, and price are three different things

The journey length is distance. Fuel economy turns that distance into a quantity of fuel. The price turns that quantity into dollars. This page shows the quantity and the cost separately so a gallon is not confused with a dollar.

US mode uses miles, miles per US gallon, and dollars per US gallon. Metric mode uses kilometers, liters per 100 kilometers, and dollars per liter. Switching systems resets the distance, economy, and price to that system’s example. A “30” entered as miles per gallon is not reused as 30 liters per 100 kilometers.

The U.S. Department of Energy’s Vehicle Cost Calculator uses the same relationship: distance divided by miles per gallon, then multiplied by the price per gallon. This page does not call that tool, and it does not fetch a live fuel price.

Worked examples

A 240-mile one-way trip, driven as a round trip twice, is 960 miles. At 30 miles per gallon that is 32 gallons. At $4.00 per gallon the fuel costs $128.00. One of those round trips is 480 miles, 16 gallons, and $64.00.

A 300-kilometer one-way trip, driven once, at 6 liters per 100 kilometers uses 18 liters. At $1.80 per liter the fuel costs $32.40.

Zero and rounding

A distance of 0 uses no fuel and costs $0. The cost per mile or kilometer is not shown, because there is no distance to divide by. A price of $0 still shows the fuel quantity and a $0 cost.

Fuel displays to the thousandth of a gallon or liter. Money displays to the cent. Cost per mile or kilometer displays to four decimal dollars. Each figure is rounded half up from the exact value. One mile at 3 miles per gallon is 0.333 gallons and $0.33 at $1.00 per gallon, not a repeating decimal left in the total.

What this leaves out

There is no map, toll, parking charge, maintenance cost, or depreciation. An electric vehicle’s kilowatt-hours are a different unit; use the electricity cost calculator for appliance energy, not this page. The car loan calculator and car depreciation calculator answer different car questions.

Frequently asked questions

What is one journey?A journey is the one-way distance, or twice that distance if you choose a round trip. “Repeated journeys” is how many times you take that journey.

Why did my numbers disappear when I switched units? The old numbers belonged to the other unit system. The fields reset to a labeled example so a mile is not silently treated as a kilometer.

Are the trip details sent anywhere? No. Distance, economy, price, and the result stay in this browser. Analytics may receive only the calculator identifier.

Sources & review

Last reviewed: . The formula is reproduced above so you can check the math independently.

How we check calculations and describe their limits

Educational estimate only. Not a route, tax, or vehicle-operating-cost quote. Tolls, parking, maintenance, and depreciation are excluded.