Gas Calculator

Trip fuel cost — distance, consumption and fuel price, with cost per mile or kilometre and a split between passengers.

100% FreeNo sign-upPrivate — runs in your browser
Double for a round trip
Doubles distance, fuel and cost for the return journey.
—

Total fuel cost

—
Fuel used
—
Total cost
—
Cost per mile / km
—
Cost per person
—
Consumption note
—

Copied to clipboard

How to use this tool

1
Pick your units

Miles and gallons, or kilometres and litres — the maths is identical, the units are not.

2
Enter distance and consumption

Your trip length and your car's real-world economy, not just the brochure figure.

3
Enter the fuel price

The price per gallon or per litre at the pump you will actually use.

4
Split the cost

Add passengers to split the fuel bill fairly.

Formula & worked example

US: gallons = miles ÷ mpg; cost = gallons × price per gallon. Metric: litres = km × (L/100 km) ÷ 100; cost = litres × price per litre.

300 miles at 30 mpg uses 10 gallons; at $3.50 a gallon that is $35.00 — $17.50 each for 2 people. 500 km at 8 L/100 km uses 40 litres.

Limitations — read this before you rely on it

Real consumption varies with speed, load, hills and weather, so treat the result as a planning figure and keep a margin for the trip.

Frequently asked questions

Divide miles by your mpg (or multiply km by L/100 km and divide by 100) — this calculator does both.

Around 30 mpg combined is typical for a modern petrol car; hybrids often exceed 50 mpg.

Yes — fuel use rises sharply above about 55 mph, and air conditioning and roof loads add more.

Tolls, parking and food are separate — this calculator splits fuel only.

Fill the tank, reset the trip meter, and divide miles driven by gallons used at the next fill.