Free tool · Auto and travel
Gas calculator for a trip
Enter the distance, your car's consumption and the price at the pump to see how much fuel the trip needs and what it costs, in miles or kilometers, gallons or liters. Add a round trip or split the bill between people.
- Free
- No sign-up
- Runs in your browser
$35.0037.85 L of fuel (10.00 US gal) for 300.0 mi (482.8 km), one way
- $0.117 per mile
- $0.072 per km
- Distance driven
- 300.0 mi / 482.8 km
- Fuel needed
- 37.85 L
- In gallons
- 10.00 US / 8.33 UK
- Price per liter
- $0.925
Your consumption in every unit:
- 30.00 mpg (US)
- 36.03 mpg (UK)
- 7.84 L/100 km
- 12.75 km/L
Formula: fuel = distance × L/100 km ÷ 100, cost = fuel × price per liter. Miles × 1.609344 = km. L/100 km = 235.215 ÷ mpg (US) = 282.481 ÷ mpg (UK) = 100 ÷ km/L.
Your numbers: 300 mi × 1.609344 = 482.80 km; 30 mpg (US) = 7.840 L/100 km; 482.80 × 7.840 ÷ 100 = 37.85 L; $3.5 per US gallon ÷ 3.7854 = $0.9246 per liter; 37.85 × 0.9246 = $35.00.
How to use the Trip Fuel Cost Calculator
- Type the Distance and choose miles or kilometers. Tick Round trip if you are driving back too.
- Enter your Fuel consumption and pick its unit: mpg (US), mpg (UK), L/100 km or km/L.
- Enter the Fuel price and whether it is per US gallon, per UK gallon or per liter. Pick a Currency symbol.
- Set People sharing the cost if you want to split it, then read the cost, fuel needed and your numbers under Fuel cost.
How do I calculate the fuel cost of a road trip?
Fuel cost has three ingredients: how far you drive, how much fuel your car burns over that distance, and what a unit of fuel costs. The steps are fuel needed = distance ÷ distance per unit of fuel, then cost = fuel needed × price. A 300-mile trip in a car that does 30 miles per US gallon needs 300 ÷ 30 = 10 gallons. At $3.50 a gallon that is 10 × 3.50 = $35.00, or about $0.117 per mile.
The tool does the same sum for any mix of units. It converts the distance to kilometers (1 mile is exactly 1.609344 km), turns your consumption into liters per 100 km, finds the liters the trip needs, converts your price to a price per liter, and multiplies. Every step is shown under Your numbers so you can check it with a calculator.
Amounts are carried at full precision and rounded to two decimals only when shown. The price and the consumption are whatever you type: the tool never looks up a live fuel price or a route, so use the price on your last receipt and the figure from your dashboard or manual. Real consumption changes with load, speed, weather and traffic, so treat the result as an estimate and add a margin if the budget is tight.
How many gallons or liters do I need, and how do I convert mpg to L/100 km?
Miles per gallon measures distance per unit of fuel, so a higher number is better. Liters per 100 km measures fuel per unit of distance, so a lower number is better. To convert, divide a constant by your figure: L/100 km = 235.215 ÷ mpg (US), and L/100 km = 282.481 ÷ mpg (UK). For km per liter, L/100 km = 100 ÷ km/L. So 30 mpg (US) is 7.84 L/100 km, and the same car is 36.03 mpg on the UK scale.
The two mpg figures differ because the gallons differ. A US gallon is about 3.785 liters and a UK (imperial) gallon is 4.546 liters, so a UK gallon holds about 20% more fuel and the same car scores a higher mpg in the UK. Check which gallon your figure uses before you type it, and match the price: per US gallon, per UK gallon or per liter. The tool converts the price for you, so mixing them is fine as long as each is labelled correctly.
To get the fuel needed for any distance, multiply the distance by your L/100 km and divide by 100. For 480 km at 7.5 L/100 km that is 480 × 7.5 ÷ 100 = 36 liters, which is 9.51 US gallons. The result card shows liters, US gallons and UK gallons together, plus your consumption in all four units, which helps when a rental car or a map app uses a unit you do not.
Does a round trip double the cost, and how do I split it between passengers?
If you drive back by the same route, yes: a round trip is twice the distance, so it needs twice the fuel and costs twice as much. Tick Round trip and the tool doubles the distance for you. The cost per mile or per kilometer does not change, only the total. If the way back is a different length, leave the box clear and enter the full distance you will actually drive.
To share the cost, set People sharing the cost. The fuel bill is split into equal shares counted in cents, so the shares always add up to the total. When the total does not divide evenly, the result tells you how many people pay the higher amount and how many pay the lower one. For example, a $133.20 round trip split 3 ways is $44.40 each, but split 7 ways it is six people paying $19.03 and one paying $19.02.
This is fuel only. Tolls, parking, tire wear, servicing and insurance are not included, and a driver who shares costs may want to add them to the bill by hand. The tool describes what a trip costs, it does not say what a passenger owes.
Use it with
- EV Charging Cost Calculator: cost per charge and per km.
- Car Depreciation Calculator: value over the years.
- Split Bill Calculator: split costs among friends.
Questions
How do I calculate fuel cost for a trip?
Divide the distance by your car's distance per gallon (or multiply by liters per kilometer) to get the fuel needed, then multiply by the price. 300 miles at 30 mpg (US) needs 10 gallons, and at $3.50 a gallon that costs $35.00.
How do I convert mpg to L/100 km?
Divide 235.215 by the mpg (US) figure, or 282.481 by the mpg (UK) figure. 30 mpg (US) is 7.84 L/100 km. The two constants differ because a US gallon is about 3.785 liters and a UK gallon is 4.546 liters.
Does a round trip double the fuel cost?
Yes, if you drive back the same way. The distance is doubled, so the fuel and the cost are doubled. The cost per mile or kilometer stays the same.
How do I split fuel costs between passengers?
Enter the number of people. The total is split into equal shares in cents. If it does not divide evenly, the result shows how many people pay one cent more so the shares add up exactly.
Why is my mpg different in the UK and the US?
A UK (imperial) gallon is about 20% larger than a US gallon, so the same car shows a higher mpg on the UK scale. Choose the unit that matches the figure you are typing.
Does it include tolls or live fuel prices?
No. It only turns the distance, consumption and price you type into a fuel cost. Add tolls and parking yourself, and read the fuel price from the pump or a receipt.
Sources
How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.