BedrockCalculator
Figures cited to primary sourcesWritten by Aapt Dubey, MBA (Marketing & Banking), ISB 4 primary sourcesLast updated

Miles per Gallon Calculator (MPG and L/100 km)

The Miles per Gallon Calculator works out your real mpg from miles driven and gallons used, with litres per 100 km, km per litre, gallons per 100 miles and the fuel cost per mile.

Quick Answer: 300 miles on 10 US gallons is 30 mpg, the same as 7.84 litres per hundred kilometres. Divide the miles you drove by the gallons it took to fill the tank back up.

Assumptions

Computed

Preset scenarios

Fuel economy
30 mpg
Litres per 100 km
7.84 L/100 km
Kilometres per litre
12.75 km/L
Gallons per 100 miles
3.33 gal/100 mi
Fuel cost of this distance
$30.97
Fuel cost per mile
10.3 cents
Fuel cost per 100 km
$6.41
Distance in miles
300 mi
Fuel in US gallons
10 gal

MPG to litres per 100 km

Download CSV
Each row is this calculator run on the mpg in the first column (that many miles on one US gallon). Every figure is rounded to two decimal places; the cost column uses the default price of $3.097 a gallon.
Miles per gallon (mpg)Litres per 100 km (L/100 km)Km per litre (km/L)Gallons per 100 miles (gal)Fuel cost per mile (cents)
1023.524.251031
1219.65.18.3325.8
1515.686.386.6720.6
1813.077.655.5617.2
2011.768.5515.5
2210.699.354.5514.1
259.4110.63412.4
288.411.93.5711.1
307.8412.753.3310.3
327.3513.63.139.7
356.7214.882.868.8
405.8817.012.57.7
455.2319.132.226.9
504.721.2626.2
554.2823.381.825.6
603.9225.511.675.2

This table and its CSV are free to reuse with a link to this page, CC BY 4.0.

Miles per Gallon Calculator (MPG and L/100 km): Fuel economy 30 mpg (Distance driven: 300; Distance unit: Miles; Fuel used: 10; Fuel unit: US gallons; Fuel price per US gallon: 3.097).

Save or share this result

A one-page summary of this calculator's default example, drawn from the same calculation as the result above.

The infographic is free to reuse with a link to this page, CC BY 4.0.

Illustration of a tiny blue car on a long country road winding through green hills toward an evening sun
Quick Answer: 300 miles on 10 US gallons is 30 mpg, the same as 7.84 litres per hundred kilometres. Divide the miles you drove by the gallons it took to fill the tank back up.

What does this calculator do?

This miles per gallon calculator works out the fuel economy you actually got from a tank of fuel. You give it the distance you drove and the fuel it took to refill, in miles or kilometres and in US gallons or litres, and it returns miles per gallon.

It also gives the three other ways the same figure is quoted: litres per 100 kilometres, kilometres per litre and gallons per 100 miles. Add the price you paid per gallon and it also shows what the fuel for that distance cost, per mile and per 100 kilometres.

The figure it produces is your real-world mpg, measured over your own driving. That is usually different from the number on the window sticker, which comes from standard laboratory test cycles. Measuring it yourself is the only way to know what your car does on your roads, at your speeds, with your load.

The conversions between units use exact definitions. The US gallon is 231 cubic inches, which is exactly 3.785411784 litres, and the international mile is exactly 1.609344 kilometres. Gallons here are always US gallons. The UK gallon is a larger unit and is not offered, so a British mpg figure will not match these results.

How to Use the Miles per Gallon Calculator

The fill-up method gives the most reliable answer:

  1. Fill the tank until the pump clicks off, and reset the trip odometer (or note the main odometer reading).
  2. Drive normally until you need fuel again.
  3. Fill the tank again, stopping at the first click as before. Note the gallons or litres the pump shows and the distance on the trip odometer.
  4. Enter the distance and the fuel, choose the units, and read the result.

