MPG Calculator

Work out your car’s gas mileage from distance and fuel used, with L/100 km, km per liter and cost per mile.

Loading calculator...

MPG calculator in short
On this page

How to use the MPG calculator

1

Fill the tank and reset the trip meter

Then drive as usual.

2

Fill up again

Note the gallons or liters it takes and the distance on the trip meter.

3

Enter the distance and fuel used

For example 350 miles and 12.5 gallons.

4

Add the fuel price (optional)

To see your cost per mile or km.

How gas mileage is calculated

Miles per gallon is the distance you drove divided by the fuel you used. Measuring from one full tank to the next gives the most accurate number. In most countries outside the US, fuel economy is shown as liters per 100 km, where lower is better.

Fuel economy formulas

mpg = miles driven ÷ gallons used

L/100 km = liters used ÷ km driven × 100

L/100 km = 235.215 ÷ US mpg

Example 1: 350 miles on 12.5 gallons

At $3.50 a gallon.

  • Gas mileage 28.00 mpg
  • L/100 km 8.40
  • km per liter 11.90
  • UK mpg 33.63
  • Cost per mile $0.125

Example 2: 600 km on 45 liters

Metric units.

  • Fuel consumption 7.50 L/100 km
  • km per liter 13.33
  • US mpg 31.36

Why track your mpg

Spot problems early

A sudden drop can mean a maintenance issue.

Budget fuel costs

Know your real cost per mile.

Compare cars

Check real-world economy against the sticker.

Drive smarter

See how driving style changes mileage.

Related tools

Plan a trip’s fuel budget with the fuel cost calculator, or work out per-mile costs for driving work with the gig driver cost per mile calculator.

MPG calculator FAQ

Divide the miles driven by the gallons used to refill the tank.

Divide 235.215 by the mpg. 28 mpg is about 8.40 L/100 km.

A UK (imperial) gallon is larger, about 4.546 liters versus 3.785.

It depends on the car. Many modern sedans get 30 mpg or more on the highway.

Cold engines, winter fuel blends and heaters all use more fuel.

Yes. It means the car uses less fuel for the same distance.

Embed this calculator on your website

Free to use on any site. Copy the code below and paste it into an HTML block on your page. Please keep the credit link under the calculator.

Show the embed code

Works with WordPress, Wix, Squarespace, Webflow and most site builders that allow HTML. How embedding works.

Estimates, not advice

PureCalculate’s calculators give estimates for planning and education. They aren’t financial, tax or legal advice. Fees and tax rules change, so check the official source before making a decision. Spotted a mistake? Please tell us through the contact page.

Scroll to Top