ThisCalculator

Everyday

Trip Gas Mileage Calculator by Vehicle

Updated · Standard formula, shown below

Fuel economy 25.00 MPG
Trip fuel cost
42.00 $
Result
Fuel per mile
0.040 gal/mi
Result
Trip distance
300 mi
You entered

This calculator estimates your vehicle’s fuel economy for a specific trip. You enter the distance driven and the fuel used (or the trip distance and your vehicle’s known efficiency), and it returns your average miles per gallon (MPG) or liters per 100 kilometers (L/100km), plus the total fuel cost. It works for any car, truck, or motorcycle, as long as you provide accurate inputs.

Formula

The core formula is straightforward:

MPG = Distance (miles) ÷ Fuel Used (gallons)

For metric users, the equivalent is L/100km = (Fuel Used in liters ÷ Distance in km) × 100.

Variables:

  • d – trip distance in miles (or kilometers)
  • f – fuel consumed in gallons (or liters)
  • p – fuel price per gallon (or per liter) – used only for cost

The calculator also shows fuel per mile (gallons per mile), which is the inverse of MPG and is useful for comparing short trips where MPG numbers look large.

Worked Example

Using the default values: trip distance = 300 miles, fuel used = 12 gallons, price = $3.50/gal.

  1. MPG = 300 ÷ 12 = 25.0 MPG
  2. Cost = 12 × 3.50 = $42.00
  3. Gallons per mile = 12 ÷ 300 = 0.040 gal/mi

The calculator rounds MPG to 2 decimals, so you see 25.00. That matches the headline output.

How to Use the Trip Calculator

For a single trip, the most accurate method is to fill your tank completely, note the odometer reading, drive, then fill again and note the gallons pumped. That second fill amount is the fuel used for the distance between fill-ups.

  • If you only know your vehicle’s average MPG (from the dashboard or previous calculations), enter that as fuel economy and the calculator will estimate fuel needed and cost for a planned trip.
  • For metric users, convert miles to kilometers (1 mile = 1.60934 km) and gallons to liters (1 US gallon = 3.78541 L).
  • Use the same units for both inputs – mixing miles with liters will give wrong results.

Why Your Vehicle’s Sticker MPG Differs

The EPA estimates on a new car’s window sticker are based on standardized lab tests. Real-world MPG varies due to:

  • Driving speed – fuel economy typically peaks around 50–60 mph (80–97 km/h) and drops sharply above 60 mph.
  • Acceleration patterns – rapid starts and hard braking can reduce MPG by 10–40% in city driving.
  • Weather – cold engines use more fuel; headwinds and rain increase drag.
  • Load and terrain – hills, roof racks, and heavy cargo all lower efficiency.
  • Tire pressure – underinflated tires increase rolling resistance.

Your trip calculator result is the real-world number for that specific journey, which is often 10–20% lower than the sticker value.

Common Mistakes and How to Avoid Them

  • Mixing units – entering miles with liters or kilometers with gallons. Always convert to a consistent system.
  • Not filling to the same level – if you don’t top off exactly the same way each time, the fuel used will be off by a few tenths of a gallon.
  • Using the trip odometer incorrectly – reset it at the fill-up, not before.
  • Rounding too early – keep at least 3 significant figures in intermediate steps.
  • Forgetting the cost of fuel – if you want total trip cost, include the price per gallon; otherwise leave it at 0.

How to Improve Your Trip MPG

If your calculated MPG is lower than expected, try these proven techniques:

  • Maintain steady speeds – use cruise control on highways.
  • Remove unnecessary weight and roof racks when not in use.
  • Keep tires inflated to the pressure listed in the owner’s manual.
  • Use the recommended grade of motor oil.
  • Plan routes to avoid stop-and-go traffic and idling.
  • Combine short trips – a cold engine uses more fuel for the first few miles.

These changes can improve fuel economy by 5–30% depending on driving conditions.

Limitations of the Calculator

This calculator assumes a constant fuel consumption rate over the trip. In reality, MPG varies second by second due to traffic, terrain, and speed. For a long trip, the average is fine, but for a short city errand, the result may be much lower than your highway average. Also, the cost estimate uses the price you enter – fuel prices change frequently, so update it for accurate budgeting.

For fleet or tax purposes, you may need to track each trip separately rather than using a single average.

Frequently Asked Questions

How do I calculate MPG for a trip without filling up?

If you can’t fill up twice, use your vehicle’s on-board computer reading (if available) or look up the official EPA estimate for your make and model. Enter that as fuel economy and the distance you plan to drive; the calculator will give estimated fuel needed and cost.

What’s the difference between MPG and L/100km?

MPG (miles per gallon) is a measure of distance per volume – higher is better. L/100km (liters per 100 kilometers) is volume per distance – lower is better. To convert, divide 235.215 by the MPG value to get L/100km, or divide 235.215 by L/100km to get MPG.

Why does my car’s trip computer show a different MPG than this calculator?

Trip computers often use fuel flow sensors that can be slightly inaccurate, and they may not include fuel used during idling or cold starts. The manual fill-up method (distance ÷ fuel pumped) is generally more accurate.

Can I use this calculator for electric vehicles?

No – EVs use kilowatt-hours per 100 miles (kWh/100mi) or miles per kWh. This calculator is for gasoline, diesel, or hybrid vehicles that use liquid fuel.

Does driving speed really affect MPG that much?

Yes. Aerodynamic drag increases with the square of speed, so at 75 mph (120 km/h) you might use 15–20% more fuel than at 65 mph (105 km/h) on the same road. The optimal speed for most cars is between 45 and 60 mph.

What is a good MPG for a modern car?

For a typical gasoline sedan, 30–40 MPG on the highway is considered good. SUVs and trucks often get 20–30 MPG. Hybrids can exceed 50 MPG. Your result depends on vehicle class and driving conditions.

Related

Formula used
in d | Trip distance | mi | 300 | 0
in f | Fuel used | gal | 12 | 0
in p | Fuel price per gallon | $ | 3.50 | 0
out mpg | Fuel economy | MPG | d / f | 2
out cost | Trip fuel cost | $ | f * p | 2
out gpm | Fuel per mile | gal/mi | f / d | 3

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.