The fuel you add at the second fill-up is the fuel the car used to cover that distance, because the tank started and ended at the same level. That is why both fill-ups need to go to the same point. FuelEconomy.gov's own tracking tool says the same: it needs two consecutive fill-ups where the tank was filled completely, or the estimate will not be accurate.

The presets load three cases: a typical fill-up of 356.2 miles on 13.5 gallons, a metric fill-up of 500 km on 40 litres, and a pickup towing a trailer that covered 240 miles on 16 gallons.

How is this calculated?

  1. Convert the distance. The distance is converted to both miles and kilometres using the exact mile of 1.609344 km.
  1. Convert the fuel. The fuel is converted to both US gallons and litres using the exact US gallon of 3.785411784 litres.
  1. Divide for economy. Miles per gallon is distance over fuel, and kilometres per litre is the same ratio in metric units.

mpg = miles/gallons; km/L = kilometres/litres

  1. Invert for consumption. Litres per 100 km and gallons per 100 miles turn the ratio upside down: fuel per distance instead of distance per fuel.

L/100 km = litres/kilometres × 100; gal/100 mi = gallons/miles × 100

  1. Price the fuel. The trip's fuel cost is the gallons used times the price per gallon. Dividing by the miles gives the cost per mile, and dividing by the kilometres and multiplying by 100 gives the cost per 100 km. When you enter litres, they are converted to gallons before the price is applied.

trip cost = gallons × price per gallon

  1. Round for display. The arithmetic runs at 34 significant digits. Economy figures are rounded to two decimal places, the trip cost and cost per 100 km to the cent, and the cost per mile to a tenth of a cent.

Worked Example

With the default inputs, 300 miles on 10 US gallons:

  1. Miles per gallon: 300 ÷ 10 = 30 mpg.
  2. In metric terms the same trip used 7.84 L/100 km, or covered 12.75 km per litre.
  3. Gallons per 100 miles: 10 ÷ 300 × 100 = 3.33.
  4. At the default price of $3.097 a gallon, the 10 gallons cost $30.97, which is 10.3 cents a mile or $6.41 per 100 km.

A real fill-up rarely lands on round numbers. Driving 356.2 miles and then putting in 13.5 gallons gives 356.2 ÷ 13.5 = 26.39 mpg, or 8.91 L/100 km. The fuel cost $41.81 at the default price, 11.7 cents a mile.

Starting from metric figures, 500 km on 40 litres is 500 ÷ 40 = 12.5 km per litre, or exactly 8 L/100 km. In US terms that is 29.4 mpg, since 500 km is 310.69 miles and 40 litres is 10.567 gallons.

How Do You Convert MPG to Litres per 100 km?

Because one figure is distance per fuel and the other is fuel per distance, you do not multiply by a factor. You divide a constant by the figure. The constant is 100 times the litres in a gallon, divided by the kilometres in a mile, which comes to about 235.21.

So 30 mpg is 7.84 L/100 km, and 7.84 L/100 km is 30 mpg. The same division works in both directions. The table below the calculator lists common values from 10 to 60 mpg.

Why Gallons per 100 Miles Tells You More

Miles per gallon hides how much fuel an improvement actually saves. The EPA calls this the "MPG illusion": the label now shows a consumption figure alongside mpg because equal mpg gains do not save equal amounts of fuel.

The reference table shows it directly. Going from 15 to 20 mpg cuts fuel use from 6.67 to 5 gallons per 100 miles. Going from 40 to 45 mpg cuts it from 2.5 to 2.22 gallons per 100 miles. Both are a 5 mpg gain, but the first saves far more fuel. When you compare two vehicles, compare the gallons per 100 miles or the litres per 100 km, not the mpg.

