Skip to main content

Gas Mileage Calculator

Estimate Gas Mileage by entering distance, fuel efficiency, and price per litre or gallon. See total fuel cost and CO₂ emissions for any journey.

Skip to calculator
Everyday Life

Gas Mileage Calculator — Mpg, Cost Per Mile & Annual Fuel Cost

Calculate your vehicle's miles per gallon (MPG), cost per mile, liters per 100km equivalent, and estimated annual fuel cost. Track your fuel efficiency and spending.

Last updated: December 2025

Calculator

Adjust values & calculate
350 mi
12 gal
$3.50
Fuel Efficiency
29.2 MPG
12.4 km/L | 8.1 L/100km
Cost Per Mile
$0.120
Trip Cost
$42.00
L/100km
8.1
Estimated Annual Fuel Cost (12,000 mi/year)
$1440
~411 gallons per year

Your Efficiency Breakdown

Miles per Gallon (MPG)29.2
Kilometers per Liter12.4
Liters per 100km8.1
Cost per Mile$0.120
Tip: Track your mileage over multiple fill-ups for a more accurate average. Single-trip MPG can vary significantly based on driving conditions, traffic, weather, and terrain.
Your Result
29.2 MPG | $0.120/mile | 8.1 L/100km | $1440/year est.
Share Your Result
Understand the Math

Formula

MPG = Miles Driven ÷ Gallons Used

Divide the total miles driven by the gallons of fuel consumed to get miles per gallon (MPG). Cost per mile equals total fuel cost divided by miles driven. For the metric equivalent, convert to liters per 100 kilometers using: L/100km = 235.215 ÷ MPG. Annual cost is estimated based on 12,000 miles driven per year.

Last reviewed: December 2025

Worked Examples

Example 1: Daily Commute Efficiency

You drove 350 miles on 12 gallons of gas at $3.50/gallon. What is your fuel efficiency?
Solution:
MPG = 350 / 12 = 29.2 MPG Cost per mile = (12 × $3.50) / 350 = $0.120/mile L/100km = 235.215 / 29.2 = 8.1 L/100km Annual cost (12k mi) = (12,000 / 29.2) × $3.50 = $1,438
Result: 29.2 MPG | $0.120/mile | 8.1 L/100km | $1,438/year

Example 2: Road Trip Calculation

A 600-mile road trip used 20 gallons at $3.80/gallon.
Solution:
MPG = 600 / 20 = 30.0 MPG Cost per mile = (20 × $3.80) / 600 = $0.127/mile Total trip cost = 20 × $3.80 = $76.00 L/100km = 235.215 / 30 = 7.8 L/100km
Result: 30.0 MPG | $0.127/mile | Trip cost: $76.00
Expert Insights

Background & Theory

The Gas Mileage Calculator — Mpg, Cost Per Mile & Annual Fuel Cost applies the following established principles and formulas. Everyday life arithmetic underpins a vast range of routine financial and practical decisions that most adults encounter on a daily or weekly basis. At its core, consumer mathematics involves applying straightforward formulas to real-world quantities, but accuracy and convenience are essential when money is involved. Tip calculation follows the simple relationship tip = bill × rate, where rate is typically expressed as a decimal (0.15 for 15%, 0.20 for 20%). When dining in groups, the split total is computed as (bill + tip) / n, where n is the number of diners, though tax is sometimes included before or after the split depending on local convention. Percentage and discount arithmetic is equally fundamental. A discount of 20% on a $45 item is computed as 45 × (1 − 0.20) = $36, and stacked discounts require sequential multiplication rather than addition of percentages. Fuel cost estimation uses the formula cost = (distance / mpg) × price per gallon, allowing drivers to budget road trips or compare vehicle efficiency. Electricity billing relies on unit conversion: kilowatt-hours equal watts × hours / 1000, and the cost is then kWh × the utility rate. A 100-watt bulb left on for 10 hours consumes one kWh, which at a rate of $0.13 amounts to 13 cents. Loan payment calculations typically apply the standard amortisation formula, where monthly payment depends on principal, interest rate per period, and number of periods. Understanding this formula helps consumers evaluate mortgage offers or auto loans without relying solely on lender summaries. Unit price comparison, dividing total price by quantity or weight, is the most direct tool for supermarket decisions and is often more revealing than advertised sale prices. Sales tax, typically a percentage added to a pretax subtotal, varies by jurisdiction and product category. Together, these calculations constitute a practical numeracy toolkit that reduces reliance on guesswork and supports more informed consumer behaviour across every domain of daily spending.

History

