Gas Mileage and Miles per Gallon Calculator
Use odometer readings, direct trip distance or multiple fill-ups. Convert U.S. MPG, Imperial MPG, km/L and L/100 km, then estimate cost per mile, cost per kilometer, projected-trip fuel, trip cost and annual fuel spending.
Measurement method
Enter one fill-up per line as distance, fuel, total fuel cost. Example: 350,14,49.
Fuel price and planning
Fuel economy result
How to figure out mileage per gallon
Subtract the starting odometer from the ending odometer to get distance travelled, then divide miles by US gallons used. The same measured trip is converted into Imperial MPG, kilometres per litre and litres per 100 kilometres.
Why multiple fill-ups are better
Pump shutoff, parking angle and incomplete refills can distort one tank. Combining several fill-ups divides total distance by total fuel and reduces the effect of any one measurement.
What is the formula for MPG?
US MPG equals miles travelled divided by US gallons consumed.
Why is Imperial MPG higher than US MPG?
An Imperial gallon is larger than a US gallon, so the numerical MPG value is higher for the same vehicle and trip.
Calculate MPG from odometer readings, trip distance or multiple fill-ups
The miles per gallon calculator supports the full-tank method, a direct distance-and-fuel entry and multiple fill-up totals. It also converts US MPG to Imperial MPG, liters per 100 kilometers and kilometers per liter, then connects fuel economy to trip cost, cost per mile, cost per kilometer, projected-trip fuel and annual fuel spending.
Most reliable full-tank method
Fill the tank, reset the trip meter or record the odometer, drive normally, then refill to a comparable level. Divide the miles driven by the US gallons added at the second fill. A single partial fill does not reveal how much fuel was actually consumed unless it is part of a longer multi-fill record bounded by full fills.
Odometer and direct-distance modes
Odometer mode subtracts the starting reading from the ending reading. Direct mode accepts a known trip distance. The selected distance and fuel units are converted before MPG is calculated, preventing an Imperial gallon or kilometer entry from being treated as a US-mile measurement.
Multiple fill-up average
A longer average reduces sensitivity to pump shutoff, slope, temperature and small refill differences. Add the distance and fuel from several complete intervals, then calculate total distance divided by total fuel. This is more meaningful than averaging individual MPG values when the intervals cover different distances.
Fuel cost and annual estimate
Enter fuel price to calculate trip cost, cost per mile and cost per kilometer. A separate projected-trip distance estimates fuel and cost for another route, while annual distance projects annual fuel use and spending at the measured fuel economy. These are planning estimates: traffic, load, weather, tire pressure, route, idling and seasonal fuel blends can change future performance.
US MPG, Imperial MPG and L/100 km
US and Imperial gallons are not the same size, so their MPG values must not be compared directly. Liters per 100 kilometers is an inverse consumption measure: a lower number is better. Kilometers per liter is a distance-per-fuel measure: a higher number is better.
Fuel-economy troubleshooting
- Use complete fill-to-fill intervals.
- Verify distance and gallon units.
- Do not use the dashboard’s instantaneous MPG as the fuel-purchase calculation.
- Compare similar seasons and routes.
- Investigate a sustained change rather than one unusual tank.
How do I figure miles per gallon?
Divide miles driven by US gallons used. For 350 miles and 14 gallons, the result is 25 MPG.
Why does my calculated MPG differ from the dashboard?
The dashboard uses vehicle sensors and software estimates. A fill-to-fill result uses purchased fuel and odometer distance, but it can also vary because the tank may not be filled to exactly the same level.
Gas Mileage and Miles per Gallon Calculator: formula-based step-by-step solution
This Gas Mileage and Miles per Gallon Calculator worked derivation uses the published default state. Its live formula panel replaces these values whenever an input, unit, mode, date, material, or scenario changes.
Fillups = 1Us Mpg = mi ÷ galImp Mpg = usMpg × 1.2009499255Km L = usMpg × .42514370743L100 = 235.214583 ÷ usMpgTrip Cost = actualCost>0?actualCost:gal × ppgCost Per Mile = tripCost ÷ miCost Per Km = tripCost ÷ (mi ÷ MI_PER_KM)Project Miles = miles(Project Distance otherwise 0,Project Unit or 'mi')Project Gallons = projectMiles ÷ usMpgProject Fuel = fromUsGallons(projectGallons,Fuel Unit)
1. Governing formulas and numeric substitution
- Formula 1:
Fillups = 1Default-value substitution:Fillups = 1Intermediate evaluation:1 - Formula 2:
Us Mpg = mi ÷ galDefault-value substitution:Us Mpg = mi ÷ gal | current data: Calculation mode=odometer; Starting odometer=12000; Ending odometer=12350; Distance travelled=350; Distance unit=mi; Fuel used=14; Fuel unit=usgal; Fillups= - Formula 3:
Imp Mpg = usMpg × 1.2009499255Default-value substitution:Imp Mpg = usMpg × 1.2009499255 | current data: Calculation mode=odometer; Starting odometer=12000; Ending odometer=12350; Distance travelled=350; Distance unit=mi; Fuel used=14; Fuel unit=usgal; Fillups= - Formula 4:
Km L = usMpg × .42514370743Default-value substitution:Km L = usMpg × .42514370743 | current data: Calculation mode=odometer; Starting odometer=12000; Ending odometer=12350; Distance travelled=350; Distance unit=mi; Fuel used=14; Fuel unit=usgal; Fillups= - Formula 5:
L100 = 235.214583 ÷ usMpgDefault-value substitution:L100 = 235.214583 ÷ usMpg | current data: Calculation mode=odometer; Starting odometer=12000; Ending odometer=12350; Distance travelled=350; Distance unit=mi; Fuel used=14; Fuel unit=usgal; Fillups= - Formula 6:
Trip Cost = actualCost>0?actualCost:gal × ppgDefault-value substitution:Trip Cost = actualCost>0?actualCost:gal × ppg | current data: Calculation mode=odometer; Starting odometer=12000; Ending odometer=12350; Distance travelled=350; Distance unit=mi; Fuel used=14; Fuel unit=usgal; Fillups= - Formula 7:
Cost Per Mile = tripCost ÷ miDefault-value substitution:Cost Per Mile = tripCost ÷ mi | current data: Calculation mode=odometer; Starting odometer=12000; Ending odometer=12350; Distance travelled=350; Distance unit=mi; Fuel used=14; Fuel unit=usgal; Fillups= - Formula 8:
Cost Per Km = tripCost ÷ (mi ÷ MI_PER_KM)Default-value substitution:Cost Per Km = tripCost ÷ (mi ÷ MI_PER_KM) | current data: Calculation mode=odometer; Starting odometer=12000; Ending odometer=12350; Distance travelled=350; Distance unit=mi; Fuel used=14; Fuel unit=usgal; Fillups= - Formula 9:
Project Miles = miles(Project Distance otherwise 0,Project Unit or 'mi')Default-value substitution:Project Miles = miles((840) otherwise 0,Project Unit or 'mi') - Formula 10:
Project Gallons = projectMiles ÷ usMpgDefault-value substitution:Project Gallons = projectMiles ÷ usMpg | current data: Calculation mode=odometer; Starting odometer=12000; Ending odometer=12350; Distance travelled=350; Distance unit=mi; Fuel used=14; Fuel unit=usgal; Fillups= - Formula 11:
Project Fuel = fromUsGallons(projectGallons,Fuel Unit)Default-value substitution:Project Fuel = fromUsGallons(projectGallons,(14) Unit)
2. Variables and measurement units used
- Calculation mode =
odometer - Starting odometer =
12000 - Ending odometer =
12350 - Distance travelled =
350 - Distance unit =
mi - Fuel used =
14 - Fuel unit =
usgal - Fillups =
- Distance unit for all lines =
mi - Fuel unit for all lines =
usgal - Fuel price =
3.5 - Price unit =
usgal - Projected trip distance =
840 - Projected-trip unit =
mi - Expected annual distance =
12000 - Annual-distance unit =
mi - Compare with rated U.S. MPG =
25
3. Gas Mileage and Miles per Gallon Calculator final evaluation: this calculator’s production engine evaluates the substituted relationship with unrounded internal precision; its subject-specific result cards, table, and visual report the rounded final answer and verification quantities.
Formula-based calculator guide
Gas Mileage And Miles Per Gallon Calculator: formula, steps, units and verification
gas mileage and miles per gallon calculator is designed for a transparent calculation rather than a black-box answer. Gas Mileage And Miles Per Gallon Calculator: calculate U.S. and Imperial MPG, km/L, L/100 km, trip fuel, projected cost, cost per mile or kilometer.
How to use the gas mileage and miles per gallon calculator in 5 steps
- Choose the required mode. Select the calculation path that matches the quantity you know and the result you need.
- Enter source values. Use measured, documented or assignment values rather than rounded estimates whenever possible.
- Confirm every unit. The gas mileage and miles per gallon calculator converts supported units before formula substitution, so each selector must describe the entered number.
- Run the calculation. Review the displayed formula, normalized values and numeric substitution before accepting the final result.
- Verify the answer. Reproduce the substitution manually and check whether the output is reasonable for the stated assumptions.
Gas Mileage And Miles Per Gallon Calculator formula and unit checks
The gas mileage and miles per gallon calculator keeps source inputs, canonical calculation units and displayed output units separate. This prevents a correct formula from producing a wrong answer because feet were treated as meters, percentages as decimals, or time values as the wrong interval.
For an independent check, copy the formula shown by the calculator, substitute the unrounded canonical values, preserve full precision through intermediate operations and round only the final result. The verified answer should match both the displayed number and its measurement unit.
How to interpret the gas mileage and miles per gallon calculator result
A result is useful only when its assumptions match the real problem. Compare the answer with expected ranges, inspect any warning or boundary message, and test a nearby input to confirm that the output changes in the direction predicted by the governing relationship.
The gas mileage and miles per gallon calculator provides an educational and planning result. For regulated, medical, structural, financial, laboratory or safety-critical decisions, verify the inputs and method against the applicable professional requirements before acting.
Related calculators
Gas Mileage And Miles Per Gallon Calculator quick verification checklist
Before saving or reporting a result from the gas mileage and miles per gallon calculator, confirm the input source, unit selections, formula mode, intermediate substitution, final unit and rounding rule. These checks make the calculation reproducible and easier to audit.
Browse the complete published calculator sitemap or return to the Salar Cafe home page.