How this calculator works
- Step 1Distance300 kmOne way; a round trip doubles it.
- Step 2Fuel needed20.00 litresDistance ÷ 15 km/l.
- Step 3Fuel cost₹2,000.00Litres × ₹100.00 a litre.
The calculator divides the distance by the mileage to get litres, then multiplies by the price you pay per litre. Cost per km is the price divided by the mileage. Splitting divides the total equally between the people sharing it.
All three figures are your own inputs. The page does not fetch live fuel prices, because they differ between cities and change often. The default price is only an example.
Worked example: a shared round trip
- Distance driven
one-way km × 2 for a round trip- Fuel needed
distance ÷ km per litre- Cost
litres × price per litre- Each person
cost ÷ people
- kmDistance one way 300 km
- km/lMileage 15 km/l
- ₹/lExample fuel price ₹100.00
- Distance driven300 km × 2600 km
- Fuel needed600 km ÷ 15 km/l40.00 litres
- Fuel cost40.00 litres × ₹100.00₹4,000.00
- Cost per km₹100.00 ÷ 15 km/l₹6.67
- Each of 4 people pays₹4,000.00 ÷ 4₹1,000.00
Cost per km does not depend on distance. It stays ₹6.67 whether the trip is one way or there and back. Only the total and each share change.
How mileage changes the bill
Cost falls as mileage rises, but not in a straight line. The first step up in mileage saves more than the second on the same trip, because fuel needed is distance divided by mileage.
Mileage units: km/l, l/100 km and mpg
- Kilometres per litre15 km/lCommon in India. Higher is better.
- Litres per 100 km6.67 l/100 km100 ÷ km/l. Lower is better.
- Miles per gallon35.28 US / 42.37 UKThe UK gallon is larger than the US one.
The conversions use exact definitions: a mile is 1.609344 km, a US gallon is 231 cubic inches (about 3.785 litres) and a UK gallon is 4.54609 litres.
NIST’s own conversion example, 20 US mpg, converts to 8.503 km/l or 11.76 l/100 km.
Switching units changes only how your mileage is shown. The value used for the cost is kept at full precision, so switching back and forth never changes the result.
Reading the result
Treat the total as a fuel-only estimate for the mileage and price you entered.
Fuel cost is the headline total. Fuel needed helps you plan refills. Cost per km lets you compare vehicles or routes. Cost per person is the equal split of the fuel bill only.
Real trips vary. Traffic, hills, speed, load, tyre pressure and air conditioning all change mileage. Tolls, parking and servicing are extra, and are not part of this figure.
Related travel tools
Fuel cost depends on mileage, distance and price. Each can be worked out on its own.
To find your car’s real mileage from a fill-up, use the gas mileage calculator. For travel time at an average speed, try the speed calculator.
Common mistakes
Mistake: Use the brochure mileage for city driving.
Instead: Use your own figure: km driven between fills ÷ litres refilled.
Mistake: Enter the one-way distance and forget the drive back.
Instead: Choose “Round trip” so the distance is doubled.
Mistake: Mix up US and UK miles per gallon.
Instead: Pick the mpg unit that matches where the figure came from.
Mistake: Split the total and forget tolls and parking.
Instead: Add those costs separately before sharing the bill.
Checking the method
Every golden value is recomputed by a separate script using exact fractions.
A Python script recomputes each test case with exact fractions, following each unit’s own route. Miles-per-gallon cases convert kilometres to miles and gallons to litres, rather than km per litre. It also reproduces the NIST worked example above.
Read how we test our calculators, or browse more everyday tools.