Gas Cost Calculator
A gas cost calculator turns three numbers into the one that matters before a drive: how many dollars of fuel the trip will take. Enter the distance, your MPG, and the local gas price, and the gas cost calculator above gives the gallons, the total cost, the cost per mile, and the round-trip figure. The default trip of 300 miles at 28 MPG and 4.15 dollars a gallon costs 44.46 dollars, or 15 cents a mile.
Gas prices move every week and differ by more than a dollar between states, so the national average is a poor substitute for the price at your station. In early November 2026 the US average for regular gasoline was 4.15 dollars a gallon, while California was near 5.75 dollars and the East Coast near 3.94 dollars. This page shows how the cost is worked out, how to use the calculator for trips, commutes, and splitting costs, and how to keep the estimate honest.
Vehicle presets:
Daily Commute Cost
Gas vs Electric Comparison
Compared over the trip distance above, using the trip MPG and gas price.
How Gas Cost Is Calculated
Gas cost has two steps. First, divide the trip miles by your MPG to get the gallons needed. Second, multiply the gallons by the gas price. For the default trip, 300 miles divided by 28 MPG is 10.71 gallons, and 10.71 times 4.15 dollars is 44.46 dollars. The cost per mile is the same idea in one step: the gas price divided by MPG. At 4.15 dollars and 28 MPG, that is 4.15 divided by 28, which is 15 cents a mile, and any trip’s cost is its miles times that figure.
The price you enter is the whole game. A 300-mile trip at 28 MPG costs 44.46 dollars at 4.15 dollars a gallon, but the same trip costs 61.57 dollars at the California price of 5.75 dollars, and 42.21 dollars at the East Coast price of 3.94 dollars. The US Energy Information Administration tracks the weekly average and the regional prices at eia.gov, and checking the regional figure before a long drive is worth more than any refinement of the MPG number. The calculator never hard-codes a price, because a price from last month is already wrong.
Fuel is only part of driving, and the calculator is honest about that. The cost per mile it reports is fuel only: no insurance, no tires, no maintenance, no depreciation, and no tolls. The IRS standard mileage rate covers all of those together and is a different number for a different purpose. For a road trip budget, fuel is usually the largest cash cost on the day, which is why it is the figure worth getting right first, and the calculator keeps it separate so you can add the other costs yourself.
Step 1 — Work Out the Gallons
Divide the trip distance by your MPG. A 300-mile trip at 28 MPG needs 10.71 gallons. A 100-mile trip at 25 MPG needs 4.00 gallons. A 340-mile trip at 28.5 MPG needs 11.93 gallons. If you do not know your MPG, measure it with the My MPG mode of the calculator from a fill-up, or use the official EPA rating for your car as a starting point.
Step 2 — Multiply by the Local Gas Price
Multiply the gallons by the price at your station. For the default trip, 10.71 gallons times 4.15 dollars is 44.46 dollars. For the 100-mile trip at 25 MPG and 3.50 dollars, 4.00 gallons times 3.50 is 14.00 dollars. Use the price you will actually pay, including any station or membership discount, because a 20-cent difference on 10.71 gallons is more than two dollars on the trip.
Step 3 — Double It for the Return and Split It Fairly
Tick the round-trip box and the default trip becomes 88.93 dollars for the drive there and back. Enter the number of passengers and the calculator divides the total: four people pay 11.12 dollars each on the default trip. For a regular commute, the calculator multiplies the one-way miles by two and by the working days, so a 25-mile one-way commute costs 154.00 dollars a month at 25 MPG and 3.50 dollars a gallon.
Worked Examples: Gas Cost by Trip
Each row is worked through the calculator with the inputs shown, so you can check every figure.
| Trip | MPG | Gas price | Gallons | Total cost | Round trip |
|---|---|---|---|---|---|
| 300 miles | 28 | $4.15 | 10.71 | $44.46 | $88.93 |
| 100 miles | 25 | $3.50 | 4.00 | $14.00 | $28.00 |
| 340 miles | 28.5 | $3.55 | 11.93 | $42.35 | $84.70 |
| 500 miles | 30 | $4.15 | 16.67 | $69.17 | $138.33 |
| 1,000 miles | 25 | $3.50 | 40.00 | $140.00 | $280.00 |
Check the 500-mile row: 500 divided by 30 is 16.67 gallons, and 16.67 times 4.15 is 69.17 dollars. The 1,000-mile row shows why MPG matters on long drives: at 25 MPG the trip costs 140.00 dollars, while at 35 MPG it would cost 100.00 dollars, a 40-dollar difference on one trip. Try your own route in the gas cost calculator and compare the round-trip column before you decide how to split the fuel.
How to Use the Gas Cost Calculator
Stay in Trip Cost mode for gas cost. The result updates as you type, so you can watch the cost move as you change the price or the MPG.
- Enter the trip distance in miles. The default is 300 miles. Use the map distance for the route you will actually drive, not the straight-line distance.
- Enter your vehicle’s MPG. The default is 28 MPG. Use your measured MPG from fill-ups, not the best figure the car has ever shown.
- Enter the gas price per gallon. The default is 4.15 dollars. Use the price at the station you will use, or the regional average for the states you will cross.
- Tick round trip if you are coming home. The default trip doubles from 44.46 dollars to 88.93 dollars.
- Set the number of people splitting the cost. Four people on the default trip pay 11.12 dollars each, which is the fair split for a shared drive.
What the Calculator Reports
The result panel lists every figure for the trip, so you can budget from it directly.
| Figure | What it is | Default value |
|---|---|---|
| Gallons needed | Trip miles divided by MPG | 10.71 gal |
| Total fuel cost | Gallons times gas price | $44.46 |
| Cost per mile | Gas price divided by MPG | $0.15 |
| Cost per 100 miles | Cost per mile times 100 | $14.82 |
| Cost per person | Total cost divided by people | $44.46 (1 person) |
| Round-trip cost | Total cost doubled | $88.93 |
| CO2 emitted | Gallons times 8.887 kg | 95.2 kg |
Common Mistakes When Estimating Gas Cost
Gas cost estimates go wrong in predictable ways. These are the ones to catch.
- Using the national average price. The US average hides a spread of nearly two dollars a gallon between California and the East Coast. Use the price where you will fill up.
- Using the highway MPG for a city trip. City driving can cost 20 to 30 percent more in fuel per mile than highway driving, because of stops, idling, and cold starts.
- Forgetting the return leg. A weekend trip is two drives, not one. The round-trip box exists because people forget this constantly.
- Using the sticker MPG as measured MPG. The official rating is a laboratory figure. Your measured MPG from fill-ups is the number your wallet sees.
- Ignoring the EV comparison. On a 300-mile trip, an EV at 3.5 miles per kilowatt-hour and 17 cents per kilowatt-hour costs 14.57 dollars against 44.46 dollars for gas, saving 29.89 dollars.
Where You Will Use a Gas Cost Calculation
Gas cost is the first line of any driving budget, and it turns up in more decisions than the trip itself.
- Road trip planning. Price the whole route before you leave, including the return, and set aside the fuel money so it is not a surprise.
- Splitting costs with friends. A per-person figure of 11.12 dollars on the default trip is fairer than guessing, and it settles the argument before the drive.
- Choosing a route. A shorter route with bad traffic can cost more in fuel than a longer highway route. Compare both with the calculator.
- Monthly budgeting. A 25-mile one-way commute costs 154.00 dollars a month in fuel at 25 MPG and 3.50 dollars a gallon, which is a fixed line in a household budget.
- Deciding whether to fly or drive. For two or more people, the fuel cost of driving is often far below the airfare, and the calculator gives the driving side of the comparison.
Tips for Lower Gas Costs
You cannot change the gas price, but you can change the gallons, and that is where the savings are.
- Drive smoothly. Gentle acceleration and steady speed use less fuel than hard starts and braking, and the difference shows up in the next fill-up.
- Keep tires inflated. Low tire pressure raises rolling resistance and can cut MPG by a few percent for no benefit.
- Remove roof racks when not in use. A rack adds drag at highway speed and costs fuel on every mile, even when it carries nothing.
- Combine errands into one trip. A cold engine uses more fuel, so one warm trip beats three cold ones for the same stops.
- Compare stations along your route. Prices vary by 20 or 30 cents between stations in the same town, which is two or three dollars on a fill-up.
Gas Cost Quick Answers
These are the figures people look up most often, each one verified against the calculator above.
| Question | Answer |
|---|---|
| What does a 300-mile trip cost in gas? | $44.46 at 28 MPG and $4.15/gal |
| What does a 100-mile trip cost? | $14.00 at 25 MPG and $3.50/gal |
| What does a 1,000-mile trip cost? | $140.00 at 25 MPG and $3.50/gal |
| What is the monthly commute cost? | $154.00 (25 mi one-way, 22 days) |
| What does the same trip cost in an EV? | $14.57, saving $29.89 versus gas |
Related tools on this site: the main gas cost calculator, the length converter for route distances, the time calculator for driving time, and the compound interest calculator to see what years of fuel savings add up to.
Frequently Asked Questions
How much does gas cost for a 300-mile trip?
At 28 MPG and 4.15 dollars a gallon, a 300-mile trip uses 10.71 gallons and costs 44.46 dollars one way, or 88.93 dollars round trip. At a different MPG or price, divide the miles by your MPG and multiply by the price.
How do I calculate gas cost for a road trip?
Divide the trip miles by your MPG to get the gallons, then multiply by the gas price. A 340-mile trip at 28.5 MPG and 3.55 dollars a gallon uses 11.93 gallons and costs 42.35 dollars. The calculator above does both steps at once.
How much does a monthly commute cost in gas?
A 25-mile one-way commute, 22 working days a month, at 25 MPG and 3.50 dollars a gallon costs 7.00 dollars a day, 154.00 dollars a month, and 1,848.00 dollars a year in fuel alone.
Why does gas cost vary so much by state?
State fuel taxes, refinery locations, and local supply all move the price. In early November 2026, California was near 5.75 dollars a gallon while the East Coast was near 3.94 dollars, against a national average of 4.15 dollars.
Is driving cheaper than flying?
For one person on a long route, flying often wins. For two or more people, driving usually wins, because the fuel cost is shared and does not multiply per person the way airfare does. Price the drive with the calculator and compare it with the total airfare.
Disclaimer: This calculator is for general information only. Gas prices change daily and vary by location, and your real fuel economy depends on your car, driving style, and road conditions. Use the figures as estimates for planning, not as exact costs.
