Skip to content
SacaCuenta

Fuel Cost Calculator

Estimate how much gas a road trip will take and what it will cost. Enter the distance, your car's fuel economy and the price you pay; miles or kilometers, mpg, L/100 km or km/L, per gallon or per liter all work.

FreeNo sign-upInstant resultsUpdated:

Calculator

Use the window sticker rating or, better, your own measured mileage.

$

Example value. Enter the price you actually pay.

Optional. Leave it blank for 1 person.

Trip fuel cost

$35.00

Per person

$35.00

For 1 person

Fuel needed

10 gal

≈ 37.85 liters

Cost per mile
$0.117
Cost per kilometer
$0.072
Total distance
300 mi (482.8 km)
Equivalent fuel economy
30 mpg · 7.84 L/100 km · 12.75 km/L
Equivalent price
$3.50/gal · $0.925/L

Uses the international mile (1.609344 km) and the US gallon (3.785411784 L). Real-world mileage changes with speed, traffic, load and A/C use.

An estimate based on the numbers you enter. Real-world mileage varies with driving style, load, weather and the condition of your vehicle.

How the gas cost calculator works

  1. Enter the trip distance and pick miles or kilometers.
  2. Enter your fuel economy and its unit: mpg (US gallons), L/100 km or km/L.
  3. Enter the fuel price and whether it's per gallon or per liter.
  4. Choose one way or round trip and, if you're splitting costs, how many people are chipping in.
  5. You'll get the gallons and liters needed, the trip cost, the cost per person and the cost per mile and per kilometer.

Gas cost formula

Total distance = Distance × 2 (for a round trip)
Gallons = Miles ÷ mpg
Trip cost = Gallons × Price per gallon
Per person = Trip cost ÷ People

If you enter kilometers, L/100 km or a price per liter, the calculator converts everything with exact factors first, so the result is the same whichever units you use.

Converting mpg, L/100 km and km/L

L/100 km = 235.215 ÷ mpg
km/L = 100 ÷ (L/100 km)
1 mile = 1.609344 km · 1 US gallon = 3.785411784 L
mpg (US)L/100 kmkm/L
19.6128.33
23.51010
29.4812.5
33.6714.29
47.0520

With mpg and km/L, higher is better. With L/100 km, lower is better, since it measures fuel used rather than distance traveled. To convert just distances or volumes, try the miles and kilometers converter or the liters to gallons converter.

A UK (imperial) gallon is 4.54609 L, so UK mpg figures run about 1.2 times higher than US mpg for the same car. This calculator uses US gallons.

How to measure your real gas mileage

The EPA rating on the window sticker is a useful benchmark, but your mileage depends on how and where you drive. To measure it yourself:

  1. Fill the tank and reset the trip odometer.
  2. Drive normally for at least a few hundred miles.
  3. Fill up again and note how many gallons it took.
  4. mpg = Miles driven ÷ Gallons added.

High highway speeds, A/C, a loaded roof rack, underinflated tires, hills and stop-and-go traffic all lower your mpg.

Splitting gas money

Carpooling or road-tripping with friends? Enter how many people are sharing the cost to see each person's part. The calculator covers fuel only, so add tolls, parking or wear and tear separately if you're splitting those too.

Example: a round trip split two ways

Two friends drive 150 miles each way and come back the same day. The car gets 30 mpg and, in this hypothetical example, gas costs $3.50 a gallon. They cover 300 miles, burn 10 gallons and spend $35, or $17.50 each.

  1. Total distance: 150 × 2 = 300 miles
  2. Gallons: 300 ÷ 30 = 10 gal (≈ 37.85 L)
  3. Trip cost: 10 × 3.50 = $35.00
  4. Per person: 35 ÷ 2 = $17.50
  5. Cost per mile: 35 ÷ 300 ≈ $0.117

Common mistakes

  • Forgetting the drive home. If you're coming back the same way, choose "Round trip" or double the distance.
  • Using UK mpg figures as if they were US mpg. The imperial gallon is bigger, so you'd underestimate the cost.
  • Mixing up km/L and L/100 km when working with European specs: 7 L/100 km is efficient, while 7 km/L is a gas guzzler.
  • Relying only on the sticker rating. Fast highway driving or a fully loaded car usually means lower mpg than advertised.

Frequently asked questions

How do I calculate gas cost for a trip?

Divide the miles by your car's mpg to get gallons, then multiply by the price per gallon. For 240 miles at 30 mpg and $3.00 a gallon: 240 ÷ 30 = 8 gallons, and 8 × 3 = $24.

How do I convert mpg to L/100 km?

Divide 235.215 by the US mpg figure. For example, 30 mpg is about 7.84 L/100 km. The calculator accepts all three units and shows the equivalents.

Is the default gas price accurate?

No, it's just an example value so you can see how the calculator works. Enter the price you actually pay, which varies by state, station, fuel grade and week.

Does it include tolls or parking?

No, it covers fuel only. Add any other trip costs separately and split them the same way.