Smekys
Ad Space

MPG Calculator

Free MPG calculator: compute miles per gallon from your last fill-up, see fuel cost per mile, and convert US MPG to L/100km instantly.

Enter Values

mi

Odometer reading at your last fill-up subtracted from today's reading.

gal

Gallons pumped to fill the tank after that driving period (use the full-tank method).

$/gal

Price per gallon you paid at the pump, used to estimate cost per mile.

Result

Miles per Gallon (MPG)
25.16
Gallons per 100 Miles
3.97
Metric Equivalent (L/100km)
9.35
Fuel Cost per Mile
$0.14
Fuel Cost per 100 Miles
$13.87

Your car's window sticker promises 32 miles per gallon on the highway, but your real-world driving almost never matches it. The only number that matters is the one you measure yourself at the pump. This MPG calculator takes the odometer reading and the gallons you put in on your last fill-up and turns them into your true miles per gallon — plus what every mile actually costs you, in dollars.

Unlike a broad fuel-cost planner that projects monthly or annual bills, this tool stays focused on the fill-up itself: it converts your actual driving into MPG, shows the reverse measure (gallons per 100 miles), gives you the metric equivalent in L/100km, and uses your local fuel price to estimate cost per mile. Adjust the three fields and every figure updates instantly.

How to Use

  1. Fill your tank full. This is the accuracy step. Drive to the station, pump until the nozzle clicks off the first time, and note the odometer reading.
  2. Drive normally. Use the car as you normally would — commuting, errands, highway trips — until the tank is low again.
  3. Fill it up again, to the same click. This time, write down the exact gallons pumped (the pump screen shows it) and the new odometer reading.
  4. Enter Miles Driven — the difference between today's odometer and the one at your first full tank.
  5. Enter Gallons Added at Fill-Up — exactly what the pump dispensed on this second fill-up. Do not add the first tank; you are measuring the fuel actually burned between fills.
  6. Enter Fuel Price — what you paid per gallon. This is optional, but without it you only get MPG, not the cost-per-mile figures.
  7. Read the result card: your MPG (highlighted), gallons per 100 miles, the metric L/100km equivalent, and fuel cost per mile.

For the most reliable number, repeat this process over three or four tanks and average the MPG values. One tank can be skewed by a single long highway run or by a passenger, cargo, or headwind.

The MPG Formula

Miles per gallon is the simplest ratio in automotive math:

MPG = Miles Driven ÷ Gallons Used

Suppose you drive 300 miles and burn 12 gallons: 300 ÷ 12 = 25 MPG. That is the entire calculation. The reason real-world MPG feels harder to pin down is measurement error — most people guess their gallons and never reset the trip odometer, which is why the full-tank-to-full-tank method matters.

Cost per mile is just the inverse of MPG combined with the pump price:

Cost per Mile = Fuel Price per Gallon ÷ MPG

At $3.50 per gallon in a 25-MPG car: $3.50 ÷ 25 = $0.14 per mile. Drive 10,000 miles a year and you are spending about $1,400 on fuel alone.

MPG Is Non-Linear — Why That Matters

Most drivers are surprised to learn that going from 15 MPG to 20 MPG saves far more fuel than going from 40 MPG to 50 MPG, even though both look like a 5-mile jump. Over 10,000 miles:

  • A 15-MPG car burns 667 gallons; a 20-MPG car burns 500 gallons — a saving of 167 gallons.
  • A 40-MPG car burns 250 gallons; a 50-MPG car burns 200 gallons — a saving of 50 gallons.

Improving the MPG of the thirstiest vehicle on your driveway pays back the most money, not squeezing another mile out of the efficient one. Keep this in mind the next time you compare cars.

US MPG vs L/100km

Most of the world quotes fuel economy as liters per 100 kilometers. The conversion is not a simple swap — MPG is miles-per-volume (higher is better) while L/100km is volume-per-distance (lower is better). The standard conversion is:

L/100km = 235.214583 ÷ US MPG

So 25 MPG works out to about 9.4 L/100km, and 40 MPG equals roughly 5.9 L/100km. The result card shows this automatically so you can compare US and European spec sheets directly.

Examples

Example 1 — A normal commuter tank. You fill up at 45,200 miles, drive 312 miles around town, and refill with 12.4 gallons at $3.49. Your MPG is 312 ÷ 12.4 = 25.16 MPG, and fuel cost per mile is $3.49 ÷ 25.16 = $0.139 per mile. Over a typical 12,000-mile year that is about $1,670 in gas.

Example 2 — The highway test. On a road trip you cover 600 highway miles on 17 gallons at $3.29 per gallon. MPG comes to 35.29, cost per mile drops to about $0.093, and the metric equivalent is 6.67 L/100km. Compare this with your city number to see how much stop-and-go traffic costs you.

Example 3 — Comparing two cars. Car A is rated 18 MPG and Car B is rated 28 MPG. Driven 15,000 miles a year at $3.50 per gallon, Car A burns 833 gallons ($2,917) while Car B burns 536 gallons ($1,877). The 10-MPG gap saves over $1,000 per year — a real reason to run your own fill-up numbers before you buy.

FAQ

How do I calculate my car's MPG accurately?

Use the full-tank-to-full-tank method. Fill the tank, note the odometer, drive normally, then refill to the same click and note both the gallons pumped and the new odometer. Subtract the two odometer readings for miles driven, then divide by the gallons just added: MPG = miles ÷ gallons. Average three tanks to smooth out variation.

What counts as good MPG?

For a modern gasoline car, 23–30 MPG combined is average. A compact sedan or hybrid can reach 35–55 MPG, while a truck or large SUV typically manages 15–22 MPG. What matters most is comparing your own measured MPG against the EPA window sticker for your exact vehicle and year — a gap of more than a few MPG can suggest underinflated tires, a clogged air filter, or aggressive driving.

How much does fuel cost per mile?

Divide the price per gallon by your MPG. At $3.50 per gallon in a 25-MPG car, that is $3.50 ÷ 25 = $0.14 per mile. Driving 1,000 miles a month therefore costs roughly $140 in fuel. Raise MPG to 35 and the same trip costs about $100.

Why is my real MPG lower than the window sticker?

EPA lab ratings do not perfectly match real-world driving: they do not fully capture cold weather, winter blends, roof racks, heavy loads, fast acceleration, or speeds above 60 mph. A 10–20% gap between the label and your measured MPG is normal. If your gap is larger, check tire pressure and air filter first.

How do I convert MPG to L/100km?

Divide 235.214583 by your US MPG. For example, 25 MPG converts to 235.214583 ÷ 25 ≈ 9.4 L/100km, and 40 MPG converts to about 5.9 L/100km. Remember that in L/100km a lower number is better, while in MPG a higher number is better — they move in opposite directions.

Does idling or AC affect MPG?

Yes. Air conditioning can reduce MPG by 1–4 mpg in city driving, and idling burns a third of a gallon or more per hour without moving you anywhere. Short trips where the engine never reaches operating temperature also drag the average down. Tracking MPG over full tanks averages these effects out naturally.

Disclaimer

This MPG calculator is provided for informational purposes only and does not constitute automotive, financial, or fuel-economy advice. Results depend entirely on the accuracy of the miles, gallons, and price you enter; actual fuel economy varies with vehicle condition, terrain, weather, fuel grade, and driving style. Always consult your vehicle's official EPA rating and a qualified mechanic for any maintenance questions.

Related Calculators

Disclaimer

Results are estimates for illustration only. Verify important figures independently.