Quick answer: gas mileage (MPG) = miles driven ÷ gallons of fuel used. If you drove 320 miles and it took 11.2 gallons to refill the tank, your car averaged 28.6 MPG. The calculator below does this for you in US gallons, UK MPG or km per litre, and also works out trip fuel costs and how much two cars differ per year.
Gas Mileage (MPG) Calculator
Results update as you type. Calculations run in your browser.
UnitsCalculateEnter your numbers above to see the result.
How to use the gas mileage calculator
- Pick your units. “Miles & US gallons” for the US, “Miles & litres (UK MPG)” for the UK (you buy fuel in litres but quote MPG in imperial gallons), or “Km & litres” for most other countries.
- Choose what to calculate. Fuel economy gives your real MPG from one tank. Trip fuel cost estimates what a journey will cost. Compare 2 cars shows the yearly fuel cost difference between two vehicles.
- Enter your numbers. The result updates as you type. If you do not know the distance, switch to odometer readings and enter the mileage at your last fill-up and now.
- Add the fuel price (optional in the first mode) to see your cost per mile or per kilometre.
The gas mileage formula
Fuel economy is distance divided by fuel. The only thing that changes between countries is the units:
- MPG (US) = miles ÷ US gallons
- MPG (UK) = miles ÷ imperial gallons (1 imperial gallon = 4.546 litres)
- km/L = kilometres ÷ litres
- L/100 km = litres ÷ kilometres × 100 (lower is better)
To convert between them: L/100 km = 235.21 ÷ MPG (US), and MPG (UK) = MPG (US) × 1.201. A UK MPG figure always looks about 20% higher than the same car’s US MPG, because an imperial gallon is bigger than a US gallon.
Worked examples
Example 1: US driver, one tank
You reset the trip meter at a fill-up, drive 320 miles, then refill with 11.2 gallons. 320 ÷ 11.2 = 28.6 MPG, which is 8.23 L/100 km. At $3.25 a gallon that tank cost $36.40, or about 11 cents per mile.
Example 2: UK driver, litres at the pump
You drive 380 miles and refill with 42 litres. 42 litres is 42 ÷ 4.546 = 9.24 imperial gallons, so 380 ÷ 9.24 = 41.1 MPG (UK). That is the figure to compare with UK car reviews and the official WLTP numbers.
Example 3: Metric, km and litres
You drive 520 km on 38 litres. 520 ÷ 38 = 13.68 km/L, and 38 ÷ 520 × 100 = 7.31 L/100 km. In India, mileage is usually quoted in km/L; in Europe and Australia it is usually L/100 km.
MPG to L/100 km conversion table
| MPG (US) | L/100 km | MPG (UK) | km/L |
|---|---|---|---|
| 15 | 15.7 | 18.0 | 6.4 |
| 20 | 11.8 | 24.0 | 8.5 |
| 25 | 9.4 | 30.0 | 10.6 |
| 30 | 7.8 | 36.0 | 12.8 |
| 35 | 6.7 | 42.0 | 14.9 |
| 40 | 5.9 | 48.0 | 17.0 |
| 50 | 4.7 | 60.0 | 21.3 |
How to measure your real MPG accurately
The dashboard MPG readout is an estimate and is often a little optimistic. The fill-up method gives your true figure:
- Fill the tank until the pump clicks off, and reset the trip meter (or note the odometer).
- Drive normally until the tank is at least half empty. A longer stretch gives a more accurate average.
- Fill up again at the same pump if you can, letting it click off once. Do not top off.
- Divide the miles on the trip meter by the gallons (or litres) you just added.
Repeat over two or three tanks and average the results; one tank can be skewed by a road trip, traffic or cold weather.
What counts as good gas mileage?
The calculator labels results as a rough guide for a petrol car in US MPG: under 20 is low (large trucks and SUVs), 20–30 is average, 30–40 is good (efficient sedans and small cars) and 40+ is excellent (most hybrids). Compare your result with your own car’s official rating rather than other vehicles: a pickup at 22 MPG may be doing well, while a compact car at 22 MPG suggests a problem. Our guide to good gas mileage covers typical figures by vehicle type.
Why your mileage drops
- Speed. Air resistance grows quickly with speed, so most cars use noticeably more fuel per mile at highway speeds above about 50–60 mph.
- Hard acceleration and braking. Smooth driving uses less fuel than repeated sprints between lights.
- Under-inflated tyres. Low pressure increases rolling resistance. Check pressures monthly against the sticker in the door frame.
- Short trips and cold weather. An engine uses more fuel until it warms up, so lots of short winter journeys pull the average down.
- Extra weight and roof racks. Carrying unnecessary load, or an empty roof box, costs fuel.
- Idling and air conditioning. Both burn fuel while adding no distance.
A sudden drop of 10% or more with no change in driving can point to a mechanical issue, such as a dragging brake or a faulty sensor, and is worth getting checked. The US government’s fueleconomy.gov lists official ratings for US vehicles if you want to compare.
Trip cost and comparing two cars
Trip cost = distance ÷ fuel economy × fuel price. A 450-mile drive in a 28 MPG car uses 16.07 gallons; at $3.25 that is $52.23, or $26.12 each if two people split it.
For buying decisions, the yearly difference matters more than the MPG gap. At 12,000 miles a year and $3.25 a gallon, a 24 MPG car costs $1,625 a year in fuel and a 40 MPG car costs $975: a $650 a year difference, or $3,250 over five years. Note that going from 24 to 40 MPG saves far more than going from 40 to 56, because fuel used falls off as MPG rises.
Frequently asked questions
How do I calculate gas mileage?
Divide the miles you drove by the gallons of fuel you used. Fill the tank, reset the trip meter, drive until you need fuel, refill, then divide the trip miles by the gallons added.
How do I convert MPG to L/100 km?
Divide 235.21 by the US MPG figure. 30 MPG is 235.21 ÷ 30 = 7.8 L/100 km. For UK MPG, divide 282.48 by the UK figure instead.
Why is UK MPG higher than US MPG for the same car?
A UK (imperial) gallon is 4.546 litres and a US gallon is 3.785 litres. The car goes further on the larger gallon, so its UK MPG is about 1.2 times its US MPG.
Can I calculate MPG from odometer readings?
Yes. Subtract the odometer reading at your last fill-up from the current reading to get the distance, then divide by the fuel added. The calculator has an odometer option that does the subtraction for you.
Is my car’s dashboard MPG accurate?
It is a useful estimate but often reads a few percent higher than reality. Checking with the fill-up method over two or three tanks gives your true figure.