MPG Calculator
- Economy = distance ÷ fuel = 30.00 miles per US gallon — where higher is better.
- The two systems are reciprocals in disguise: mpg (US) = 235.215 ÷ (L/100 km), so 7.84 L/100 km is the same performance as 30.00 mpg.
- In kilometres per litre it is 12.75 km/L, and because an Imperial gallon is larger, the same driving scores 36.03 mpg on the UK scale — never compare mpg figures across the Atlantic directly.
Our mpg calculator helps you find your vehicle's fuel efficiency in miles per gallon. To use it, you simply enter the miles you drove and the gallons you used, and the calculator returns your MPG. Because fuel economy is measured differently around the world, the calculator also converts your result. For example, if you drive 300 miles on 10 US gallons, the calculator shows 30.00 mpg. It converts this same consumption to 7.84 L/100 km and 36.03 UK mpg, and it shows a fuel cost of $0.125 per mile at $3.75 a gallon. You can also calculate from metric inputs: 250 km on 18 litres gives 30.24 US mpg, while 420 miles on 42 litres gives 38.52 US mpg and 6.11 L/100 km.
The calculator uses the standard formula MPG = miles driven ÷ gallons used. This direct method is the accepted way to measure fuel economy in the US. It is important to note that UK gallons are about 20% larger than US gallons, so the same car shows a higher mpg figure in the UK — 30 US mpg equals 36.03 UK mpg. Most of the world outside the US and UK uses litres per 100 km instead, which runs backwards to intuition: lower is better. The same consumption in L/100 km equals 235.215 ÷ MPG when using US gallons. This page shows the formula, step-by-step workings, worked examples and sources so you can verify every result yourself.
Worked examples
A typical family car
Primary result: 30.00 mpg — 7.84 L/100 km in metric terms. (Miles & US gallons · 300 · 10)
| Fuel economy (US mpg) | 30.00 |
| Consumption (L/100 km) | 7.84 |
| Kilometres per litre | 12.75 |
| Fuel economy (UK mpg) | 36.03 |
The same car, metric trip
Primary result: 30.24 mpg from 7.78 L/100 km — the two systems agree. (Kilometres & litres · 450 · 35)
| Fuel economy (US mpg) | 30.24 |
| Consumption (L/100 km) | 7.78 |
| Kilometres per litre | 12.86 |
| Fuel economy (UK mpg) | 36.32 |
An efficient highway run
Primary result: 38.52 mpg. (Miles & US gallons · 520 · 13.5)
| Fuel economy (US mpg) | 38.52 |
| Consumption (L/100 km) | 6.11 |
| Kilometres per litre | 16.38 |
| Fuel economy (UK mpg) | 46.26 |
How MPG is calculated
To find your fuel economy with the fill-up method, start with a full tank and reset your trip odometer. Drive normally until it is time to refuel. At the pump, fill the tank all the way again and note the exact number of gallons you put in. Then divide the miles on your trip odometer by the gallons you just purchased. That result is your miles per gallon. The formula is straightforward: MPG = miles driven ÷ gallons used. Any mpg calculator you find online is doing this same math behind the scenes.
Here is a concrete example. If you drove 300 miles and then added 10 US gallons to refill the tank, your fuel economy is 300 ÷ 10, or 30.00 mpg. At a gas price of $3.75 a gallon, that works out to a fuel cost of $0.125 per mile. The same level of consumption converts to 7.84 L/100 km and 36.03 UK mpg. Those conversions matter because not everyone measures fuel the same way you do.
UK gallons are about 20% larger than US gallons, so the same car shows a higher mpg figure in the UK. That is why 30 US mpg equals 36.03 UK mpg even though the actual fuel burned is identical. Most of the world outside the US and UK does not use mpg at all. Instead, they use litres per 100 km, which runs backwards to intuition: lower is better. The conversion factor is fixed, so 235.215 ÷ MPG gives you litres per 100 km when you are working with US gallons.
You can also calculate fuel economy starting from metric measurements. If you drive 250 km on 18 litres, that is 7.20 L/100 km by definition, which converts to 30.24 US mpg. Going the other direction, 420 miles on 42 litres works out to 38.52 US mpg and 6.11 L/100 km. Whether you start with miles and gallons or kilometres and litres, the underlying relationship between distance and fuel volume stays the same. Only the units change.
Worked examples
The table below shows three verified trips that demonstrate how an mpg calculator handles different input units. Each row converts the raw distance and fuel figures into miles per gallon (US), miles per gallon (UK), and litres per 100 km so you can compare results directly. The formula behind every row is MPG = miles driven ÷ gallons used, and the same consumption expressed in metric units equals 235.215 ÷ MPG in litres per 100 km when using US gallons.
The first trip is a straightforward miles and gallons case: 300 miles on 10 US gallons gives 30.00 mpg. Converting that result yields 7.84 L/100 km and 36.03 UK mpg. At a fuel price of $3.75 a gallon, the cost works out to $0.125 per mile. The second trip starts in metric units: 250 km on 18 litres is 7.20 L/100 km by definition, which converts to 30.24 US mpg. The third trip is a mixed case, combining miles with litres: 420 miles on 42 litres converts to 38.52 US mpg and 6.11 L/100 km.
UK gallons are about 20% larger than US gallons, so the same car shows a higher mpg figure in the UK — 30 US mpg equals 36.03 UK mpg. That is why the UK mpg column always reads higher than the US mpg column for the same trip. Keep this difference in mind when comparing numbers from sources that do not specify which gallon they use.
L/100 km runs backwards to intuition: lower is better, and it is the standard across most of the world outside the US and UK. A car rated at 7.84 L/100 km uses more fuel than one rated at 6.11 L/100 km, even though the mpg numbers move in the opposite direction. The table lists both units side by side so you can check conversions without doing the arithmetic yourself.
| Trip inputs | US mpg | UK mpg | L/100 km | Cost per mile |
|---|---|---|---|---|
| 300 mi / 10 US gal | 30.00 | 36.03 | 7.84 | $0.125 at $3.75/gal |
| 250 km / 18 L | 30.24 | — | 7.20 | — |
| 420 mi / 42 L | 38.52 | — | 6.11 | — |
US mpg, UK mpg and L/100 km
A US mpg calculator and a UK mpg calculator will not agree on the same car, and the reason comes down to the gallon itself. The US liquid gallon is about 20% smaller than the British imperial gallon, so a vehicle that covers 30 miles on one US gallon covers 30 miles on less than one UK gallon. That means the same trip returns a higher mpg figure when you run the math with UK gallons. Verified: 300 miles on 10 US gallons is 30.00 mpg. Convert those same 10 US gallons to UK gallons and the same trip becomes 36.03 UK mpg. Nothing about the car or the driving changed — only the unit did.
This gallon trap catches people comparing vehicles across borders. A British car advertised at 36 mpg sounds far more efficient than an American car rated at 30 mpg, but the two may be delivering identical fuel consumption. The British figure just uses a larger gallon. Any mpg calculator that lets you switch between US and UK units is really translating between two different definitions of a gallon, not two different levels of efficiency. Always confirm which gallon the tool is using before you compare results.
Most of the world outside the US and UK skips gallons entirely and measures fuel economy in litres per 100 kilometers, written L/100 km. Here the scale runs backwards to what mpg drivers expect: lower is better. A car rated at 6.11 L/100 km uses less fuel than one rated at 7.84 L/100 km, even though the smaller number might look worse at first glance to someone used to mpg, where bigger is better. The conversion is straightforward. The same consumption expressed in US mpg converts to litres per 100 km by dividing 235.215 by the mpg figure. So 30.00 US mpg equals 235.215 ÷ 30.00, which is 7.84 L/100 km.
Working examples make the relationship clearer. Verified: 250 km on 18 litres is 30.24 US mpg, which is 7.20 L/100 km by definition. Verified: 420 miles on 42 litres is 38.52 US mpg, which works out to 6.11 L/100 km. Notice how the higher mpg figure pairs with the lower L/100 km figure — the two scales move in opposite directions. When a car improves from 7.84 L/100 km down to 6.11 L/100 km, its US mpg rises from 30.00 to 38.52. Understanding this inverse relationship helps you read fuel economy labels from any region without confusion.
Cost per mile and trip cost
An mpg calculator does more than report fuel economy — it translates that economy into the dollars and cents that belong in a budget. The link between miles per gallon and cost per mile is straightforward: once you know how far a gallon takes you, you can divide the price of that gallon by the same distance. Drive 300 miles on 10 US gallons and your car returns 30.00 mpg. At $3.75 a gallon, each mile costs $0.125 — the figure you would multiply by any trip length to estimate what you will spend.
That $0.125-per-mile number turns trip planning into simple multiplication. A 300-mile journey at 30.00 mpg and $3.75 a gallon costs $37.50 in fuel, arrived at by multiplying 300 miles by $0.125 per mile. The same method scales up or down: halve the distance and the cost halves; double the fuel price and the cost doubles. Keeping the per-mile figure handy lets you compare the cost of different routes or vehicles without recalculating from scratch each time.
Fuel price is the variable that moves cost per mile most sharply, so it pays to update the number when local prices change. At $3.75 a gallon the 30.00-mpg car costs $0.125 per mile, but raise the price to $4.50 and the same car costs $0.15 per mile. Over a 300-mile trip that is the difference between $37.50 and $45.00 — enough to matter in a weekly or monthly budget. The underlying economy stays at 30.00 mpg, which also equals 7.84 L/100 km, but the budget impact shifts with every cent at the pump.
Drivers who switch between US and UK figures should note one wrinkle before comparing costs. UK gallons are about 20% larger than US gallons, so the same car shows a higher mpg figure in the UK — 30 US mpg is 36.03 UK mpg. The cost-per-mile math, however, depends on the gallon size used in the price, so a US gallon at $3.75 and a UK gallon at an equivalent price will not produce identical per-mile costs. L/100 km, the standard across most of the world outside the US and UK, sidesteps this by measuring consumption directly: lower is better, and it runs backwards to the intuition drivers have built around mpg.
- 30.00 mpg at $3.75 a gallon = $0.125 per mile
- 300 miles at $0.125 per mile = $37.50 in fuel
- At $4.50 a gallon, the same 30.00 mpg car costs $0.15 per mile — $45.00 for 300 miles
- 30 US mpg = 36.03 UK mpg because UK gallons are about 20% larger
- 30.00 mpg = 7.84 L/100 km, the standard measure in most of the world outside the US and UK
Why your real MPG differs from the sticker
The MPG number on a car's window sticker comes from controlled laboratory testing, not from real-world driving. On the road, several factors pull your actual fuel economy down. Driving at highway speeds above 55 mph increases aerodynamic drag sharply, so sustained 75 mph cruising can cost you several mpg compared with sticking near the speed limit. Carrying heavy loads, towing, or packing a rooftop box adds weight and drag. Hilly or mountainous terrain forces the engine to work harder on climbs, and stop-and-go traffic in cities prevents the engine from settling into its most efficient range. Very hot or cold weather also hurts efficiency: air conditioning draws power in summer, and cold engines run rich until they warm up. Short trips are especially punishing because the engine never reaches full operating temperature, so the first few miles of every trip burn more fuel than the miles that follow.
Because of these variables, the only way to know your true fuel economy is to measure it yourself. The formula is straightforward: MPG = miles driven ÷ gallons used. Start with a full tank, reset your trip odometer, and drive normally until you refill. At the pump, note the exact gallons purchased and the miles shown on the trip odometer. Divide miles by gallons to get your real mpg. One fill gives you a snapshot, but a single tank can be skewed by unusual driving or a partial fill. To get an honest average, repeat the process over at least three to five consecutive fills and track the total miles and total gallons across all of them. Divide the total miles by the total gallons for a figure you can trust. A reliable mpg calculator does this math instantly and removes the risk of arithmetic errors.
If you track fuel in metric units, the same logic applies but the result is expressed differently. For example, 250 km on 18 litres is 7.20 L/100 km by definition, which equals 30.24 US mpg. The L/100 km measure runs backwards to intuition: lower is better, and it is the standard across most of the world outside the US and UK. You can convert between systems with a fixed factor. The same consumption is 235.215 ÷ MPG in litres per 100 km when using US gallons. UK gallons are about 20% larger than US gallons, so the same car shows a higher mpg figure in the UK — 30 US mpg is 36.03 UK mpg. A good mpg calculator handles these conversions so you can compare vehicles or trips across regions without confusion.
- Speed: aerodynamic drag rises sharply above 55 mph, cutting mpg at highway speeds.
- Load: extra weight, passengers, cargo, or towing forces the engine to work harder.
- Terrain: hills and mountains burn more fuel on climbs than you recover on descents.
- Temperature: cold starts and winter weather increase fuel use; summer air conditioning also draws power.
- Short trips: engines run rich until warmed up, so trips under 5 miles are the least efficient.
MPG vs MPGe for electric cars
If you have shopped for a hybrid or electric car, you have probably seen the term MPGe. The lowercase e stands for equivalent, and it exists because electricity is not measured in gallons. To compare electric vehicles with gasoline cars on a familiar scale, the EPA converts energy use into a gasoline equivalent. One gallon of gasoline contains about 33.7 kilowatt-hours of electrical energy, so MPGe tells you how far a car would travel on 33.7 kWh of electricity. A rating of 100 MPGe means the electric car travels 100 miles on that amount of electrical energy.
This conversion is useful for comparing the efficiency of electric drivetrains against gasoline ones, but it does not tell you what you will pay at a charging station or a fuel pump. Electricity prices vary widely by region, time of day, and charging speed, just as gasoline prices fluctuate. The underlying formula for liquid fuel remains straightforward: MPG = miles driven ÷ gallons used. For example, 300 miles on 10 US gallons is 30.00 mpg. The same consumption expressed in metric terms is 235.215 ÷ MPG in litres per 100 km, which works out to 7.84 L/100 km for that 30 mpg figure.
Because this mpg calculator is built for liquid fuel, it does not attempt to convert kilowatt-hours into a gasoline equivalent. Electric vehicles draw from batteries, not from a fuel tank measured in gallons, so lumping them into the same calculation would obscure more than it clarifies. The tool is designed for gasoline, diesel, or other liquid fuels where you can record miles driven and gallons purchased at a pump. If you drive a plug-in hybrid, you can still use it for the gasoline portion of your driving, but the electric-only miles fall outside its scope.
It is also worth noting that gallon definitions differ, which matters when you compare figures across borders. UK gallons are about 20% larger than US gallons, so the same car shows a higher mpg figure in the UK — 30 US mpg is 36.03 UK mpg. Most of the world outside the US and UK uses L/100 km instead, where lower is better, running backwards to intuition. Whether you are tracking 250 km on 18 litres, which is 30.24 US mpg, or 420 miles on 42 litres, which is 38.52 US mpg, this calculator keeps the focus on liquid fuel consumed.
FAQs
How do I calculate my car's MPG?
Divide miles driven by gallons used at the next fill-up. For example, 300 miles on 10 gallons is 30.00 mpg. Fill your tank, reset the trip meter, drive until the next fill-up, then divide the miles shown by the gallons needed to refill.
What is 30 mpg in L/100 km?
30 mpg equals 7.84 L/100 km. The conversion is 235.215 ÷ mpg for US gallons. This means a car achieving 30 miles per gallon consumes fuel at a rate of 7.84 liters per 100 kilometers traveled.
Why is UK mpg higher than US mpg?
The imperial gallon is about 20% bigger than the US gallon, so 30 US mpg reads as 36.03 UK mpg for the same consumption. This difference comes from the larger volume of the imperial gallon, which means more miles per gallon.
How much does fuel cost per mile?
Price ÷ mpg gives cost per mile. At $3.75 a gallon and 30 mpg, that is $0.125 per mile, or $37.50 for a 300-mile trip. Simply divide the per-gallon fuel price by your vehicle's mpg to find the cost of each mile driven.
Is higher L/100 km better or worse?
Worse — it is consumption, not distance per fuel. A lower number means less fuel used. For example, 6.11 L/100 km (38.52 mpg) beats 7.84 L/100 km (30 mpg) because the car uses fewer liters to travel the same distance.
How many mpg is 18 litres over 250 km?
30.24 US mpg (7.20 L/100 km), computed from metric units directly. This means a vehicle using 18 liters of fuel to travel 250 kilometers achieves an efficiency of 30.24 miles per gallon under US gallon measurements.