The history behind the Gas Mileage Calculator — Mpg, Cost Per Mile & Annual Fuel Cost traces back through the following developments. The history of everyday consumer arithmetic is inseparable from the broader story of commercial society and the gradual democratisation of mathematical tools. In pre-industrial economies, most transactions occurred in kind or relied on weights and measures governed by local custom rather than standardised formulas. The shift toward decimal currency, pioneered by the United States in 1792 and gradually adopted by European nations through the 19th and 20th centuries, made percentage calculations far more intuitive and accessible to ordinary citizens. The rise of the modern supermarket in the mid-20th century created a new demand for practical price comparison skills. Early consumer protection advocates in the 1960s and 1970s pushed for unit pricing legislation, recognising that larger packages were not always cheaper per ounce and that shoppers needed standardised information to compare products fairly. The US Fair Packaging and Labeling Act of 1966 was an early legislative response to these concerns. Personal finance software emerged in the early 1980s as home computers became affordable. Quicken, launched in 1983, was among the first widely adopted tools that automated bill tracking, loan amortisation, and budget projection for ordinary households. It shifted the culture from paper ledgers and mental arithmetic toward software-assisted financial management. The internet era brought free tools and comparison engines that extended these capabilities further. Mint, launched in 2006, aggregated bank and credit card data to provide automatic categorisation of spending, making budget tracking nearly effortless. Smartphone calculator apps, present on virtually every mobile device by 2010, placed instant arithmetic in every pocket. E-commerce platforms subsequently embedded tax calculators, shipping cost estimators, and instalment payment breakdowns directly into checkout flows, normalising real-time financial calculation as part of the purchasing experience. Today, the expectation that digital tools will perform these calculations instantly has become universal, yet understanding the underlying arithmetic remains valuable for interpreting results, catching errors, and making informed comparisons when automated tools are absent or misleading.

Key Features

  • Calculate tip amounts and split any restaurant or shared bill evenly among any number of people, including handling unequal splits when individuals order different amounts.
  • Compute the final sale price after applying single or stacked discounts, and reverse-calculate the original price from a marked-down amount.
  • Determine monthly loan payments given principal, interest rate, and term length, and check whether a payment fits within a target budget as an affordability check.
  • Calculate fuel economy in MPG or L/100km, estimate total fuel cost for any road trip by distance and current price per gallon or litre, and find cost-per-mile for vehicle comparison.
  • Compare grocery items by unit price across different package sizes and units of measure, instantly identifying the best-value option regardless of how the price is listed.
  • Estimate monthly electricity, gas, or water bills by entering appliance wattage and usage hours, helping you identify high-consumption devices and project annual utility costs.
  • Convert between major world currencies using a specified exchange rate for quick travel budgeting, and calculate how much local currency you receive after exchange fees.
  • Compute percentage increase or decrease between two values, and calculate markup or markdown amounts for pricing decisions or tracking financial changes over time.

Share this calculator

Explore More

Frequently Asked Questions

For gasoline cars, the average fuel economy in the US is about 25-30 MPG combined (city and highway). A 'good' MPG depends on vehicle type: compact cars typically achieve 30-40 MPG, midsize sedans 25-35 MPG, SUVs 20-30 MPG, and trucks 15-25 MPG. Hybrid vehicles achieve 40-60 MPG, and plug-in hybrids can exceed 100 MPGe (miles per gallon equivalent) when using electric mode. For reference, the most fuel-efficient non-electric cars on the market achieve around 55-60 MPG combined.
Several driving habits and maintenance practices can improve fuel economy by 10-30%. Drive at moderate speeds — fuel efficiency drops significantly above 50 mph (each 5 mph over 50 is like paying an extra $0.20-0.30 per gallon). Avoid aggressive acceleration and hard braking; use cruise control on highways. Keep tires properly inflated (under-inflation by 1 psi reduces efficiency by 0.2%). Remove excess weight and roof cargo carriers when not in use. Keep up with maintenance: clean air filters, fresh spark plugs, and proper oil improve efficiency. Use the recommended octane fuel — premium does not help if your car does not require it.
MPG (miles per gallon) and liters per 100 kilometers (L/100km) measure fuel efficiency differently. MPG is used in the US and measures how far you can travel on one gallon — higher is better. L/100km is used in Europe, Canada, and most of the world, measuring how much fuel is needed to travel 100 km — lower is better. To convert: L/100km = 235.215 / MPG. For example, 30 MPG = 7.84 L/100km. The relationship is inverse and non-linear, which means improving from 10 to 15 MPG saves more fuel than improving from 30 to 35 MPG, even though both are 5 MPG improvements.
Speed has a dramatic effect on fuel economy due to aerodynamic drag, which increases with the square of velocity. Most cars achieve peak fuel efficiency between 35-55 mph. Above 55 mph, efficiency drops rapidly: driving at 65 mph uses about 8% more fuel than 55 mph, 75 mph uses about 20% more, and 85 mph uses about 35% more. In practical terms, slowing from 75 to 65 mph on a highway trip can save about 15% on fuel. City driving is less efficient than highway due to frequent stops, idling, and acceleration, which is why hybrid vehicles excel in city conditions with regenerative braking.
Annual fuel cost is calculated using the formula: Annual Cost = (Annual Miles / MPG) × Gas Price per Gallon. The average American drives about 12,000-15,000 miles per year. At 25 MPG with gas at $3.50/gallon, that is (12,000 / 25) × $3.50 = $1,680/year. At 35 MPG, it drops to $1,200/year — a $480 annual savings. Over a 5-year ownership period, the difference between a 25 MPG and 35 MPG vehicle at $3.50/gallon amounts to $2,400. This is why fuel efficiency should be a major factor in vehicle purchase decisions, especially for high-mileage drivers.
MPG (miles per gallon) measures how far you travel per unit of fuel (higher is better). L/100km measures how much fuel you use per distance (lower is better). To convert: L/100km = 235.215 / MPG. A car getting 30 MPG uses about 7.8 L/100km.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings. © 2024–2026 NovaCalculator.

