Fuel Cost Calculator
Estimate the gas cost of any trip from distance, MPG & price per gallon
๐ Trip details
Set to 1 to see the full cost; raise it to split a carpool.
Last updated June 2026
Method: Fuel cost uses the standard formula (distance ÷ MPG) × price per gallon. Gallons needed is distance divided by MPG. The round-trip option doubles the one-way distance before any cost is computed.
Included: Total fuel cost, gallons needed, cost per mile, an optional per-person split for carpools, and a table of costs at nearby pump prices.
Not included: Tolls, parking, vehicle wear, maintenance, depreciation, and EV charging. Real-world MPG varies with driving conditions, so results are estimates.
Fuel cost calculator: everything you need to know
A 300-mile drive sounds like one number, but the cost depends entirely on what you drive and what gas costs that week. In a car that gets 28 MPG with the pump at $3.50 a gallon, that trip burns about 10.7 gallons and costs roughly $37.50 one way - or about $75 round trip. Swap in a thirsty SUV at 18 MPG and the same drive jumps to around $58 one way. This fuel cost calculator turns three simple inputs - distance, your vehicle's MPG, and the price per gallon - into the real dollar figure for any trip, plus the gallons you'll need and the cost per mile.
How the trip fuel cost is calculated
The math behind a trip's gas cost is short and reliable. First you find how many gallons the trip will use, then you multiply by the pump price:
Fuel cost = (distance ÷ MPG) × price per gallon The first part, distance ÷ MPG, is the gallons needed. Multiplying gallons by the price per gallon gives the total cost. For a round trip, double the distance before you start. That's the entire model - no hidden steps - which is why a back-of-the-envelope estimate and this calculator agree.
What "gallons needed" means
Gallons needed is just the fuel your engine will consume to cover the distance: distance divided by MPG. A 420-mile trip in a vehicle rated at 30 MPG needs 420 / 30 = 14 gallons. Knowing the gallon figure is useful beyond cost - it tells you roughly how many fill-ups a long drive will take and whether your tank can cover a stretch with few gas stations.
How to use this fuel cost calculator
You only need three numbers to get a realistic estimate. Work through the fields in order:
- Trip distance: enter the one-way mileage. A map app's route distance is a good source. Use the quick-pick buttons for common lengths.
- Vehicle MPG: enter your car's real, measured miles per gallon. If you don't track it, work it out from a recent tank with the Gas Mileage Calculator, or use the EPA combined rating from the window sticker as a starting point.
- Gas price: type the price per gallon you expect to pay. Use a current local price for accuracy.
- Round trip: check the box if you're driving there and back, and the calculator doubles the distance automatically.
- Split between: enter how many people share the ride to see each person's share of the fuel cost.
The result shows the total fuel cost up top, with gallons needed and cost per mile below, plus a small table showing how the cost moves if pump prices are a little higher or lower than you entered.
Who this calculator is for
Anyone trying to turn "miles" into "dollars" before they drive. That includes:
- Road trippers budgeting fuel for a vacation or long weekend.
- Commuters pricing out a daily or weekly drive to compare jobs, homes, or routes.
- Carpoolers and rideshares figuring a fair per-person split for gas.
- Gig and delivery drivers estimating the fuel side of their costs.
- Anyone comparing cars or routes who wants to see how MPG or distance changes the bill.
Worked example 1: a one-way drive
You're driving 300 miles in a sedan that gets 28 MPG, with gas at $3.50/gallon. Gallons needed: 300 / 28 = 10.71 gallons. Total cost: 10.71 × $3.50 = about $37.50. Cost per mile works out to roughly $0.125 - about 12.5 cents for every mile you drive.
Worked example 2: a round trip, split three ways
Three friends take a 250-mile drive each way in an SUV that gets 22 MPG, with gas at $3.80/gallon. Round trip distance is 500 miles. Gallons needed: 500 / 22 = 22.7 gallons. Total cost: 22.7 × $3.80 = about $86.40. Split three ways, each person owes roughly $28.80 in gas - far less than they'd each pay driving separately.
Worked example 3: same trip, different vehicles
For a fixed 500-mile trip at $3.50/gallon, the vehicle is the biggest lever. A hybrid at 45 MPG uses 11.1 gallons (about $38.90). A typical sedan at 30 MPG uses 16.7 gallons (about $58.30). A pickup at 18 MPG uses 27.8 gallons (about $97.20). Same road, same gas price - more than double the cost depending on what's in the driveway.
Reference: cost of a 100-mile trip by MPG and gas price
Use this table to eyeball the fuel cost of a 100-mile drive. Scale it for your trip - a 300-mile drive is simply three times these figures.
| MPG | $3.00/gal | $3.50/gal | $4.00/gal | $4.50/gal |
|---|---|---|---|---|
| 15 | $20.00 | $23.33 | $26.67 | $30.00 |
| 20 | $15.00 | $17.50 | $20.00 | $22.50 |
| 25 | $12.00 | $14.00 | $16.00 | $18.00 |
| 30 | $10.00 | $11.67 | $13.33 | $15.00 |
| 40 | $7.50 | $8.75 | $10.00 | $11.25 |
| 50 | $6.00 | $7.00 | $8.00 | $9.00 |
Figures are fuel cost per 100 miles, rounded to the cent.
Key terms explained
- MPG (miles per gallon): how far your vehicle travels on one gallon of fuel. Higher is more efficient and cheaper to drive.
- Gallons needed: the fuel a trip consumes, equal to distance divided by MPG.
- Cost per mile: total fuel cost divided by miles driven - a handy way to compare trips or vehicles.
- Combined MPG: the EPA's blend of city and highway driving, the most common single MPG figure for a vehicle.
- Round trip: the full there-and-back distance, double the one-way figure.
What changes the cost the most
If you adjust the inputs and watch the total move, a few factors dominate:
- MPG: the single biggest lever. Going from 20 to 40 MPG cuts the fuel cost in half for the same trip.
- Distance: cost scales directly with miles - double the trip, double the gas.
- Gas price: a $0.50 swing in the pump price changes the bill by about 12-15% at typical prices.
- Driving style: steady, moderate speeds beat hard acceleration and high-speed cruising, which can quietly drop your real MPG.
- Passengers: they don't change total fuel much, but they slash the per-person cost when you split a carpool.
Tips to lower your fuel cost
- Ease off the speed: fuel economy usually drops sharply above 50-60 mph, so a calmer highway pace saves real money.
- Keep tires inflated: under-inflated tires raise rolling resistance and cut MPG.
- Lose dead weight and drag: remove roof racks, cargo boxes, and heavy items you don't need.
- Combine trips: a warm engine is more efficient than several cold starts for short errands.
- Shop the pump: prices vary station to station; filling up just off the highway or away from tourist areas often costs less.
- Carpool: the cheapest way to cut your share is to split the same drive across more people.
Limitations and assumptions
This calculator is a planning estimate, not an exact figure. Keep these in mind:
- It assumes a constant MPG for the whole trip; real mileage varies with speed, terrain, weather, and load.
- It uses a single gas price, but prices differ between stations and can change mid-trip.
- It covers fuel only - not tolls, parking, maintenance, tire wear, or vehicle depreciation.
- It is built for gasoline and diesel vehicles measured in MPG, not electric vehicles priced per kWh.
Pricing a commute: daily, monthly, and yearly fuel cost
A trip cost is easy to extend into a recurring commute budget, which is often the real question behind "how much does my drive cost?" Work out a single round-trip day, then scale it. Suppose your commute is 25 miles each way - 50 miles round trip - in a car that gets 30 MPG, with gas at $3.50/gallon. That is 50 / 30 = 1.67 gallons, or about $5.83 a day. Multiply by a typical 21 working days a month and you are looking at roughly $122 a month, or about $1,470 a year just to get to work. Bump the car down to 20 MPG and the yearly figure jumps past $2,200. Seeing the annual number is what makes a more efficient vehicle, a shorter route, or a carpool feel worth it - small daily costs compound fast over a full year of driving.
To price a commute with this calculator, enter the one-way distance, check round trip, and read the daily total; then multiply by the days you actually drive. If you want to compare two routes or two cars, run each set of inputs and note the cost-per-mile figure - it strips out distance so you can judge efficiency directly. For an irregular schedule, total your driving days first with the Hours Calculator or count them with the Date Calculator, then apply the per-day cost.
Gas vs. diesel vs. hybrid: reading the cost difference
Fuel type changes the math in two ways at once: the price per gallon and the miles per gallon. Diesel often costs more per gallon than regular gasoline, but diesel engines frequently return higher MPG, so the cost per mile can still come out lower on long highway trips - enter your real diesel MPG and the current diesel pump price rather than assuming. Hybrids win on efficiency, especially in stop-and-go city driving where the electric motor does more of the work, so the same route can cost a third less than in a comparable gas-only car. Premium gasoline only matters if your vehicle requires it; paying for premium in a car designed for regular adds cost with no MPG benefit. Whatever you drive, the calculator stays accurate as long as the MPG and price you enter match that specific fuel.
Related concepts and calculators
This page answers "what will gas cost for this trip?" If your question is a little different, a sister tool fits better:
- To find your vehicle's actual MPG from miles driven and gallons used, use the Gas Mileage Calculator.
- To measure the route mileage between two points before pricing the gas, use the Distance Calculator.
- To estimate how long a drive takes from distance and average speed, use the Speed, Distance & Time Calculator.
- To split a restaurant bill or shared expense on the road, use the Tip Calculator.
- To total driving hours across legs of a trip, use the Hours Calculator; to count the days between travel dates, use the Date Calculator.
Sources
- U.S. Department of Energy & EPA - fueleconomy.gov: official MPG ratings and fuel-cost estimates.
- U.S. Department of Energy - Driving more efficiently (speed, idling, and MPG).
- U.S. Energy Information Administration (EIA) - Weekly U.S. gasoline and diesel retail prices.
โ ๏ธ Common mistakes & edge cases
Using the sticker MPG, not your real MPG
The EPA window-sticker number is a lab estimate; most drivers see somewhat less in daily use. Measure your own MPG between fill-ups for a more honest trip cost.
Forgetting the return trip
It's easy to enter only the one-way distance and budget half the gas you'll actually need. Check the round-trip box, or double the miles yourself, whenever you're driving there and back.
Assuming one flat gas price
Prices vary by station, region, and over the days of a long trip. Use a realistic current price, and check the nearby-price table to see how much a swing at the pump would change your bill.
Treating fuel as the whole trip cost
Gas is only one line item. Tolls, parking, food, lodging, and vehicle wear add up too. This tool prices fuel - budget the rest separately so the total doesn't surprise you.
❓ Frequently asked questions
How do you calculate the fuel cost of a trip?
Divide the trip distance by your vehicle's MPG to get the gallons you'll burn, then multiply by the price per gallon: Cost = (distance / MPG) x price per gallon. For example, a 300-mile trip in a car that gets 28 MPG at $3.50/gallon uses about 10.7 gallons and costs roughly $37.50.
How many gallons of gas will my trip use?
Gallons needed equals the trip distance divided by your vehicle's miles per gallon. A 300-mile trip at 28 MPG uses 300 / 28 = about 10.7 gallons. For a round trip, double the distance first. Always use your car's real-world MPG rather than the sticker number for a closer estimate.
What MPG should I use in the calculator?
Use your vehicle's real, measured MPG if you can. You can find it by tracking miles driven between two fill-ups and dividing by the gallons it took to refill. If you don't have that, the EPA combined rating on the window sticker or at fueleconomy.gov is a reasonable starting point, though most drivers see somewhat lower numbers in real conditions.
How do I figure the cost of a round trip?
Check the 'round trip' box and the calculator doubles the one-way distance before working out gallons and cost. If you prefer to do it by hand, just multiply the one-way distance by two, then apply the formula: (round-trip miles / MPG) x price per gallon.
Does highway or city driving change the cost?
Yes. Most cars get noticeably better MPG on the highway than in stop-and-go city traffic, so a mostly-highway trip costs less per mile than an urban one. If your route is mixed, use a combined MPG figure; if it's almost all highway or all city, use that specific rating for a tighter estimate.
How can I split the fuel cost with passengers?
Enter the number of people sharing the ride in the 'split between' field and the calculator divides the total fuel cost evenly. This is handy for carpools and road trips. Note it only splits fuel; tolls, parking, food, and lodging are separate costs you'd divide on your own.
Why is my real fuel cost different from the estimate?
The formula assumes a steady MPG, but real mileage swings with speed, traffic, hills, headwinds, cold weather, running the A/C, roof racks, heavy cargo, and tire pressure. Gas prices also change between stations and over the course of a trip. The calculator gives a solid planning estimate, not a guarantee.
Does this work for electric vehicles?
Not directly. This tool is built around gallons of gasoline and price per gallon. An EV's energy use is measured in kWh per mile and priced in dollars per kWh, so the math is different. For a gas or diesel vehicle with an MPG rating, though, the calculator works as intended.
How do I lower the fuel cost of a trip?
Drive a more efficient vehicle or route, keep your speed steady and moderate (fuel economy drops sharply above about 50-60 mph), keep tires properly inflated, remove roof racks and unneeded weight, combine errands, and fill up where gas is cheaper. Carpooling spreads the cost across more people, lowering each person's share.
Is the gas price in the calculator before or after tax?
Use the pump price you actually pay, which already includes federal and state fuel taxes. In the United States, advertised gas prices at the station are the all-in price per gallon, so just enter the number on the sign or your receipt.
๐ก Good to know
MPG matters more than you think
Doubling your fuel economy halves your gas cost for the same trip. Over a year of driving, the gap between a 20 MPG vehicle and a 40 MPG one can be hundreds or thousands of dollars.
Speed quietly raises the bill
Fuel economy tends to fall off above 50-60 mph because aerodynamic drag climbs fast. Easing your highway speed is one of the simplest ways to cut a long trip's fuel cost.
Carpooling is the easiest discount
Adding passengers barely changes total fuel use but divides the cost. Four people sharing a drive each pay a quarter of the gas - often the single biggest saving on a road trip.
Related Calculators
Tip Calculator
Calculate the tip and split the bill between people
Age Calculator
Calculate your exact age in years, months and days
Date Calculator
Add or subtract days and find the duration between dates
Time Calculator
Add, subtract and convert hours, minutes and seconds
Hours Calculator
Calculate hours worked between two times
Gas Mileage Calculator
Calculate your MPG and fuel cost per trip