Gas Calculator

Estimate the fuel a trip burns and what it costs to fill the tank.

Seventeen preset cars, city, highway or mixed driving, and 20 currencies.

Updated November 27, 2026
Frank Zhao - Creator
CreatorFrank Zhao
Loading calculator…

Introduction

Three numbers decide what a drive costs at the pump: how far you are going, how thirsty the car is, and what a litre — or a gallon — costs where you fill up. This page takes those three, works out the fuel the trip will burn, turns it into money, and divides the bill between whoever is in the car.

Most people arrive with one of three questions in mind. How much will this weekend trip cost in fuel? What is my share if four of us drive to the coast? And if I only want to spend 60 on fuel, how far is that? All three are the same calculation read in a different direction, which is why every box on the page doubles as an input and as a result: fill in the ones you know and the rest follow.

The car menu carries the published fuel economy of seventeen common vehicles, so a rough answer is one click away. Nothing stops you from replacing that figure with your own: pick “Other vehicle”, or the “Custom” trip type, and type the number your own car actually delivers. That difference matters — a figure off a specification sheet and a figure measured at the pump are rarely the same number.

What this page does not do is price the rest of driving. Tolls, parking, insurance, servicing and depreciation stay outside the fuel bill, and the trip is priced exactly once — if you are driving there and back, enter the round-trip distance rather than trusting something to double it for you. For a drive you repeat every week, the commute calculator turns the same arithmetic into a monthly comparison against public transport.

17 vehicles

Published figures for city, highway and combined

4 economy units

Litres per 100 km, US mpg, UK mpg, km per litre

20 currencies

Fuel price and money results, at the current rate

Quick start

1

Pick the car and the kind of driving

Choosing a vehicle loads the fuel economy published for it and locks the economy box, because that figure belongs to the car rather than to your trip. “Trip type” says which of the three published figures to use: City, Highway, or Urban and Highway for the combined one. If the car is not in the list, choose “Other vehicle” and the menu disappears, the economy box opens, and you type your own.

2

Enter the distance, once

Kilometres are the default; metres, thou, feet, yards and miles are all accepted, and the answer is given in whatever unit the box is showing. Enter the whole distance you intend to drive. A 250 km weekend out is 250, not 125 — nothing here doubles a trip behind your back.

3

Price the fuel the way the pump quotes it

The fuel price carries two menus: currency first, then the volume it is quoted per — litre, US gallon or UK gallon. Set the volume to match the pump and the currency to match your wallet; switching either one converts the number without changing what you are actually paying per litre.

4

Say how many people are sharing

The share is the fuel bill divided by this number, so count everyone who pays — yourself included if you are driving and paying. Leave it empty and you will still see the total cost; fill it in and the cost per person appears beside it.

5

Read the fuel, the bill and the share

A Ford F150 on a 250 km city drive, with fuel at 1.50 a litre, split four ways:

VfuelV_{\mathrm{fuel}}==250100×11.7607\frac{250}{100} \times 11.7607==29.4018 L29.4018\ \mathrm{L}
CtripC_{\mathrm{trip}}==29.4018×1.5029.4018 \times 1.50==44.1044.10\quadCpersonC_{\mathrm{person}}==44.104\frac{44.10}{4}==11.0311.03

The car burns a little over 29 litres, the fill costs about 44, and each of the four pays a shade over 11. Notice what the trip-type menu is worth on the very same drive: the same 250 km costs 22.62 litres on the highway figure and 25.57 litres on the combined one.

How the figures are built

Three multiplications and one division, in a fixed order: fuel from distance and economy, money from fuel and price, share from money and headcount.

Fuel burned on the trip

A fuel economy quoted in litres per 100 kilometres tells you how much the car drinks over each 100 km block. So the distance is expressed in those blocks first, then multiplied by the economy:

Vfuel=Dkm100×EV_{\mathrm{fuel}} = \frac{D_{\mathrm{km}}}{100} \times E

Measure the same relation in the base units the page works in — metres for distance, litres for fuel — and the two conversion factors fold into one denominator of 100,000, which is simply 1,000 metres to a kilometre times the 100 km block:

Vfuel=Dm×E1000×100V_{\mathrm{fuel}} = \frac{D_{\mathrm{m}} \times E}{1000 \times 100}

What that fuel costs

