A fuel cost calculator turns three simple numbers β distance, fuel efficiency, and fuel price β into a real dollar figure you can budget around before you ever leave the driveway. Whether you're planning a weekend drive, commuting to a new job, or comparing two vehicles before a purchase, knowing the actual cost per mile changes how you think about a trip.
This calculator was built by Arb Digital as part of our free everyday tools collection, and it supports both US-style miles-per-gallon and metric liters-per-100km so it works whether you're planning a road trip across the States or a drive across Europe.
What This Fuel Cost Calculator Does
Enter your trip distance, your vehicle's fuel efficiency, and the price of fuel, and the calculator instantly returns the total fuel cost for the trip, how much fuel you'll actually burn, the cost per mile or per kilometer, and β if you're carpooling or splitting gas money with friends β the cost per passenger. You can toggle between imperial units (miles and miles-per-gallon, priced per US gallon) and metric units (kilometers and liters-per-100km, priced per liter) using the unit selector at the top, and all of the labels and calculations update automatically.
How to Use the Fuel Cost Calculator
- Pick your unit system. Choose miles and MPG, or kilometers and L/100km, depending on what your vehicle's fuel economy is rated in.
- Enter the trip distance. This is the one-way or round-trip distance you're driving β use whichever matches how you want to see the result.
- Enter your vehicle's fuel efficiency. Check your owner's manual, a recent fill-up calculation, or a site like fueleconomy.gov for your specific make and model.
- Enter the fuel price. Use today's local price per gallon or per liter β this field is fully editable since fuel prices change daily and vary by region.
- Optionally enter the number of passengers to see the per-person cost if you're splitting gas money.
The Formula Behind Fuel Cost
In MPG mode, the math is: fuel needed (gallons) = distance Γ· MPG, and total cost = fuel needed Γ price per gallon. For example, a 300-mile trip in a vehicle rated at 30 MPG burns 300 Γ· 30 = 10 gallons, and at $3.50 per gallon that's 10 Γ $3.50 = $35.00 in fuel for the trip. Cost per mile is simply the total cost divided by the distance, which in this example works out to about 12 cents per mile.
In L/100km mode, the formula flips slightly because efficiency is expressed as consumption rather than distance-per-unit: liters needed = (distance in km Γ· 100) Γ L/100km rating, and total cost = liters needed Γ price per liter. Cost per kilometer is the total cost divided by the distance in kilometers.
For authoritative, government-sourced information on vehicle fuel economy ratings and how they're tested, the US Department of Energy and EPA's fueleconomy.gov is the standard reference β it lists official MPG ratings for nearly every vehicle sold in the US going back decades.
Why Real-World Fuel Economy Differs From the Sticker Number
The MPG figure on a window sticker or in an owner's manual comes from standardized lab testing, and real-world driving rarely matches it exactly. Highway cruising at a steady speed often gets close to or even beats the rated figure, while stop-and-go city driving, aggressive acceleration, cold weather, running the air conditioning, carrying extra weight, or towing can all drag actual fuel economy well below the rated number β sometimes by 15β25% in tough conditions. Tire pressure matters too: underinflated tires create more rolling resistance and can measurably reduce fuel economy over a long trip. Because of this gap, it's smart to enter a slightly conservative efficiency number when budgeting for an important trip, or to check your own vehicle's actual recent fuel economy from your last few fill-ups rather than relying purely on the sticker rating.
Comparing Vehicles or Routes Before You Commit
One of the most useful things a fuel cost calculator can do is help you compare options before you commit to one. If you're deciding between two possible routes for a regular commute β one shorter but through stop-and-go traffic, one longer but mostly highway β running both distances through the calculator with a realistic efficiency estimate for each driving style can reveal which route is actually cheaper over a week or a month, not just which one looks shorter on a map. The same logic applies to comparing vehicles: a car rated at 25 MPG versus one rated at 40 MPG can differ by hundreds of dollars in fuel cost over a single long road trip, and thousands of dollars over a year of ordinary driving, which is worth factoring into any vehicle purchase decision alongside the sticker price.
Budgeting Fuel for a Road Trip or Move
Fuel is usually the single most predictable cost of any driving trip, which makes it a great anchor for the rest of your travel budget. Once you know the fuel cost, you can layer on other expected costs β food, lodging, tolls β with more confidence, since fuel typically doesn't fluctuate wildly once you've picked a route and vehicle. If you're planning a longer trip with overnight stays and daily expenses in addition to fuel, our dedicated Road Trip Cost Calculator (linked below) adds lodging, food, tolls, and a per-traveler split on top of the same fuel math used here.
- Check current local fuel prices before you leave rather than relying on remembered numbers from a previous trip.
- Factor in a fuel price buffer for remote stretches of highway, where prices can run noticeably higher than in cities.
- Recalculate for round-trip distance if you're driving there and back, not just one-way.
- Remember that towing a trailer or hauling a full roof box can meaningfully lower your effective MPG for the whole trip.
Arb Digital builds fast, high-converting websites and interactive tools β including calculators just like this one β that keep visitors engaged and coming back for more. If you'd like something similar built for your brand, we'd love to talk.
Talk to Arb Digital See how Arb Digital can build something like thisCommon Mistakes to Avoid
- Using an outdated fuel price. Fuel prices change frequently, so always update the price field with a current local number before budgeting.
- Forgetting the return trip. If you're calculating a round trip, make sure the distance you enter reflects both directions.
- Assuming sticker MPG under all conditions. City driving, cold weather, and heavy loads can lower real-world efficiency well below the rated figure.
- Mixing unit systems. Make sure your distance, efficiency, and price are all using the same unit system (all imperial or all metric) before calculating.
- Ignoring passenger splits when carpooling. Entering the passenger count gives a fairer per-person figure than eyeballing a split after the fact.
Related Free Tools From Arb Digital
Planning a longer trip? Our Road Trip Cost Calculator adds lodging, food, tolls, and a per-traveler split on top of fuel costs. If you're budgeting a shared household bill, try our Electricity Bill Calculator, and if you're splitting a group meal on the way, our Bill Split Calculator and Tip Calculator can help. For quick math along the way, our Percentage Calculator is handy too. Browse everything in our free online tools hub.
Tracking Your Own Real-World Fuel Economy From Fill-Ups
Rather than relying purely on the sticker MPG or a manufacturer's L/100km rating, you can get a far more accurate number for this calculator straight from your own driving history. Reset your trip odometer at a fill-up, drive normally until your next fill-up, and note exactly how many gallons or liters it takes to fill the tank back to the same level. Dividing the miles or kilometers driven by the fuel used gives your actual, personal fuel economy for the way you actually drive β including your commute's traffic, your climate, and your own driving style β rather than a lab-tested figure from a controlled course. Doing this over two or three fill-ups and averaging the results smooths out any one unusual tank caused by an unusually short trip, extreme weather, or a long highway stretch that skews a single reading.
Once you have a personal average, plug that number into the efficiency field here instead of the factory rating, and the total cost, cost-per-distance, and per-passenger figures this calculator produces will track much closer to what you'll actually spend. It's especially worth doing this exercise before a big trip in a vehicle you don't drive often β a rental car, a friend's truck for a move, or a newly purchased used car β since you won't yet have a feel for how it performs compared with the window sticker.
Toll Roads and the True Cost of a Longer but Cheaper-Looking Route
Mapping apps often default to the fastest route, which isn't always the cheapest once you add up tolls, and a longer route that avoids toll roads can sometimes come out ahead in total trip cost even though it burns a bit more fuel. To compare fairly, run the fuel cost for each route separately through this calculator using each route's actual distance, then add any toll charges to the toll route's fuel total and compare the two combined figures side by side rather than comparing fuel cost alone. A route that's 20 miles longer but avoids $15 in tolls may still cost less overall than the shorter tolled route, depending on your vehicle's efficiency and current fuel prices β but the reverse is just as often true, especially in an efficient vehicle where the extra miles cost only a dollar or two in fuel.
Time is the other side of this trade-off that a pure cost calculator won't capture: a toll road often exists specifically because it saves meaningful time over the free alternative, so a longer, toll-free route that's cheaper in dollars might still cost you in hours spent driving, especially on a trip where your time has real value. Weighing both the dollar difference from this calculator and the time difference from your map app together, rather than optimizing for either one in isolation, usually leads to the better overall decision.
Frequently Asked Questions
The calculator divides your trip distance by your vehicle's fuel efficiency to find how much fuel you'll use, then multiplies that by the fuel price to get the total cost.
300 miles divided by 30 MPG is 10 gallons, and 10 gallons times $3.50 per gallon is $35.00 in total fuel cost.
Yes, switch the units selector to kilometers and L/100km to calculate fuel cost using liters and a per-liter fuel price instead.
Real-world fuel economy is often lower than the rated MPG in city traffic, cold weather, or with a heavily loaded vehicle, so actual costs can run higher than a lab-rated estimate.
Yes, enter the number of passengers and the calculator will show the total fuel cost divided evenly per person.
fueleconomy.gov, run by the US Department of Energy and EPA, lists official MPG ratings for nearly every vehicle sold in the United States.
This tool runs entirely in your browser using built-in JavaScript. Nothing you enter is uploaded, stored, or sent to any server.