Fuel Cost Calculator — What Will This Trip Cost in Gas?
Enter your trip distance, your car’s fuel efficiency, and the price at the pump: get the fuel you will burn, the total cost in dollars, and your cost per mile — in US or metric units.
Your trip
🔒 All calculations happen in your browser — no data leaves your device.
The fuel bill
Your trip, visualized
The tank bar shows the fuel this trip burns; the marker below places your cost per mile against a $0.30-per-mile scale. Both redraw from your inputs.
- Fuel cost is distance ÷ efficiency × price: the default 300-mile trip at 30 MPG and $3.50 a gallon burns 10.00 gallons and costs $35.00.
- Cost per mile is the comparison number — $0.117 in the default example, and most gasoline cars land between $0.10 and $0.20 of fuel per mile at recent US prices.
- Units convert automatically — 30 MPG is 7.84 L/100km (235.215 ÷ MPG) — and the bill is fuel only: tolls, parking, wear and depreciation sit on top.
Keep exploring
Three companion tools for drivers and savers.
How it works
Three steps from route to fuel bill.
Enter the distance
The one-way trip distance in miles (or kilometers) — double it yourself for a there-and-back total, or read the round-trip row.
Add efficiency and price
Your car’s efficiency — MPG, L/100km, km/L and more, each field in its own unit — and the pump price: both decide the bill as much as the distance does.
Read the true cost
Fuel burned, total dollars, and cost per mile — the number that makes comparing two cars or two routes easy.
The math behind the fuel bill
Three short formulas do all the work. Fuel used is distance divided by efficiency (with L/100km: distance × efficiency ÷ 100). Total cost is fuel used times the pump price. Cost per mile is total cost divided by distance — the cleanest way to compare trips, cars, and routes.
Worked examples:
| Trip | Calculation | Result |
|---|---|---|
| 300 mi · 30 MPG · $3.50/gal | 300 ÷ 30 = 10.00 gal; 10.00 × $3.50 | $35.00 · $0.117 per mile |
| 500 km · 8 L/100km · $1.60/L | 500 × 8 ÷ 100 = 40.00 L; 40.00 × $1.60 | $64.00 · $0.128 per km |
| 120 mi · 24 MPG · $4.20/gal | 120 ÷ 24 = 5.00 gal; 5.00 × $4.20 | $21.00 · $0.175 per mile |
Go deeper
The two things drivers most often get wrong about fuel math.
The US measures distance per fuel (miles per gallon — higher is better); most of the world measures fuel per distance (liters per 100 km — lower is better). Convert with one constant:
- L/100km = 235.215 ÷ MPG — so 30 MPG becomes 7.84 L/100km.
- MPG = 235.215 ÷ L/100km — so 8 L/100km becomes 29.4 MPG.
- Watch the trap: a jump from 10 to 20 MPG saves twice as much fuel as 30 to 40 MPG over the same distance — MPG gains are not linear, L/100km gains are.
- This calculator: every field carries its own unit menu — miles or kilometers, MPG (US or Imperial), L/100km, km/L or L/mile, price per gallon or per liter — so you can think in whichever system your car reports, and mix units freely.
The calculator assumes one steady efficiency — real driving rarely delivers it:
- Speed: aerodynamic drag climbs fast; most cars burn noticeably more per mile at 75 mph than at 55 mph.
- Cold starts and short trips: a cold engine runs rich — five 2-mile trips cost more fuel than one 10-mile trip.
- Air conditioning and loads: AC, roof boxes, bike racks, and a full trunk all add drag or weight.
- Tire pressure: under-inflated tires raise rolling resistance and quietly shave MPG.
- Price spread: the same gallon can differ by a dollar or more between stations and states on one route.
Use your car’s real trip-computer MPG, not the window-sticker figure, and the estimate lands much closer.
Trip fuel cost: the formula and a worked road trip
One formula, three inputs — and a 412-mile trip costed to the cent.
Call it a gas trip calculator, a trip calculator, a gas calculator trip or a road trip gas calculator — it is the same calculation every gas calculator, gas cost calculator, fuel calculator and fuel cost calculator is built to run, and every version of the search is the same question: what will the fuel for this drive cost? Typing gas calculator for trip or trip gas calculator lands you in the same place, because there is only one calculation underneath all of them. The calculator at the top of this page runs it on your numbers. This section runs it once by hand, slowly, so you can see every moving part — including the two lines most people forget: the trip back, and a reserve.
Two of the three inputs are yours alone. Your efficiency should be your car’s real average — the figure from your fuel log or trip computer, not the brochure. And the price is the price at the pump you will actually use. That is why this page prints no “current” gas price as a fact: pump prices move daily and differ by station and state, so every worked example in this guide uses one clearly labelled sample figure — an illustrative $3.50 a gallon — purely so the arithmetic can be checked. Your price goes in the calculator.
The worked trip. Take a 412-mile drive in a car that genuinely averages 30 MPG. Gallons used: 412 ÷ 30 = 13.73 gallons. Trip fuel cost: 13.73 × $3.50 = $48.07. That is $0.117 of fuel per mile — the trip’s cost-per-mile figure, and the handiest number on the page, because any change of plan prices itself instantly: a 40-mile detour adds 40 × $0.117, about $4.67.
| Line | Miles | Fuel | Cost |
|---|---|---|---|
| One-way trip | 412 | 13.73 gal | $48.07 |
| Round trip (there and back) | 824 | 27.47 gal | $96.13 |
| Round trip + 10% reserve margin | 824 | 30.21 gal | $105.75 |
Illustrative price only: $3.50 a gallon and 30 MPG throughout. Your pump price and your car’s real figure go in the calculator above.
The round-trip line is where most fuel budgets quietly fail: a trip quoted one-way is half a budget. The calculator shows the round trip as its own result row for exactly this reason. The reserve margin is the second forgotten line. Real trips detour, idle in traffic, run the air conditioning and climb into headwinds, so experienced drivers budget the fuel at the estimate plus roughly a tenth. On this trip that turns $96.13 of expected fuel into a $105.75 budget — a number you plan around, and usually come home under.
Tanks and stops. The gallons line also plans your fuel stops. A car with a 12-gallon tank has about 360 miles of range at 30 MPG, so the 412-mile leg means one stop — and where you make it is worth a few dollars either way, because the same gallon can carry very different prices along one route. If the second half of a trip runs 40 cents a gallon dearer, the 6.87 gallons you buy there cost about $2.75 more. Small money, but the fix is free: run the calculator once per leg, each at its own expected price, and add the legs together.
Trips that are not a simple there-and-back. Not every journey doubles neatly. A multi-stop trip prices itself by addition: total the legs first, then run the formula once on the total. The 412-mile drive with a 96-mile side trip is a 508-mile fuel question — 16.93 gallons, $59.27 at the illustrative price — and adding the legs before multiplying is both easier and more accurate than costing each leg and rounding as you go. A one-way trip, driving out and flying home, or collecting a car in one city and leaving it in another, is simpler still: it is the one-way line with no round trip beneath it, though a one-way rental’s drop-off fee is another of those separate budget lines that fuel math does not pretend to cover. And a trip shared across two cars is two fuel questions, not one — each car’s own MPG decides its own bill, which is why the thirstier car in a convoy always costs its driver more for the same holiday.
What this number is not. It is the fuel line only. Tolls, parking, and the wear a long drive puts on tyres and brakes are real trip costs, but they are separate budget lines — a full trip budget adds them on top rather than hiding them inside the fuel figure. Our road-trip fuel budget guide works through that whole budget; this page and this calculator price the one line that depends on distance, efficiency and the pump.
Fuel cost per day, per month and per mile
The same three inputs, pointed at a commute instead of a road trip.
Point the tool at a commute instead of a holiday and it becomes a gas estimator for your working month. The distance is your round trip to work, the efficiency and price are the same two inputs as ever — frequency does the rest. Nothing about the formula changes; only the period you multiply it over.
The worked commute. Say work is 18 miles away: a 36-mile round trip, in the same honest 30 MPG car, at the same illustrative $3.50 a gallon. That is 1.20 gallons and $4.20 of fuel a day. Spread over a working year it stops looking small:
| Period | Miles | Fuel | Cost |
|---|---|---|---|
| One day (round trip) | 36 | 1.20 gal | $4.20 |
| One week (5 days) | 180 | 6.00 gal | $21.00 |
| One month (working year ÷ 12) | 750 | 25.00 gal | $87.50 |
| One year (250 workdays) | 9,000 | 300.00 gal | $1,050.00 |
Same illustrative inputs throughout: 30 MPG and $3.50 a gallon. Your commute, your figures, in the calculator above.
Cost per mile is the comparison number. At these inputs the fuel in each mile costs $0.117 — $11.67 per 100 miles. Label it carefully: that is a fuel-only figure. The full cost of running a car per mile, once tyres, servicing, insurance and depreciation join in, is several times higher, and our cost-per-mile guide takes that bigger number apart. Fuel-only is still the right figure for comparing two cars or two routes, because it isolates the one cost that changes with the choice in front of you.
Two levers move the year. Let the car’s real average slip from 30 to 25 MPG and the same commute year burns 360 gallons — $1,260.00. Keep 30 MPG but pay $4.00 a gallon and the year is $1,200.00. Run it the other way — a 45 MPG car at the illustrative price — and the year falls to $700.00. Efficiency and price are worth exactly the same kind of attention, because the formula cannot tell them apart: halving either one halves the bill.
Not every week is five days. The table assumes a full five-day pattern, but the arithmetic flexes with the diary. Work from home two days a week and the same commute runs 150 days a year instead of 250: 5,400 miles, 180 gallons, $630.00 a year — $52.50 a month. One day a week at home lands between the two, at 200 days and $840.00. Nothing about the method changes; the honest move is to count the days you actually drive, because a fuel budget built on a five-day week you no longer work is fiction in a spreadsheet’s clothing. The same applies at the other end of the year: holidays, sick days and the odd week of leave all come straight off the day count before the multiplication, not after an argument with the total.
The honest limit of any gas price calculator. A gas price calculator — this one included — can only multiply the price you type in. It cannot know what your station charges this week, and any page that prints a single “price of gas today” as if it were your price is guessing with your budget. Take the figure from the pump you actually use, and re-run the numbers when it changes: a fuel estimate is only ever as current as its inputs.
From commute to the whole year’s fuel. The same figure scales past the commute. Most households drive far more than the work run — school, shopping, family, holidays — and the honest way to budget a year’s fuel is the cost-per-mile figure times the year’s real total miles. A household driving 15,000 miles a year at this section’s inputs has 500 gallons and $1,750.00 of fuel in its year, of which the commute’s $1,050 is simply the biggest single line. Working the total this way — one measured cost per mile, one realistic mileage figure — beats guessing a monthly petrol amount and discovering the guess was a hope. It also shows its workings when anything changes: if the year’s miles fall, or the car is replaced with a thriftier one, the budget moves by multiplication, not by a new guess.
One boundary worth keeping: a monthly fuel figure is one line of what a commute costs, in the same way a trip’s fuel is one line of a trip cost calculator‘s whole answer. Parking, tolls and wear belong in the budget too — they are simply not this calculation, and putting them in a separate line is what keeps each number honest.
Splitting fuel costs fairly
Three honest ways to divide one fuel bill — pick the convention before you leave.
Fuel is the one road-trip cost that can be calculated to the cent before anyone starts the engine, which makes it the cost groups argue about least — provided the splitting method is agreed at the start. There are three conventions in common use, and no law says which is right. What follows is each one, worked on the 412-mile trip from the first section of this guide: $48.07 of fuel at the illustrative price.
Split it equally. The simplest method ignores who drove and divides the bill by heads: $48.07 between four travellers is $12.02 each. It treats the trip as a shared experience and the driving as part of it. Between friends on a holiday run, this is the convention that keeps the peace, and the small unfairnesses — one person drove more, one person’s car it is not — wash out across trips.
Let the driver pay less. The second convention recognises that the car’s owner is contributing more than fuel: the vehicle, its insurance, and the wear the miles put on it. Many groups therefore let the driver pay a reduced share of the fuel — half a share, or nothing at all — while passengers split the rest. There is no standard fraction; the point is that the discount is agreed before departure, not negotiated at the destination.
Split it by legs. The third method pays for fuel the way it was burned: whoever drives a leg covers that leg’s fuel. If one driver covers 206 of the 412 miles, they burned 6.87 gallons — $24.03 of the $48.07. The cost-per-mile figure makes any version of this trivial to run: $0.117 for every mile anyone drives, settled per person. It suits trips with one long highway leg and one short one, where an equal split would genuinely misprice the driving.
Splitting a rented or borrowed car. When the car is not the driver’s, the conventions sharpen into a rule of thumb: whoever hands the car back owes it in the state it was collected — which, for fuel, means the group owes exactly what the trip burned. The clean way to settle it is the end-of-trip refill: fill the tank back to its starting level at the journey’s end, and that receipt is the fuel bill, ready to be split by whichever convention the group chose. On the worked trip the refill would be 13.73 gallons and $48.07 at the illustrative price — measured at the pump rather than estimated at the table, which closes the last argument a split can have.
Rotate the car, not just the driver. Groups that travel together repeatedly often settle the whole question structurally: each trip uses a different member’s car, and that trip’s fuel is on the passengers. Over a season the fuel bills, the wear and the driving all rotate together, and nobody keeps a ledger. It is the equal split with the unfairnesses averaged over time instead of over people — worth naming as a fourth convention, because for regular groups it quietly outperforms the other three.
Two practical rules. First, settle on the estimate, reserve included, rather than on receipts — the group budgets $105.75 for the round trip and splits that, which ends the paperwork argument before it starts. Second, round to whole dollars once the method is agreed; nobody’s friendship is priced in cents. The only genuinely unfair split is the one decided after the fuel is already burned.
Trucks, vans and fleets: the same formula, bigger tanks
One vehicle or fifty, the arithmetic is identical. Only the tank and the miles change.
A truck, a van or a fleet vehicle runs on the same three numbers as a car: distance, efficiency, and the price of fuel. Distance divided by efficiency gives the fuel used; fuel used times price gives the cost. What changes is scale. A heavy truck burns far more fuel per mile than a car, so the per-mile figure is the one worth watching, and a fill-up is a much larger single purchase. The cost of a fill-up is the tank size times the pump price: a 100-gallon tank at an illustrative $3.80 a gallon costs $380 to fill. The cost per mile is the pump price divided by efficiency: the same illustrative $3.80 divided by 38 miles per gallon is $0.10 a mile for a car, while a truck at 6 miles per gallon costs about $0.63 a mile at the same pump price. Both figures use prices you enter yourself: this page carries no live fuel prices, because pump prices change daily and differ by place.
For a fleet, run the same calculation vehicle by vehicle and add the results. Do not average the efficiencies first: a truck at 6 miles per gallon and a van at 20 miles per gallon do not average to 13 miles per gallon in any useful sense, because they drive different distances. Work out each vehicle’s fuel cost from its own miles and its own efficiency, then add. The total for a week is the sum of the vehicles, and the figure to compare across weeks is the cost per mile for the fleet as a whole: total fuel cost divided by total miles. If that figure climbs while prices are steady, efficiency has fallen, a route has lengthened, or a vehicle’s consumption has changed, and each of those has a different fix.
Frequently asked questions
Quick answers about this fuel cost calculator.
How much gas will my trip use?
Divide the trip distance by your car’s MPG. A 412-mile trip at 30 MPG uses 412 ÷ 30 = 13.73 gallons; the same trip at 25 MPG uses 16.48 gallons. The calculator above runs the division in miles or kilometres, and in MPG, L/100km or km/L, so the answer arrives in whichever unit your car reports.
How do I calculate fuel cost for a trip?
In two steps: gallons used = distance ÷ MPG, then cost = gallons × price per gallon. The 300-mile default in the calculator above — 30 MPG at an illustrative $3.50 a gallon — burns 10.00 gallons and costs $35.00. Double the one-way figure, or read the round-trip row, for a there-and-back total.
How do I calculate MPG?
By the fill-up method: fill the tank, reset the trip odometer, drive, then fill again and divide the miles driven by the gallons the second fill took. One tank can mislead, so measure over two or three fills. The mileage calculator page works a two-tank example in full, and its answer is the MPG you should type into this calculator.
How much does it cost to drive 100 miles?
One hundred miles at the calculator’s illustrative inputs — 30 MPG and $3.50 a gallon — burns 3.33 gallons and costs $11.67 in fuel. The general rule: 100 × (price ÷ MPG). Remember it is fuel only; the full cost of running the car per mile is several times the fuel-only figure.
What is the difference between fuel efficiency and fuel consumption?
They are the same thirst measured from opposite ends. Fuel efficiency is distance per unit of fuel — MPG or km/L, where higher is better. Fuel consumption is fuel per unit of distance — L/100km, where lower is better. Each is the reciprocal of the other: 30 MPG and 7.84 L/100km describe exactly the same car.
How much gas is used per mile?
The reciprocal of your MPG: at 30 MPG, 1 ÷ 30 = 0.033 gallons per mile; at 20 MPG it is 0.050, and at 40 MPG it is 0.025. Multiply by the price per gallon and you have your fuel cost per mile — $0.117 at the illustrative $3.50.
How do I split gas costs for a road trip?
Agree the method before you leave. Equal shares is simplest — a $48.07 fuel bill between four travellers is $12.02 each. Splitting by legs charges each driver for the fuel their driving burned (206 of 412 miles = $24.03). And many groups let the driver pay a reduced share, because the car and its wear are theirs. Any of the three is fair once it is agreed in advance.
Why is my real MPG lower than the rated MPG?
The rated figure comes from a standard laboratory cycle, and real driving is harder on fuel: cold starts and short trips run the engine rich while it warms up, higher speeds meet air resistance that grows with the square of speed, and loads, roof boxes, air conditioning and soft tyres all take their share. Real-world averages commonly land well below the sticker — which is why this calculator asks for your car’s real figure.
How much will gas cost per month for my commute?
Work it from the round trip: daily fuel cost × your working days. An 18-mile each-way commute — 36 miles a day at 30 MPG and an illustrative $3.50 a gallon — is $4.20 a day, $21.00 a five-day week, and $87.50 a month on a 250-workday year. Your distance and your pump price go in the calculator above.
Is an EV cheaper per mile than a gas car?
On energy alone, usually — at illustrative prices. An EV using 30 kWh per 100 miles, charged at an illustrative $0.16 per kWh, runs at $0.048 a mile; the 30 MPG car at $3.50 a gallon runs at $0.117 a mile. But both figures are just your two local prices divided by two efficiencies, so the honest answer is a method, not a headline — our EV vs gas guide works it with your own numbers.
How much does fuel cost per mile?
Divide the pump price by your efficiency. At $3.80 a gallon and 38 miles per gallon, the cost is $3.80 divided by 38, which is $0.10 a mile. In litres, divide the price per litre by the kilometres per litre, or work from litres per 100 km: fuel used per 100 km times price per litre, divided by 100. Enter your own pump price, since prices differ by place and change daily.
Why does this calculator not show today’s fuel price?
Because no single price is today’s price everywhere. Pump prices differ by place and move daily, so a printed price would be wrong for most readers within hours. Enter the price on the pump where you fill up, and the calculator works from your figure. That is also why the worked examples on this page use illustrative prices, labelled as such.
Related guides
Three guides that start where the calculator stops: budgeting a whole road trip, the honest cost of a single mile, and the EV comparison done with your own prices.
Road-Trip Fuel Budget
Costing a trip before you leave: the three-leg worked example, the reserve-margin habit, and the budget lines fuel does not cover.
💵Cost Per Mile, Explained
Fuel is only part of the number: the fuel-only figure from this page, then the all-in cost per mile the IRS benchmark describes.
🔌EV vs Gas: The Fuel-Cost Comparison
Electricity per mile against fuel per mile, both from prices you type in — no vehicle models, no asserted prices.
Related calculators
More tools for drivers and budgets.
Disclaimer
This calculator provides fuel-cost estimates for planning only. Your actual spend depends on real driving conditions, your vehicle’s true efficiency, and prices at the pumps you use, which change daily and vary by location. It counts fuel only — not tolls, parking, maintenance, or depreciation.