The pump price is money per volume, so the fuel and the price have to be quoted per the same volume before they multiply. Choose the volume the pump quotes and the page normalises the price to money per litre first:

Ctrip=Vfuel×pfuelC_{\mathrm{trip}} = V_{\mathrm{fuel}} \times p_{\mathrm{fuel}}

The share each person pays

Cperson=CtripnC_{\mathrm{person}} = \frac{C_{\mathrm{trip}}}{n}

Every box works in both directions

The same three statements rearranged answer the questions that arrive the other way round — a budget instead of a distance, a measured fill instead of a published figure, a share instead of a headcount:

D=100 VfuelED = \frac{100\,V_{\mathrm{fuel}}}{E}\qquadE=100 VfuelDE = \frac{100\,V_{\mathrm{fuel}}}{D}\qquadV=CpV = \frac{C}{p}
p=CVp = \frac{C}{V}\qquadC=Cperson×nC = C_{\mathrm{person}} \times n\qquadn=CCpersonn = \frac{C}{C_{\mathrm{person}}}

One direction is deliberately closed. While a car from the menu is selected, its fuel economy has no reverse direction at all: you can drive the trip distance or the litres back out of the bill, but the published figure itself cannot be rewritten by the arithmetic. Anything else would let a measured fuel amount quietly move a sedan from 11.76 to 13 litres per 100 km and leave you believing the car had changed. Choose “Other vehicle” or the “Custom” trip type and that box belongs to you again, in both directions.

DDTrip distance, entered once for the whole journey
EEFuel economy of the car, in litres per 100 km
VfuelV_{\mathrm{fuel}}Fuel the trip burns, in litres or gallons
pfuelp_{\mathrm{fuel}}Pump price per litre, gallon or other volume
CtripC_{\mathrm{trip}}Money the trip costs in fuel
nnNumber of people the bill is divided between
CpersonC_{\mathrm{person}}Each person’s share of the fuel bill

The three published figures are different measurements

City, Highway and Urban and Highway are not three guesses at the same number. The urban figure is measured in low-speed stop-and-go traffic with a cold start, the highway figure in free-flowing traffic with the engine already warm, and the combined one weights the two. A Ford F150 published at 20 mpg in town and 26 on the motorway comes out at 23 combined, which is why the trip-type menu moves the answer so much on a long drive.

Miles per gallon and litres per 100 km pull in opposite directions

A bigger mpg number is a better car; a bigger L/100 km number is a worse one. That is why the unit menu converts by division rather than by a simple multiplier, and why the same 20 mpg reads as 11.76 litres per 100 km:

EL/100 km=100×3.785411784mpgUS×1.609344E_{\mathrm{L/100\,km}} = \frac{100 \times 3.785411784}{\mathrm{mpg}_{\mathrm{US}} \times 1.609344}

Worked examples

1

The same drive, three ways of describing it

Situation: A 250 km motorway run to a client meeting in a Ford F150, fuel at 1.50 a litre, four people travelling. The only thing that changes between these three results is the trip type.

Inputs

CarFord F150
Distance250 km
Fuel price1.50 / L
People4

Result

City: 11.7607 L/100 km → 29.4018 L, 44.10 total, 11.03 each.

Urban and Highway: 10.2267 L/100 km → 25.5668 L, 38.35 total, 9.59 each.

Highway: 9.0467 L/100 km → 22.6168 L, 33.93 total, 8.48 each.

2

Starting from a budget instead of a distance

Situation: Four friends agree to put 60 of fuel in the tank at 1.50 a litre on the same city trip. They want to know how far that buys them before they set off.

Inputs

Cost of the trip60
Fuel price1.50 / L
People4

Result

The bill buys 40 litres of fuel, which at the F150’s city economy is about 340 km. The share is 15 each.

DD==601.50\frac{60}{1.50}==40 L40\ \mathrm{L}→\rightarrow40×10011.7607\frac{40 \times 100}{11.7607}≈\approx340 km340\ \mathrm{km}
3

A car that is not in the menu

Situation: A diesel estate nobody lists, driven 250 km on 18 litres by the trip meter. Three of you shared the driving and will split the fuel, which cost 1.75 a litre.

Inputs

CarOther vehicle
Distance250 km
Fuel used18 L
Fuel price1.75 / L
People3

