"It's only a few hours away" is not a budget. Whether you are splitting fuel money with passengers, pricing a delivery run, or deciding if the drive beats the train fare, the honest figure is the cost of the fuel the trip will burn — and it is never the number people guess, because it hides inside two conversions: distance into fuel, and fuel into money. This calculator does both. Give it the distance, the efficiency figure your car actually achieves, and today's price at the pump, and it returns the fuel needed in gallons and litres, the total cost, and the cost per mile and per kilometre — the last of which is the figure that makes comparing two cars, or two routes, genuinely easy.
How fuel cost is calculated
The calculation is two multiplications with a unit conversion in the middle:
Fuel needed = distance ÷ efficiency · Cost = fuel needed × price
With mpg, efficiency is distance per gallon, so dividing the distance by mpg gives gallons directly. With litres per 100 km, efficiency is fuel per distance, so the distance (in km) is multiplied by the figure and divided by 100 to get litres. This calculator handles both systems — plus kilometres per litre — by converting everything to litres per 100 km internally, using the exact factors 1 mile = 1.60934 km and 1 US gallon = 3.78541 litres. That is also where the conversion constant comes from: to turn mpg into L/100km you divide 235.215 by the mpg figure, and 235.215 is just 100 × 3.78541 ÷ 1.60934. Results are then shown in both gallons and litres, whichever you think in.
Worked example
A 300-mile trip in a car averaging 30 mpg, with fuel at $3.50 a gallon — the values pre-filled above. Fuel needed: 300 ÷ 30 = 10 gallons. Cost: 10 × $3.50 = $35.00, which works out at about 11.7 cents per mile. The same maths in metric: a 500 km trip at 7 L/100km with fuel at $1.80 a litre needs 500 × 7 ÷ 100 = 35 litres, costing 35 × $1.80 = $63.00. Enter either example and the calculator will confirm it — and notice that in both cases the efficiency figure moves the answer far more than small changes in distance or price do.
Use your real efficiency, not the brochure figure
Every estimate on this page is only as good as the efficiency you feed it, and the number in the sales brochure is measured in conditions your commute does not have. The reliable figure is the fill-to-fill one: fill the tank until the pump clicks off, reset the trip meter, drive as normal, then fill up again and divide the distance driven by the fuel the second fill took. Do it twice and average it. Most drivers find their real figure is 10–20% worse than the official one, worse in winter and in stop-start traffic, better on a steady motorway run. Feed the calculator the honest number, then still add a small margin for a long trip — a detour, a headwind and an hour of air conditioning are normal events, not bad luck. What you get back is a figure you can actually plan around: what to collect from passengers, what to charge for the delivery, and whether the car or the train wins this time.
Splitting the cost fairly is where the per-mile figure earns its place. If three passengers share a $35 trip, the clean split is $8.75 each among four travellers — or, if the driver is doing everyone a favour, $11.67 each among the three passengers. Quoting the cost per mile (about 11.7 cents in the example above) also settles the common argument about detours: an extra 20 miles is an extra 20 × 11.7 cents, whoever asked for the stop. Work it out before the trip, while everyone is still friends, and there is nothing left to negotiate at the pump.
Frequently asked questions
How is the fuel cost of a trip calculated?
First work out the fuel needed: distance divided by efficiency. Then multiply by the price. A 300-mile trip in a car doing 30 mpg needs 300 ÷ 30 = 10 gallons, and at $3.50 a gallon that is $35.00. Metric figures work the same way using litres per 100 km.
How do I convert mpg to litres per 100 km?
Divide 235.215 by the mpg figure. So 30 mpg is 235.215 ÷ 30 ≈ 7.84 L/100km, and 40 mpg is about 5.88 L/100km. The two scales run in opposite directions: higher mpg is better, lower L/100km is better.
What is the difference between mpg and L/100km?
MPG measures distance per unit of fuel — how far a gallon takes you. Litres per 100 km measures fuel per unit of distance — how much fuel a fixed journey needs. Both describe the same efficiency; North America uses mpg, most of Europe uses L/100km.
Does this calculator use US or imperial gallons?
US gallons, which is what mpg means in the United States. An imperial gallon (used in older UK figures) is larger — 4.546 litres instead of 3.785 — so imperial mpg numbers look better for the same car. If your figure is imperial mpg, convert it with 282.48 ÷ mpg to get L/100km and enter that instead.
How do I find my car's real fuel efficiency?
Fill the tank completely and reset the trip meter. Next time you fill up, note the litres or gallons it took and the distance driven. Divide distance by fuel used. That fill-to-fill figure is your real efficiency, and it is usually a little worse than the manufacturer's claim.
Why might my real trip cost more than the estimate?
The estimate assumes steady driving at your stated efficiency. Traffic jams, air conditioning, a roof box, cold starts, hills and detours all push consumption up. For budgeting, add 10–15% to the result and you will rarely be caught short.
How do I calculate a round trip?
Double the one-way distance before entering it. Fuel use is proportional to distance, so a 300-mile round trip at 30 mpg and $3.50 a gallon costs exactly twice the 150-mile one-way figure — $35.00 instead of $17.50.
Can I use this for diesel or other fuels?
Yes. The maths is identical for petrol, diesel or LPG — only the efficiency figure and the price per gallon or litre change. For an electric car there is no fuel volume; multiply the kWh the trip needs by your price per kWh instead.
Is this fuel cost calculator free and private?
Yes. It is free with no sign-up, and the calculation runs entirely in your browser — the numbers you enter never leave your device.