Gas Mileage Calculator

Calculate fuel economy from distance and fuel used in U.S. customary or metric units.

Your numbers

Live

Instant result. Updates while you type.

Your result

Updated now
—

Enter your numbers.

Gas Mileage Calculator: method, checked example and practical limits

Calculate fuel economy from distance and fuel used in U.S. customary or metric units. Fuel economy describes the trip measurement; fuel consumption per distance is its reciprocal under compatible units.

Editorial checkTopic-specific equation, input definitions, example arithmetic, primary references and limitations checked. Editorial and software review; not professional certification.Updated October 7, 2026Read the publication standard

Inputs used by this calculator

Gas Mileage Calculator uses the fields below. The starting values reproduce the page example; replace them with values from the same units and time period before using the result.

Field-by-field reference for Gas Mileage Calculator.
InputStarting exampleAccepted valueHow it is used
Input unitsMiles and US gallonsMiles and US gallons · Kilometers and litersSelects the unit or conversion path used by Gas Mileage Calculator.
Distance traveled3000 to 1000000000000Supplies the distance traveled quantity used by the published equation or result breakdown.
Fuel used100.000001 to 1000000000000Supplies the fuel used quantity used by the published equation or result breakdown.
Gas Mileage Calculator reasoning pathDivide distance traveled by fuel consumed using the selected distance and gallon or liter conventions. Fuel economy describes the trip measurement; fuel consumption per distance is its reciprocal under compatible units.1Stated inputs2Defined relationship3Interpreted result
Gas Mileage Calculator reasoning pathDivide distance traveled by fuel consumed using the selected distance and gallon or liter conventions. Fuel economy describes the trip measurement; fuel consumption per distance is its reciprocal under compatible units.

Inputs and measurement conventions

The quantities used on this page are Input units, Distance traveled, Fuel used. Start with values for the same situation and read the units attached to each field. The field reference below shows supported choices and numerical limits.

US and Imperial gallons differ. Partial fills or distance errors can distort economy more than display rounding.

Method and equation

Divide distance traveled by fuel consumed using the selected distance and gallon or liter conventions.

Gas Mileage Calculator uses the following stated relationship: mpg=miles/gallons; L/100 km=100×liters/kilometers. Its assumptions determine which question the answer can resolve.

mpg=miles/gallons; L/100 km=100×liters/kilometers

Worked calculation with the starting values

Input units: Miles and US gallons; Distance traveled: 300; Fuel used: 10. These starting values give 30 miles per US gallon. The calculation breakdown is Miles per US gallon: 30; Kilometers per liter: 12.75431122; Liters per 100 km: 7.840486111.

300 miles on 10 US gallons equals 30 mpg, about 7.84 L/100 km.

Reading the answer

Fuel economy describes the trip measurement; fuel consumption per distance is its reciprocal under compatible units.

Miles per US gallon: 30; Kilometers per liter: 12.75431122; Liters per 100 km: 7.840486111. These intermediate quantities make the stated Gas Mileage Calculator model inspectable; they should be read together with the main answer rather than treated as independent guarantees.

Common errors and model boundaries

US and Imperial gallons differ. Partial fills or distance errors can distort economy more than display rounding.

Fill to the same pump shutoff point over multiple tanks for a more stable estimate; dashboard displays can differ.

Independent verification and next decision

Track multiple full-to-full refills and total distance under consistent measuring conditions instead of relying on a single partial tank.

For the Gas Mileage Calculator method, compare mpg=miles/gallons; L/100 km=100×liters/kilometers with the starting inputs and the calculation table. The linked U.S. Department of Energy: fuel economy and FuelEconomy.gov (DOE and EPA) references identify the relevant definitions, conventions or domain limitations. Retain intermediate precision when comparing a manually worked answer.

Gas Mileage Calculator worked-example ledger

Illustrative starting values and resulting quantities; editable assumptions are not live data or personal recommendations.
QuantityExample valueRole
Input unitsMiles and US gallonsEntered assumption
Distance traveled300Entered assumption
Fuel used10Entered assumption
Main answer30 miles per US gallonCalculated from the starting inputs
Miles per US gallon30Intermediate or contextual output
Kilometers per liter12.75431122Intermediate or contextual output
Liters per 100 km7.840486111Intermediate or contextual output

Frequently asked questions

How can I obtain a better real-world estimate?

Track multiple full-to-full refills and total distance under consistent measuring conditions instead of relying on a single partial tank.

Which relationship does the Gas Mileage Calculator use?

Divide distance traveled by fuel consumed using the selected distance and gallon or liter conventions. The displayed relationship is mpg=miles/gallons; L/100 km=100×liters/kilometers.

What do the starting values produce in the Gas Mileage Calculator?

Input units: Miles and US gallons; Distance traveled: 300; Fuel used: 10. These starting values give 30 miles per US gallon. The calculation breakdown is Miles per US gallon: 30; Kilometers per liter: 12.75431122; Liters per 100 km: 7.840486111.

How should I interpret this Gas Mileage Calculator answer?

Fuel economy describes the trip measurement; fuel consumption per distance is its reciprocal under compatible units.

Which input mistake most affects the Gas Mileage Calculator?

US and Imperial gallons differ. Partial fills or distance errors can distort economy more than display rounding.

What is outside this Gas Mileage Calculator model?

Fill to the same pump shutoff point over multiple tanks for a more stable estimate; dashboard displays can differ.

What to keep in mind

Fill to the same pump shutoff point over multiple tanks for a more stable estimate; dashboard displays can differ.

Results are rounded for display in US format, with money in dollars and cents; CSV exports keep full calculation precision. This is a calculation summary, not an official certificate.

Sources and references

Manage privacy choices