Gas Mileage Calculator Online

Work out MPG, L/100km, and km/L from a trip's distance and fuel used, in your browser. Your figures stay on your device.

The Gas Mileage Calculator runs entirely in your browser. The distance and fuel figures you enter never leave your device and nothing is uploaded to ArrayKit.

Open the Fuel Cost Calculator

About Gas Mileage Calculator

The Gas Mileage Calculator turns a trip's distance and fuel used into three common fuel-economy figures: miles per gallon (MPG), liters per 100 kilometers (L/100km), and kilometers per liter (km/L). Enter distance in miles or kilometers and fuel used in gallons or liters — any combination works, since the calculator converts internally before computing every figure. It is handy for comparing a car's real-world economy against the window sticker, tracking mileage across a road trip logged in mixed units, or converting a spec sheet from one country's units to another. Built for drivers, fleet managers, and shoppers comparing vehicles across regions. Figures are estimates for comparison — actual fuel economy varies with driving conditions, so verify against your vehicle's own trip records before relying on it for budgeting. Everything runs locally in your browser; nothing you type is uploaded.

Features

How to use the Gas Mileage Calculator

  1. Choose your distance unit (miles or kilometers) and enter the trip distance
  2. Choose your fuel unit (gallons or liters) and enter the fuel used
  3. Read MPG, L/100km, and km/L in the results panel
  4. Copy the summary to save or share your fuel-economy figures

Example

Input

300 mi, 10 gal

Output

30 MPG (7.84 L/100km)

300 miles on 10 gallons is 30 MPG, which converts to about 7.84 L/100km.

Common errors & troubleshooting

Frequently asked questions

What does the Gas Mileage Calculator compute?
It converts a trip's distance and fuel used into MPG (miles per gallon), L/100km (liters per 100 kilometers), and km/L (kilometers per liter) all at once, so you can compare figures however they're reported.
Can I mix miles with liters in the Gas Mileage Calculator?
Yes. Distance and fuel each have their own unit toggle, so you can enter miles with liters or kilometers with gallons — the calculator converts everything internally before computing MPG, L/100km, and km/L.
Why does a lower L/100km number mean better fuel economy?
L/100km measures fuel consumed per fixed distance, so a smaller number means less fuel was needed to cover the same 100 km — the opposite direction from MPG and km/L, which increase as economy improves.
Does the Gas Mileage Calculator use US or imperial gallons?
It uses the US gallon (3.785411784 liters). If your numbers come from a country using imperial gallons, convert to liters before entering them for an accurate MPG figure.
Does the Gas Mileage Calculator upload my trip data?
No. The Gas Mileage Calculator runs entirely in your browser. The distance and fuel figures you type never leave your device and are not uploaded to ArrayKit.
How accurate is the MPG figure from this calculator?
The math is exact for the numbers you enter, but real-world fuel economy varies with driving style, terrain, and weather — treat the result as an estimate and verify against your vehicle's own fill-up records before relying on it for budgeting.

Related tools

All ArrayKit tools