Share this calculator

Reviewed by Daniel Agrici, Founder & Lead Developer · Editorial policy

Gas Mileage Calculator Formula

MPG = Miles Driven ÷ Gallons Used

Divide the total miles driven by the gallons of fuel consumed to get miles per gallon (MPG). Cost per mile equals total fuel cost divided by miles driven. For the metric equivalent, convert to liters per 100 kilometers using: L/100km = 235.215 ÷ MPG. Annual cost is estimated based on 12,000 miles driven per year.

Gas Mileage Calculator — Worked Examples

Example 1: Daily Commute Efficiency

Problem: You drove 350 miles on 12 gallons of gas at $3.50/gallon. What is your fuel efficiency?

Solution: MPG = 350 / 12 = 29.2 MPG\nCost per mile = (12 × $3.50) / 350 = $0.120/mile\nL/100km = 235.215 / 29.2 = 8.1 L/100km\nAnnual cost (12k mi) = (12,000 / 29.2) × $3.50 = $1,438

Result: 29.2 MPG | $0.120/mile | 8.1 L/100km | $1,438/year

Example 2: Road Trip Calculation

Problem: A 600-mile road trip used 20 gallons at $3.80/gallon.

Solution: MPG = 600 / 20 = 30.0 MPG\nCost per mile = (20 × $3.80) / 600 = $0.127/mile\nTotal trip cost = 20 × $3.80 = $76.00\nL/100km = 235.215 / 30 = 7.8 L/100km

Result: 30.0 MPG | $0.127/mile | Trip cost: $76.00

Gas Mileage Calculator — Frequently Asked Questions

How can I improve my car's gas mileage?

Several driving habits and maintenance practices can improve fuel economy by 10-30%. Drive at moderate speeds — fuel efficiency drops significantly above 50 mph (each 5 mph over 50 is like paying an extra $0.20-0.30 per gallon). Avoid aggressive acceleration and hard braking; use cruise control on highways. Keep tires properly inflated (under-inflation by 1 psi reduces efficiency by 0.2%). Remove excess weight and roof cargo carriers when not in use. Keep up with maintenance: clean air filters, fresh spark plugs, and proper oil improve efficiency. Use the recommended octane fuel — premium does not help if your car does not require it.

How much does driving speed affect gas mileage?

Speed has a dramatic effect on fuel economy due to aerodynamic drag, which increases with the square of velocity. Most cars achieve peak fuel efficiency between 35-55 mph. Above 55 mph, efficiency drops rapidly: driving at 65 mph uses about 8% more fuel than 55 mph, 75 mph uses about 20% more, and 85 mph uses about 35% more. In practical terms, slowing from 75 to 65 mph on a highway trip can save about 15% on fuel. City driving is less efficient than highway due to frequent stops, idling, and acceleration, which is why hybrid vehicles excel in city conditions with regenerative braking.

How accurate are the results from Gas Mileage Calculator?

All calculations use established mathematical formulas and are performed with high-precision arithmetic. Results are accurate to the precision shown. For critical decisions in finance, medicine, or engineering, always verify results with a qualified professional.

Why might my result differ from another tool or reference?

Differences typically arise from rounding conventions, the specific version of a formula (for example, simple vs compound interest), or unit inconsistencies between inputs. Check that both tools are using the same formula variant and the same units. The References section links to the authoritative source behind the formula used here.

