Calculators.Life Calculator
Engineering

Gas MPG Calculator

Input Parameters

Scenarios
Distance traveled during the trip
Odometer reading at the start of the trip
Odometer reading at the end of the trip
Amount of fuel consumed
$
Price per unit of fuel consumed

Computed Results

Fuel Economy (MPG US)
1
Fuel Economy (MPG Imperial)1.201
Fuel Economy (km/L)0.425
Fuel Consumption (L/100km)235.215
Cost per Mile$0.00
Total Trip Fuel Cost$0.00

The gas MPG calculator determines your vehicle's fuel economy by comparing the distance traveled to the amount of fuel consumed. It provides results in US MPG, Imperial MPG, km/L, and L/100km, while also estimating your total trip fuel cost and cost per mile.

How to Use the Gas MPG Calculator

Follow these steps to calculate your fuel economy and trip costs:

  1. Select your input mode: Choose whether you want to enter the total trip distance directly or calculate it using starting and ending odometer readings.
  2. Enter the distance: Input the total distance traveled or your odometer numbers, then select your preferred distance unit (miles or kilometers).
  3. Input fuel consumption: Enter the amount of fuel used during the trip and select the correct unit (US gallons, Imperial gallons, or liters).
  4. Add fuel price (optional): To calculate your total trip cost and cost per mile, enter the price you paid per unit of fuel.

Formulas and Calculation Method

Fuel economy is calculated by dividing the distance traveled by the volume of fuel consumed. The calculator automatically converts your inputs into the necessary units to provide standardized measurements.

For Miles Per Gallon (MPG):

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

For Liters per 100 Kilometers (L/100km), which measures fuel consumption rather than economy:

L/100km = (Fuel Consumed (liters) ÷ Distance (km)) × 100

If you provide a fuel price, the calculator determines your financial metrics using these formulas:

Total Trip Fuel Cost = Fuel Consumed × Fuel Price
Cost per Mile = Total Trip Fuel Cost ÷ Distance (miles)

Inputs and Outputs

CategoryFieldDescription
InputInput ModeChoose between entering a total distance or using odometer readings.
InputTrip Distance / OdometerThe total distance traveled or the specific start and end readings on your dashboard.
InputFuel UsedThe total volume of fuel consumed during the trip.
InputFuel PriceThe optional cost per unit of fuel to calculate financial metrics.
OutputFuel Economy (MPG US)The distance traveled per US gallon of fuel.
OutputFuel Consumption (L/100km)The number of liters required to travel 100 kilometers.
OutputCost per MileThe estimated fuel cost to drive one mile.
OutputTotal Trip Fuel CostThe overall cost of the fuel consumed during the trip.

Verified Scenario Walkthroughs

Short Commute Using Odometer Readings

Suppose you track a short commute using your dashboard odometer. You start at 12,500 miles and end at 12,545 miles, meaning you traveled 45 miles. You used 2.5 US gallons of fuel, priced at $3.49 per gallon.

Metric Long Distance Road Trip

Consider a road trip measured in metric units. You travel a total distance of 500 kilometers and consume 45 liters of fuel. The fuel price is 1.65 per liter.

Practical Use Cases

Calculating your gas mileage is useful for several practical reasons:

Frequently Asked Questions

How do I calculate MPG from odometer readings?

Subtract your starting odometer reading from your ending reading to find the total distance traveled. Then, divide that total distance by the number of gallons used to refill your tank.

What is the difference between US MPG and Imperial MPG?

An Imperial gallon is larger than a US gallon (approximately 1.2 times the volume). Because the gallon size is larger, a vehicle will always show a higher MPG figure when calculated using Imperial gallons compared to US gallons.

Why do metric countries use L/100km instead of km/L?

L/100km measures fuel consumption (how much fuel is needed for a set distance), whereas km/L and MPG measure fuel economy (how far you can go on a set amount of fuel). L/100km provides a linear scale where lower numbers indicate better efficiency.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.