This guide shows you how to calculate mileage for any trip or vehicle. You’ll enter the distance traveled and the fuel used, and you’ll get your fuel economy in miles per gallon (MPG) or liters per 100 kilometers (L/100km), plus the cost per mile or kilometer if you provide the fuel price. You’ll need the odometer readings or trip distance and the amount of fuel you added.
Formula
The core formula for mileage (fuel economy) is:
MPG = Distance (miles) / Fuel used (gallons)
For metric users, the equivalent is:
L/100km = (Fuel used (liters) / Distance (km)) × 100
To convert between them, use these exact factors:
- 1 US gallon = 3.78541 liters
- 1 mile = 1.60934 kilometers
- MPG × 0.4251 = L/100km (approximately)
- L/100km × 2.352 = MPG (approximately)
In the calculator above, the first output (MPG) is the headline answer. The second output (cost per mile) is the price per mile driven, and the third is the metric consumption figure for those who use liters and kilometers.
An Example
Using the default values: distance = 300 miles, fuel = 12 gallons, price = $3.50 per gallon.
- Calculate MPG: 300 ÷ 12 = 25.00 MPG
- Calculate cost per mile: $3.50 ÷ 25 = $0.14 per mile
- Convert to L/100km: (12 ÷ 300) × 235.215 = 0.04 × 235.215 = 9.41 L/100km
So with those inputs, you get 25 MPG, $0.14 per mile, and 9.41 L/100km.
When to Use This Calculation
Calculate mileage when you want to track your vehicle’s fuel efficiency over time, compare vehicles, plan a road trip budget, or check if your car is performing normally. It’s also useful for expense reports or reimbursements when you drive for work.
Common Mistakes
- Using imperial gallons instead of US gallons: The calculator uses US gallons. If you’re in the UK or Canada, one imperial gallon is about 1.2 US gallons, so adjust your fuel input accordingly.
- Mixing distance units: If you measure distance in kilometers but fuel in gallons (or miles with liters), the result will be wrong. Convert everything to the same unit system first.
- Not filling the tank completely: For accurate results, fill the tank to the same level each time. If you don’t, the fuel used won’t match the distance driven.
- Rounding too early: Round only the final answer, not intermediate values. For example, if your MPG is 25.4, don’t round to 25 before calculating cost per mile.
- Forgetting to include fuel price: If you leave the price at zero, the cost per mile will be zero, which may confuse you. Only use the price field if you need cost data.
Tips
- Use the same gas station and pump: Variations in pump shut-off can affect fuel amount. Consistency helps.
- Track over multiple fill-ups: A single tank can be skewed by traffic, weather, or driving style. Over 3–5 fill-ups, the average is more reliable.
- Reset the trip odometer: After each fill-up, reset your trip odometer to zero to get the exact distance for that tank.
- Check your tire pressure: Underinflated tires can reduce fuel economy by a few percent. Keeping them properly inflated gives you more accurate readings.
- Use the metric output if you’re outside the US: The L/100km figure is the standard in most countries, and it’s easier to compare with official specs.
Troubleshooting
If the calculator shows an error or a negative number: Make sure the distance and fuel are positive numbers. The calculator rejects zero or negative inputs because they are physically impossible.
If your result seems too high or too low: Double-check your units. If you entered kilometers instead of miles, your MPG will be lower than expected. Convert kilometers to miles (divide by 1.60934) or use the L/100km output.
If you get a different MPG than your car’s display: The car’s computer may be optimistic. Manual calculation is usually more accurate because it uses actual fuel dispensed.
If you don’t know the fuel price: Leave the price field at zero. You’ll still get the MPG and L/100km, but the cost per mile will be zero.
Frequently Asked Questions
Q: How do I calculate mileage for a trip if I don’t have a full tank?
A: You need the distance driven and the fuel used. If you didn’t fill up completely, you can’t accurately determine fuel used. Best to start with a full tank and refill at the end.
Q: What’s the difference between MPG and L/100km?
A: MPG (miles per gallon) is a higher-is-better measure. L/100km (liters per 100 kilometers) is a lower-is-better measure. They are inversely related.
Q: Can I use this calculator for electric vehicles?
A: No, this is for fuel-powered vehicles. For EVs, you’d calculate miles per kWh or kWh per 100 miles, which is a different metric.
Q: How do I calculate mileage for reimbursement?
A: Multiply the total miles driven by the reimbursement rate (e.g., $0.655 per mile for 2023 IRS rate). This calculator gives you cost per mile based on fuel price, but not the full IRS rate, which includes maintenance and depreciation.
Q: Why does my MPG vary between city and highway driving?
A: City driving involves more stops and idling, which uses more fuel per mile. Highway driving is more efficient. The calculator gives an average for your driving conditions.
Q: How accurate is the L/100km conversion?
A: The conversion factor 235.215 is exact for US gallons and miles. It’s accurate to several decimal places, so you can trust the result.
Related
Formula used
in d | Distance | miles | 300 | 0 | 100000 in f | Fuel used | gallons | 12 | 0 | 1000 in p | Fuel price per gallon | $ | 3.50 | 0 | 100 out mpg | Fuel economy | MPG | d / f | 2 out cpm | Cost per mile | $/mile | p / (d / f) | 2 out l100 | Fuel consumption | L/100km | (f / d) * 235.215 | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Quantity Calculation Formula: How to Calculate600.00 units
- Pressure Altitude to Density Altitude Formula5,000 ft
- Pressure Altitude Calculation Formula5,000 ft
- Production Schedule Adherence Formula & How to Use It95.0 %
- Pace Calculator: Min/km & Speed Converter5.00 min/km
- Account Growth Calculator: How to Use One