Free Fuel Cost Calculator for Trip Distance and Price

A fuel cost calculator turns trip distance, fuel economy, and pump price into total fuel cost and the fuel volume the trip uses. Results update as you type. Switch miles or kilometers, and US miles per gallon or liters per 100 kilometers, without changing the physical length of the trip. Nothing leaves this page.

Measurement units

Trip cost $42.00 Fuel only
Fuel needed 12 US gal Distance ÷ economy
Cost per distance $0.14/mi Trip cost ÷ distance
Round-trip cost $84.00 Same conditions both ways

Calculation breakdown

300 mi ÷ 25 US mpg

= 12 US gal

12 US gal × $3.50

= $42.00

Same-conditions round trip: $84.00. The $3.50 price is an example for checking the math.

The formulas this page uses

Distance, economy, and price must use a consistent unit system. Check the outputs by hand with the same identities the fuel cost calculator uses.

Trip cost (US mpg)

cost = (distance / mpg) × price

Fuel volume (US mpg)

gallons = distance / mpg

Trip cost (L/100 km)

cost = (distance × L/100 km / 100) × price

Fuel volume (km/L)

liters = distance / km/L

What a trip fuel estimate actually measures

A fuel cost calculator answers a narrow question: if you travel a given distance at a given fuel economy and pay a given price for fuel, what should the fuel itself cost, and how much fuel should the trip use? Tolls, parking, meals, lodging, and vehicle wear sit outside the three inputs.

The three numbers have to describe the same trip. Distance is the length you plan to drive — one way, or the full route if you enter the complete mileage. Fuel economy is how far the vehicle goes on a given amount of fuel, or how much fuel it uses over a set distance. Fuel price is what you expect to pay per unit of fuel. The default United States view uses miles, US miles per gallon, and dollars per US gallon; the metric view uses kilometers, liters per 100 kilometers or kilometers per liter, and price per liter. The dollar sign is a currency symbol for the number you type; the cost stays in that unit. The page does not convert currencies or fetch a live pump price.

Pump prices, taxes, and driving conditions vary by place and by day. Example prices on this page are illustrations for checking the math, not official or current pump data. This fuel cost calculator is a planning aid. It is not financial, legal, or professional advice, and it is not a substitute for your own receipts or a licensed adviser.

How to calculate trip fuel cost from distance, economy, and price

You only need three figures in a consistent system. In the US default, trip cost is (distance in miles ÷ US miles per gallon) × price per US gallon. The quantity in parentheses is the fuel volume in US gallons. Cost per mile is trip cost divided by distance. A same-conditions round trip is twice the one-way cost. The fuel cost calculator applies those identities as you type.

A worked example you can check by hand

Take a 300-mile trip in a vehicle that averages 25 miles per US gallon, at an example price of $3.50 per US gallon. Fuel used = 300 ÷ 25 = 12 US gallons. Trip cost = 12 × 3.50 = $42.00. Cost per mile = 42.00 ÷ 300 = $0.14. A same-conditions round trip is $84.00. Enter 300, 25, and 3.50 in the fuel cost calculator above and you should see the same results. Those figures are an example for checking the formula, not a claim about today’s pump price.

The same physical trip in metric units must produce the same money result. 300 miles is 300 × 1.609344 = 482.8032 kilometers. 25 US mpg equals about 9.408583 liters per 100 kilometers, using L/100 km = 100 × 3.785411784 ÷ (US mpg × 1.609344). $3.50 per US gallon is 3.50 ÷ 3.785411784 ≈ $0.924602 per liter. Fuel used = 482.8032 × 9.408583 ÷ 100 ≈ 45.425 liters, which is 12 US gallons converted at 3.785411784 liters per US gallon. Trip cost ≈ 45.425 × 0.924602 = $42.00. Switching the unit toggle on this fuel cost calculator converts the values you already entered so the physical trip stays the same; the cost should still read $42.00.

A second check: 150 miles, 30 US mpg, and an example $4.00 per US gallon. Fuel used = 150 ÷ 30 = 5 US gallons. Trip cost = 5 × 4.00 = $20.00. Cost per mile is $0.133. If economy is entered as kilometers per liter, liters used = kilometers ÷ km/L, then multiply by the price per liter. Empty, non-numeric, or negative inputs, and a zero economy, produce an inline message instead of a broken number. A zero distance is a $0.00 trip; a zero price still reports the fuel volume.