Result

The measured fill works backwards to 7.2 litres per 100 km, a bill of 31.50 and 10.50 each. That measured figure is worth more than any published one, because it already contains your driving style, the load in the boot and the road you actually covered.

EE==18×100250\frac{18 \times 100}{250}==7.2 L/100 km7.2\ \mathrm{L/100\,km}

Inputs worth checking

The distance is the whole trip

Nothing is doubled inside the calculation. If you are driving out and back, enter 500 km rather than 250, and the fuel and the bill will follow.

A grey economy box is not a locked calculator

It means a published figure is in charge. Switch the car to “Other vehicle”, or the trip type to “Custom”, and the box opens so you can type a measured value.

Watch the volume the price is quoted per

A US gallon is 3.785 litres and a UK gallon is 4.546, so the same pump price becomes a very different number per gallon. Choose the volume in the second price menu to match the one on the forecourt sign.

Mixing up the two economy scales

Typing 30 into a box set to L/100 km when your figure was 30 miles per gallon overstates the fuel by more than a factor of two. Check the unit menu before blaming the car — or convert the figure first.

Count the people who actually pay

The share is the bill divided by the number you enter, with no separate line for the driver. If you drive and pay, include yourself. If the passengers are covering the fuel between them, enter only the passengers: three people sharing a 44.10 bill pay 14.70 each.

Questions

Q

Does the calculator double my distance for a return trip?

No. The distance you enter is the distance that gets priced, once. A 250 km figure is billed as 250 km of fuel, so enter the return leg yourself when you need both directions.

Q

Why can I not type into the fuel economy box?

Because a car is selected from the menu, and that car’s figure is treated as a published property rather than something the arithmetic may rewrite. Choose “Other vehicle” in the car menu, or “Custom” as the trip type, and the box becomes editable in both directions — you can then also work the economy back out of a measured fill.

Q

How do we split the fuel so the driver pays nothing?

Enter the number of people who are paying rather than the number of seats occupied. A 44.10 bill covered by three passengers is 14.70 each; add the driver to the count only if the driver is also paying a share. If the real question is who owes what after the trip — including whoever already paid at the pump — the carpooling calculator is built for exactly that settlement.

Q

Why does my real fuel use differ from the car's published figure?

Published figures come from standardised test cycles: the city cycle is a cold start in stop-and-go traffic averaging a little over 30 km/h, the highway cycle a warm engine in free-flowing traffic. A US Department of Energy and EPA description of those cycles sets out the speeds and conditions each one covers. Load, tyre pressure, air conditioning, gradient, temperature and how heavy your right foot is all sit outside the test, which is why a measured figure usually beats a published one here.

Q

Can I use it for a price quoted per gallon in another currency?

Yes — the two menus on the fuel price are independent. Set the currency to whatever you pay in and the volume to the unit on the sign; the page converts both before anything is multiplied. The money results follow the same currency, so a total can be read as dollars, euro, yen or anything else on the list.

How far to trust it

A planning estimate, not a fuel receipt

The arithmetic here is exact; the inputs are not. What you get is the best estimate the numbers you typed can support, and real consumption can move well away from any published figure.

Fuel economy is a range, not a constant

Published figures come from laboratory cycles and assume a warm, unloaded car in moderate weather. A roof box, four adults, a hill and a cold morning will all add litres the table never promised.

Prices and rates both move

The pump price is whatever you type, so it is only as current as your last look at the forecourt. Currency conversions use a rate fetched when the page loads and refreshed daily, so a saved link can reopen with a slightly different rate.

Fuel is not the whole cost of driving

Tolls, parking, insurance, servicing and depreciation sit outside this bill. On a short trip they can easily outweigh the fuel; on a long one they are a smaller addition. Fold the ones you pay during the trip into your own budget.

Rounded for reading, exact underneath

Figures are shown rounded to a readable number of digits — 11.7607 rather than the full decimal expansion — and that rounding never feeds into the next step of the calculation, so the totals are not built from rounded pieces.

None of this makes the page a substitute for a fuel card statement or a fleet accounting system. Treat the result as a sound estimate for deciding whether a trip fits the budget, splitting a bill fairly, or comparing one car against another — not as a guaranteed figure.

Gas Calculator - Fuel Cost for a Trip and Cost per Person