How do I get the most accurate result?

Enter values as precisely as possible using the correct units for each field. Check that you have selected the right unit (e.g. kilograms vs pounds, meters vs feet) before calculating. Rounding inputs early can reduce output precision.

How do I verify Gas Mileage Calculator's result independently?

The Formula section on this page shows the equation used. You can reproduce the calculation manually or in a spreadsheet using those steps. Compare your answer against the worked examples in the Examples section, which use known reference values so you can confirm the calculator is behaving as expected.

Gas Mileage Calculator — Background & Theory

The Gas Mileage Calculator — MPG, Cost Per Mile & Annual Fuel Cost applies the following established principles and formulas. Transportation calculations center on the fundamental relationship between distance, speed, and time expressed as d = s × t. This triangle of variables allows any one quantity to be derived when the other two are known, supporting applications ranging from estimating arrival times to calculating required average speed for a journey. Real-world calculations must account for stops, speed variations, traffic delays, and speed limits, making simple division an approximation that practical tools refine with additional parameters. Fuel consumption is expressed differently in different regions. North American convention uses miles per gallon (MPG), a larger number indicating better efficiency. Most other countries use liters per 100 kilometers (L/100km), where a smaller number indicates better efficiency. The conversion between them is not a simple linear scaling but an inversion relationship: MPG = 235.21 / (L/100km). For aviation and long-distance navigation, straight-line map distances underestimate the actual path because the Earth is a sphere. The Haversine formula calculates great-circle distance — the shortest path across the Earth's surface between two points defined by latitude and longitude — accounting for spherical geometry. Flight times further depend on prevailing winds, particularly the jet stream, which can reduce eastward transatlantic crossing times by an hour or more compared to westbound flights. Carbon emissions vary substantially by transport mode. IPCC and comparable figures express emissions in grams of CO2 equivalent per passenger-kilometer. Short-haul flights produce roughly 255 g/pkm, private car travel averages around 170 g/pkm, long-distance rail averages about 41 g/pkm, and bus travel approximately 89 g/pkm. Electric vehicles shift emissions upstream to electricity generation, so their net footprint depends on the carbon intensity of the local grid. Electric vehicle range calculations depend on battery capacity in kilowatt-hours, consumption expressed as kWh/100km, and factors including temperature, speed, and auxiliary loads. Vehicle depreciation calculations use either straight-line methods, which allocate equal cost per year, or declining-balance methods, which front-load depreciation to reflect the faster early loss of market value typical of most vehicles.

History of the Gas Mileage Calculator

The history behind the Gas Mileage Calculator — MPG, Cost Per Mile & Annual Fuel Cost traces back through the following developments. The history of transportation is inseparable from the history of human civilization. The invention of the wheel around 3500 BCE in Mesopotamia transformed overland transport, enabling carts and chariots that multiplied the load a person or animal could move. Roman engineers built over 80,000 kilometers of paved road radiating from Rome, integrating an empire that stretched from Scotland to Mesopotamia. These roads used standardized construction methods and milestones, creating the first large-scale infrastructure for consistent travel time estimation. For millennia, transportation speed was bounded by the pace of animals and the wind. The steam locomotive shattered this ceiling. Richard Trevithick's first steam-powered rail vehicle ran in 1804, and by the 1830s commercial railways were operating in Britain. The transcontinental railroad completed across the United States in 1869 reduced the coast-to-coast journey from months by wagon to under two weeks, transforming the economic geography of a continent. Karl Benz received a patent for the Benz Patent-Motorwagen in 1886, widely recognized as the first true gasoline-powered automobile. Within two decades the internal combustion engine had begun displacing the horse in cities. The United States Interstate Highway System, authorized by the Federal Aid Highway Act of 1956 and inspired partly by the German Autobahn, constructed 77,000 kilometers of controlled-access highway and reshaped American land use, commuting patterns, and the trucking industry. Orville and Wilbur Wright achieved powered heavier-than-air flight at Kitty Hawk in December 1903, a twelve-second flight of 37 meters. Within fifty years commercial jet aviation had made intercontinental travel routine. The Boeing 707 entered service in 1958, and by the 21st century over four billion passengers per year were traveling by air. The NAVSTAR GPS constellation, fully operational by 1995 and opened to civilian use, transformed navigation from a specialized skill to a universal utility. Smartphone-based navigation apps emerged after 2007, integrating real-time traffic data to optimize routes dynamically. The 21st century has seen the rise of electric vehicles and the early development of autonomous driving systems, promising further transformation in how transportation time and cost calculations are made.

References