Price per gallon or liter based on selection above
Please enter valid positive numbers for distance and fuel.
Fuel Efficiency Metrics
MPG (US)
–
MPG (UK)
–
Liters / 100km
–
Km / Liter
–
Cost Analysis
Total Trip Cost
–
Cost per Mile
–
function calculateFuelConsumption() {
// 1. Get Inputs
var distInput = document.getElementById("fcrDistance");
var distUnit = document.getElementById("fcrDistanceUnit").value;
var fuelInput = document.getElementById("fcrFuelUsed");
var fuelUnit = document.getElementById("fcrFuelUnit").value;
var priceInput = document.getElementById("fcrPricePerUnit");
var currency = document.getElementById("fcrCurrencySymbol").value;
var errorDiv = document.getElementById("fcrError");
var resultsDiv = document.getElementById("fcrResults");
var costResultsDiv = document.getElementById("fcrCostResults");
var distValue = parseFloat(distInput.value);
var fuelValue = parseFloat(fuelInput.value);
var priceValue = parseFloat(priceInput.value);
// 2. Validation
if (isNaN(distValue) || distValue <= 0 || isNaN(fuelValue) || fuelValue 0) {
costResultsDiv.style.display = "block";
var totalCost = fuelValue * priceValue;
var costPerDist = totalCost / distValue;
document.getElementById("resTotalCost").innerHTML = currency + totalCost.toFixed(2);
var unitLabel = (distUnit === "miles") ? "Mile" : "Km";
document.getElementById("resCostPerUnitLabel").innerHTML = unitLabel;
document.getElementById("resCostPerUnit").innerHTML = currency + costPerDist.toFixed(2);
} else {
costResultsDiv.style.display = "none";
}
}
Understanding Fuel Consumption Rates
Monitoring your vehicle's fuel consumption is essential for budgeting, vehicle maintenance, and reducing your environmental footprint. Whether you are driving a gasoline, diesel, or hybrid vehicle, understanding how efficiently your car converts fuel into distance traveled helps you make informed decisions about your driving habits.
Common Units of Measurement
Fuel efficiency is measured differently around the world. This calculator provides conversions for the most common standards:
MPG (Miles Per Gallon): Standard in the United States (US MPG) and the United Kingdom (UK MPG). Note that the UK gallon is larger than the US gallon (approx 4.54 liters vs 3.78 liters), so UK MPG figures are typically higher for the same efficiency.
L/100km (Liters per 100 Kilometers): The standard metric in Canada, Europe, and Australia. Unlike MPG, a lower number indicates better fuel economy.
Km/L (Kilometers per Liter): Common in parts of Asia and Latin America, indicating direct distance capacity per unit of fuel.
How to Calculate Fuel Consumption Manually
If you wish to calculate your consumption manually, follow these formulas:
Metric
Formula
MPG
Distance (Miles) ÷ Fuel Used (Gallons)
L/100km
(Fuel Used (Liters) ÷ Distance (Km)) × 100
Km/L
Distance (Km) ÷ Fuel Used (Liters)
Factors Affecting Fuel Efficiency
Several variables can drastically change your actual fuel consumption rate:
Driving Style: Aggressive acceleration and braking can lower gas mileage by 15% to 30% at highway speeds.
Vehicle Load: Carrying extra weight forces the engine to work harder, consuming more fuel.
Tire Pressure: Under-inflated tires increase rolling resistance, which reduces efficiency.
Aerodynamics: Roof racks or open windows at high speeds increase drag.
Why Tracking Cost per Mile/Km Matters
Beyond simple efficiency, knowing the Cost per Mile or Cost per Kilometer gives you the true financial impact of your commute. By inputting your local fuel price into the calculator above, you can see exactly how much every unit of distance costs you, helping you compare the cost-effectiveness of different routes or vehicles.