MPG & Fuel Economy Calculator
Calculate economy from matched distance and fuel records, or convert a known value. Compare a second economy over the same distance, with optional supplied-price cost.
Your measured or known fuel economy
See the method ↓Enter 30 for 30 mpg (miles per gallon), or 8 for 8 L/100 km. US and imperial gallons differ. Unit changes convert your value; exact conversions are retained until edited. Prices use whole currency units, such as 3.50 dollars per gallon.
Loading calculator… If this message remains, reload the page.
HOW THE CALCULATION WORKS
Aggregate measured economy, exact unit conversion and a common-distance comparison
- Exact unit definitions: 1 mile = 1.609344 km; 1 US liquid gallon = 3.785411784 L; 1 imperial gallon = 4.54609 L. The US value follows from 231 cubic inches and 1 inch = 0.0254 m. Reciprocal conversions use these definitions, not rounded shortcut constants.
- Measured mode sums all entered distance and fuel in kilometres and litres. Litres/km = total litres ÷ total kilometres. Do not average the individual rows’ mpg values. Known mode instead converts the entered economy to litres/km.
- Equivalent ratios: L/100 km = litres/km × 100; km/L = 1 ÷ litres/km; US mpg = US litres/gallon ÷ (litres/km × km/mile), and similarly for imperial mpg.
- Projected fuel A/B = common projection distance × A/B litres/km. Fuel saving = A − B; fuel saving percentage = (A − B) ÷ A × 100. Positive means B uses less fuel; negative means B uses more.
- If a price is supplied, multiply each unrounded projected fuel quantity by the SAME price per litre. Cost saving = cost A − cost B.
Worked example
Measured records of 100 miles on 4 US gallons and 300 miles on 6 US gallons total 400 miles on 10 gallons: 40 US mpg, not the arithmetic mean 37.5. Compare B at 50 US mpg over 100 miles: A uses 2.5 US gallons, B uses 2, saving 0.5 gallon or 20%. At $4 per US gallon, costs are $10 versus $8, a $2 saving.
Defaults and assumptions
- Measured fill-up records selected; one row with blank distance/fuel, miles and US liquid gallons. Known economy starts blank with US mpg selected.
- Comparison B blank (no assumed improvement), US mpg; projection distance 100 kilometres; fuel price blank (unknown), per US liquid gallon; currency USD; quantity precision 3 decimals.
- Use 1–20 measured rows with positive distance and actual fuel used. Switching modes keeps separate inputs without reinterpreting a recorded measurement as a known economy.
Limitations
- mpg means miles per gallon: US liquid and imperial gallons are different. L/100 km means litres used over 100 kilometres; lower is better. km/L and mpg measure distance per fuel volume; higher is better. This tool uses international miles, not survey miles. It does not calculate MPGe (miles per gallon of gasoline-equivalent energy).
- Positive distance, liquid fuel and economy are required. Zero or negative values do not produce an infinite fuel-economy claim. Each entered distance/fuel is limited to 1 trillion canonical kilometres/litres; economy is limited to 1 trillion litres/km, and price to 1 trillion currency units/litre. Limits use these base units so changing a unit does not change eligibility.
- Actual consumption depends on driving, conditions and vehicle operation. No live price, route lookup, current vehicle rating, taxes, maintenance, depreciation, reimbursement rate or future-price assumption is supplied.
- Use matched distance/fuel intervals. Fuel added estimates fuel consumed only when start and end tank levels are comparable, such as successive full-to-full intervals. Partial top-ups or battery-supported travel can distort a liquid-fuel result.
- Comparison A and B use the same projection distance and one supplied fuel price. Compare the same type of liquid fuel. There is no electric-energy, fuel-quality, vehicle-purchase or lifetime-cost comparison.
- Percentage savings compare fuel consumption, not the percentage increase in mpg. A blank B produces no comparative saving claim; a blank price leaves monetary comparisons unknown. Zero price remains valid.
Precision and rounding
Calculations use exact rational arithmetic (fractions). Changing a unit keeps the exact conversion until the value is edited; a note identifies rounded input displays. Quantity/rate precision defaults to 3 decimals; an approximation marker identifies non-exact displays. Money displays half-up to two decimals, with negative display ties away from zero. Exact inputs and results appear in calculation steps and downloadable records. Currency selectors label amounts; they do not convert exchange rates.
Sources
- NIST Handbook 44, Appendix C · US liquid volume definitions ↗
- NIST · International mile and imperial gallon factors ↗
- US EPA · Understanding a gasoline vehicle fuel-economy label ↗
Use the assumptions, worked example and sources to interpret your result. Estimates do not replace professional advice.
How to use this calculator
- Choose measured fill-up records or a known economy. Use the unit dropdowns to identify miles/kilometres and US/imperial gallons correctly.
- For records, add matched distance/fuel intervals; the calculator sums both before calculating economy. For known mode, enter the stated ratio.
- Optionally enter comparison B, a common projection distance and one fuel price. Inspect both fuel quantities and the signed savings.
Common questions
Why not average the mpg from each fill-up?
Unequal records use unequal amounts of fuel. Total distance divided by total fuel gives the aggregate ratio; an arithmetic average of mpg can give a different answer.
Why is a higher mpg not the same percentage as a lower consumption?
The metrics are reciprocals. Going from 40 to 50 mpg increases distance per gallon by 25%, but reduces fuel used over the same distance by 20%. Savings here use the fuel-consumption comparison.
Can I use partial fill-ups or an electric vehicle?
Use matched fuel-consumed intervals. Unmatched partial fill-ups may mislead, and this tool does not account for electric energy or gasoline-equivalent energy.
Report a problem or suggest a calculator
Found a confusing result, a missing option, or an idea for a new calculator? Send it privately to the site owner.
Opening the form loads Cloudflare Turnstile, a spam check that processes connection and device information. Privacy details.
Related tools
Fuel Trip Cost Calculator
Estimate fuel and journey costs under stated efficiency assumptions.
Open calculator →Appliance Electricity Cost Calculator
Estimate energy use and cost from power, usage, and a supplied tariff.
Open calculator →Unit Price Calculator
Compare package sizes and prices using the same measurement basis.
Open calculator →