Compute miles per gallon from miles driven and gallons used.
MPG = miles / gallons. L/100 km ≈ 235.215 / MPG.
320 miles on 11.5 gallons → 27.83 MPG ≈ 8.45 L/100 km.
An MPG calculator turns a fuel receipt into a number you can actually compare across trips, tanks and vehicles. A well-built calculator turns a topic that usually requires spreadsheets, formulas, or expert guidance into a single input form with an instant, trustworthy answer. That matters because most people making a decision — a budget, a purchase, a health goal, a homework problem — do not want to install software or open a textbook. They want a clear number and a short explanation of where it came from, and they want it to load on their phone in a second.
This tool is for daily commuters watching fuel budgets, road-trippers optimizing routes, small-fleet managers tracking cost-per-mile, and shoppers comparing vehicles. Different visitors arrive here with very different backgrounds. Some are professionals double-checking a value they already estimated in their head. Others are complete beginners who have never seen the underlying formula before. The tool above is designed so both groups can succeed on the first try: defaults reflect realistic real-world inputs, labels are written in plain English, and the result panel highlights the primary number in a large, glanceable format while keeping supporting figures visible for context.
MPG is deceptively non-linear — jumping from 15 to 20 MPG saves more gas over a year than jumping from 40 to 50. Understanding the "why" behind a calculation is what turns a one-off answer into a lasting mental model. This is why every calculator on CalcCosmos publishes the exact formula it uses and walks through a worked example with real numbers. When you can see that a percentage change is nothing more than the difference divided by the starting value, or that a monthly loan payment is a rearranged annuity formula, you gain a portable skill you can reuse anywhere — on a napkin, in a job interview, or with a friend who needs help.
Fill up completely, note the odometer, drive normally, fill up completely again, and enter miles and gallons. Using the tool above is intentionally straightforward. Enter your values, and the result updates instantly — there is no submit button, no loading spinner, and no page reload. When you're happy with the answer, tap "Copy" to place the result on your clipboard for pasting into a message, a spreadsheet, or a form. Tap "Share" to send it to a friend using your device's native share sheet, which falls back to copying a formatted summary when native sharing is unavailable. All of the math runs directly in your browser, so nothing you enter is transmitted or stored on our servers.
Track MPG over several tanks and average, not just one. A few small habits will make the tool more useful over time. First, treat the default values as a sanity check: if your inputs produce a result that is dramatically different from the default, verify that you entered the right units. Second, if the calculator supports multiple modes, try each one — you often learn something new about the problem simply by comparing how the same variables interact under different assumptions. Third, bookmark the tools you return to often; each calculator lives at a permanent URL that will not change.
Combine the MPG calculator with our fuel-cost and auto-loan tools when comparing vehicles. CalcCosmos exists to give you the fastest possible path from question to trustworthy answer. If a calculation you rely on is missing from our library, or if you'd like to see additional inputs, edge-case handling, or worked examples added to this page, we want to hear about it. New calculators launch every week based on what people ask us for, and every existing tool is refined based on real user feedback. Thank you for choosing CalcCosmos — we hope this calculator saves you time today and teaches you something you can use tomorrow.
Driving style, temperature, cargo, tire pressure and fuel blend all move the number.
Usually yes, because there's less stop-and-go and less braking-away of kinetic energy.
EVs use MPGe — miles per gallon equivalent — based on kWh energy content.
Estimate the fuel cost of any trip before you hit the road.
Estimate your monthly car payment and total loan cost from price, down payment, rate and term.
Estimate how much a vehicle is worth after N years at a chosen annual depreciation rate.
Estimate your monthly car lease payment from price, residual, money factor and term.