What does this calculator not account for?

  • UK gallons. Only the US gallon is used. The imperial gallon is a larger unit, so UK mpg figures are higher for the same car and cannot be compared with these.
  • Partial fill-ups. If either fill-up stops short of full, the fuel figure is wrong and so is the result. The calculator cannot tell; it divides what you enter.
  • Missed fill-ups. If you added fuel somewhere in between and did not count it, the distance covers more fuel than you entered and the mpg comes out too high.
  • Odometer error. Odometers and trip meters are not perfectly calibrated, and tyre size changes the reading. Any error passes straight into the result.
  • Electric and plug-in vehicles. Energy measured in kilowatt hours is not converted to an mpg equivalent (MPGe). Enter litres or gallons of liquid fuel only.
  • Running costs beyond fuel. The cost figures cover fuel only: no oil, tyres, maintenance, insurance or depreciation.
  • Price changes during the tank. One price per gallon is applied to all the fuel.

What mistakes do people make with this?

  • Trusting a single tank. One tank can be off by several percent because pumps click off at slightly different levels. Average several fill-ups, adding up the miles and the gallons separately, then divide the totals.
  • Averaging mpg figures. The average of 20 mpg on one tank and 40 mpg on another is not 30 mpg if the tanks covered different distances. Divide total miles by total gallons instead.
  • Using the dashboard estimate. The trip computer's mpg reading is an estimate from fuel injector timing, and it is often optimistic. The fill-up method measures the fuel that went in.
  • Comparing with the window sticker. The EPA rating is a standardised test figure meant for comparing vehicles. Your result reflects your own driving and conditions, and will differ.
  • Mixing up a lower and a better number. For mpg and km per litre, higher is better. For L/100 km and gallons per 100 miles, lower is better.

Frequently Asked Questions

How do I calculate miles per gallon by hand?

Divide the miles driven by the gallons used. If the trip odometer reads 300 and the pump says 10 gallons, that is 300 ÷ 10 = 30 mpg.

What mileage am I really getting if my trip computer says something different?

The fill-up method is the measured figure, so trust it over the dashboard. Enter the distance since the last full tank and the fuel the pump put back in.

What is 30 mpg in litres per 100 km?

30 mpg is 7.84 litres per 100 km. The conversion divides about 235.21 by the mpg figure.

How much does it cost per mile to drive my car?

Enter the price per gallon you paid. At the default $3.097, a car that gets 30 mpg spends 10.3 cents a mile on fuel, and one that gets 15 mpg spends 20.6 cents. For litres, enter the price per US gallon or convert your per-litre price first.

Does towing or a roof box change my mpg?

Yes, and measuring before and after is the way to find out by how much. The towing preset, 240 miles on 16 gallons, comes out at 15 mpg.

Can I use this for a car that runs on diesel?

Yes. The calculation is the same for any liquid fuel measured in gallons or litres. Use your diesel price for the cost figures.

Why does my mpg vary between tanks?

Weather, traffic, speed, tyre pressure, short trips and how full each fill-up got all play a part. Average several tanks for a stable figure.

Sources

Did this calculator answer your question?

How this calculator is tested

This calculator is checked by 7 automated test cases: specific inputs whose correct result is known in advance, and rules the output must always obey. They run on every change to the site. See the testing and corrections policy.

Show the test cases
  • Default: 300 miles on 10 gallons is 30 mpg and 7.84 L/100 km
  • A 356.2 mile, 13.5 gallon fill-up is 26.39 mpg and 8.91 L/100 km
  • 500 km on 40 litres is 8 L/100 km, 12.5 km/L and 29.4 mpg
  • The towing case, 240 miles on 16 gallons, is 15 mpg and 20.6 cents a mile
  • round-trips: the L/100 km of a converted trip gives back its mpg
  • asks for a distance or fuel above zero instead of inventing one, and prices free fuel at $0
  • builds the reference table: 25 mpg is 9.41 L/100 km and 4 gallons per 100 miles

Add This Website as Preferred Source on Google

See Bedrock Calculator first in your Search results & AI Overviews