US gallons, mpg, and metric fuel economy

This page uses the US gallon, not the imperial gallon. A US gallon is 231 cubic inches, which is exactly 3.785411784 liters. An imperial gallon is larger, about 4.546 liters. If you have a miles-per-imperial-gallon figure, convert it first; the page will not guess that conversion. The fuel cost calculator treats miles per gallon as miles per US gallon.

Liters per 100 kilometers runs in the opposite direction from mpg: a lower L/100 km figure is more economical. The bridge is about 235.214583 ÷ US mpg, using the same exact factors as the worked example. Kilometers per liter is the reciprocal: km/L = 100 ÷ (L/100 km). When you switch systems, existing inputs are converted so they still describe the same physical trip.

The sample distance table below is a selected-results table, not a second tool. It lists fuel volume and trip cost for common distances at the economy and price you entered. The $3.50 default and other sample prices are examples for checking arithmetic, not government figures or a forecast. Select a row to load that distance into the fuel cost calculator.

Standard trip distances at the current economy and price
Distance Fuel needed Trip cost Round-trip cost

Select a row to fill the distance field of the fuel cost calculator. The table uses the economy and price you entered. Example prices are not official pump data.

What the result includes and leaves out

The trip cost is only the fuel for the distance at the economy and price you typed. If that number is what you pay at the pump, any fuel tax already included in the pump price is already in the result. This page does not add or subtract a tax, look up a government rate, or invent a table of fuel taxes or station prices.

The estimate does not include tolls, parking, charging for a different powertrain, maintenance, depreciation, insurance, food, or lodging. Real fuel economy moves with speed, traffic, cargo, and climate. Enter the economy you think you will actually get on this trip. A round-trip result doubles the one-way figures only when the return matches the same conditions; otherwise enter the full distance or add two calculations. Treat the output as a planning figure, not an invoice. This fuel cost calculator does not replace financial, legal, tax, or professional advice.

Tips for a more realistic trip budget

Use a recent tank of your own driving when you can. Divide miles driven by US gallons added, or use the matching metric pair, instead of a generic rating. If the route is urban, hilly, or heavily loaded, a lower mpg or a higher L/100 km is the more cautious plan. Enter the price you actually expect to pay — the default $3.50 per US gallon and other sample prices are examples only. If your trip crosses regions with very different pump prices, run the fuel cost calculator once per leg and add the costs.

For a multi-stop day, add the segments into one distance if economy and price stay in the same ballpark, or calculate each segment. If several people share the fuel bill, divide the trip cost by the number of people for a simple split — a convenience, not a legal or accounting rule. Keep units consistent in a hand calculation; the unit toggle does that conversion for you. If JavaScript is off, the formulas and the worked example on this fuel cost calculator page are still readable, so you can compute the same result by hand.

Frequently asked questions

What numbers do I enter, and in what units?

Enter distance, fuel economy, and fuel price in one system. Miles, US miles per gallon, and dollars per US gallon are the default. Switch to kilometers and L/100 km or km/L, with price per liter, when your figures are metric. Existing values are converted so the physical trip stays the same. The fuel cost calculator still reports cost in the same currency symbol you used.

Does this use US gallons or imperial gallons?

US gallons. One US gallon is exactly 3.785411784 liters. An imperial gallon is larger. Miles per gallon on this page means miles per US gallon. If your source uses imperial gallons, convert first; the page will not infer that change.

How do I switch between mpg and L/100 km?

Use the imperial and metric toggle. The tool converts distance, economy, and price together so the trip does not change size. In metric view you can also switch fuel economy between L/100 km and km/L. After a switch, check that the fuel cost calculator still shows the same trip cost, within ordinary rounding.

Does the trip cost include taxes, tolls, or parking?

Only fuel. If your pump price already includes fuel tax, that tax is already in the number you typed and therefore in the result. The page does not add or look up taxes, and it does not include tolls or parking. Example prices in the copy are not official pump or tax data.

Can I treat this result as financial or professional advice?

No. The fuel cost calculator is a planning and checking tool. It does not give financial, legal, tax, or professional advice. Use the numbers to plan a trip or to check a hand calculation, then rely on your own receipts and, when needed, a qualified adviser.