MPG Calculator

350 miles on 12.5 gallons is 28 MPG, costing about 13 cents a mile and equal to 8.4 liters per 100 kilometers. Track it over time to spot problems: a sudden drop can mean low tire pressure, a dragging brake or an engine fault. Compare against the EPA rating, and remember that real efficiency runs a little below the label in most driving.

Highway speeds above 65 mph cost noticeably more fuel.

MPG Calculator: inputs

Calculated result
Miles per gallon28
Fuel cost per mile$0.13
Liters per 100 km8.4

MPG Calculator: Miles driven sensitivity

MPG Calculator: Miles driven and Miles per gallon5 calculations vary the “Miles driven” input while holding the other entered inputs constant.28022.431525.23502838530.842033.6

Enter the miles driven since the last fill, the gallons added at the next fill-up and the fuel price per gallon. Fill the tank to the same point each time, such as the pump's first click-off, and reset the trip meter at each fill. One tank is a rough number, so average several.

The tool also reports the fuel cost per mile and the liters per 100 kilometers used outside the United States.

MPG: worked example

Miles driven350
Gallons of fuel used12.5
Fuel price per gallon$3.50
Miles per gallon28
Fuel cost per mile$0.13
Liters per 100 km8.4

MPG: changing Miles driven

Miles drivenMiles per gallonFuel cost per mileLiters per 100 km
28022.4$0.1610.5
31525.2$0.149.3
350 (example)28$0.138.4
38530.8$0.117.6
42033.6$0.107

MPG: compare input ranges

InputTested fromToMiles per gallon: low inputMiles per gallon: high inputSwing
Gallons of fuel used111431.8256.8 (24%)
Miles driven31538525.230.85.6 (20%)
Fuel price per gallon$3.15$3.8528280

MPG: individual input comparisons

InputValueMiles per gallonFuel cost per mileLiters per 100 km
Miles driven28022.4$0.1610.5
31525.2$0.149.3
35028$0.138.4
38530.8$0.117.6
42033.6$0.107
Gallons of fuel used1035$0.106.7
1131.8$0.117.4
1326.9$0.138.7
1425$0.149.4
1523.3$0.1510.1
Fuel price per gallon$2.8028$0.108.4
$3.1528$0.118.4
$3.5028$0.138.4
$3.8528$0.148.4
$4.2028$0.158.4

MPG: combined input changes

Miles driven / Gallons of fuel used101315
2802821.518.7
31531.524.221
3503526.923.3
38538.529.625.7
4204232.328

MPG: which assumptions move the result?

MPG: Miles per gallon as Gallons of fuel used changesMiles per gallon starts at 35. Moving Gallons of fuel used from 10 to 15 changes it to 23.3, with Miles driven 350; Fuel price per gallon $3.50 kept fixed.10351131.81326.914251523.3
Chart quantityDisplayed settings
Gallons of fuel used10 → 15
Miles per gallon35 → 23.3
Miles driven350
Fuel price per gallon$3.50
MPG: Miles per gallon as Miles driven changesMiles per gallon starts at 22.4. Moving Miles driven from 280 to 420 changes it to 33.6, with Gallons of fuel used 12.5; Fuel price per gallon $3.50 kept fixed.28022.431525.23502838530.842033.6
Chart quantityDisplayed settings
Miles driven280 → 420
Miles per gallon22.4 → 33.6
Gallons of fuel used12.5
Fuel price per gallon$3.50

MPG: values and definitions

Quantity and definitionValue used
Miles driven350
Gallons of fuel used — Gallons added at the fill-up that follows the miles driven.12.5
Fuel price per gallon$3.50
Miles per gallon28
Fuel cost per mile$0.13
Liters per 100 km8.4

MPG: half and double Gallons of fuel used

Gallons of fuel usedMiles per gallon
6.356
12.528
2514

Tank-to-tank figures vary with the pump shutoff and temperature, and the car's own display can read a few percent high. Short trips, cold weather, towing, roof racks and aggressive driving lower efficiency. MPG is not a linear measure of fuel use, so a gain from 15 to 20 saves more fuel than a gain from 30 to 35.

MPG: formula

MPG = miles driven ÷ gallons used; cost per mile = gallons × price ÷ miles; L/100 km = 235.215 ÷ MPG

FuelEconomy.gov: U.S. Department of Energy and EPA

Common error: Trusting one tank. Weather, traffic and a trip mix all move mileage, so average three or four fill-ups before comparing with the sticker.

Energy & Utilities calculators: Battery Runtime Calculator, Solar Panel Output Calculator, Solar Payback Calculator, LED Bulb Savings Calculator, Generator Size Calculator, Electricity Cost Calculator.

Real mileage comes from one full tank to the next, not from a single reading on the dash. Divide the miles driven by the gallons it took to refill, and 350 miles on 12.5 gallons is exactly 28 miles per gallon. Cost per mile converts that into money, and the liters per 100 kilometers figure lets you compare with the metric numbers on foreign specs.

Fill to the same click of the pump each time. Uneven fill-ups swing a single tank's result by several miles per gallon.

Compare with electric costs on the EV charging cost calculator, estimate a trip on the speed, distance and time page and see running costs on the car loan and lease pages. The fuel cost and unit converters change gallons and liters.

How do I calculate miles per gallon?

Divide the miles driven by the gallons of fuel used, measured from one fill-up to the next.

What is 28 MPG in liters per 100 km?

Divide 235.215 by the MPG. So 28 MPG is about 8.4 liters per 100 kilometers.

Why is my real MPG lower than the sticker?

Speed, weather, short trips, load and driving style all reduce economy below the test conditions used for the rating.