Gas Cost Calculator: Estimate Your Trip Fuel Cost in Seconds
The average American household spends about $3,120 a year on gasoline(U.S. Bureau of Labor Statistics), yet most of us only find out what a trip costs after we've paid for it. Enter three numbers (distance, your car's MPG, and the price per gallon) and see gallons needed, total trip cost, and cost per mile before you turn the key.
Driving several stops? Plan the whole route in the Trip Planner →
U.S. National Average
$4.28/gal
EIA week of
October 19, 2026
U.S. National Average
$4.28/gal
EIA week of October 19, 2026
Prices come from the U.S. Energy Information Administration (EIA.gov) and update weekly. See how we source our data →
How the gas cost calculator works
No black box here. Say you're driving 400 miles from Dallas to Houston and back in a car that gets 32 MPG, with gas at an example price of $3.96 a gallon. You'll burn about 12.5 gallons, spend roughly $49.50, and pay just over 12 cents per mile. That's the whole calculation, and it works the same for a daily commute, a delivery route, or a cross-country road trip.
One honest caveat: your window-sticker MPG is optimistic. Real-world fuel economy typically runs 10 to 15% lower in city traffic, cold weather, or hilly terrain. If you want a tighter estimate, calculate your actual MPG from your last fill-up. Our MPG calculator does it in one step, and the cost per mile tool adds maintenance and depreciation.
Worked example
12.5 gallons × $3.96 = $49.50
The formula is trip cost = (distance ÷ MPG) × price per gallon, the same one the U.S. Department of Energy uses. Cost per mile is just $49.50 ÷ 400 miles ≈ 12.4¢. The $3.96 price is only an example; the calculator above starts from this week's EIA average.
| Trip | Miles | MPG | Price/gal | Gallons | Fuel cost | Per mile |
|---|---|---|---|---|---|---|
| Weekend road trip | 300 | 30 | $3.50 | 10 | $35.00 | 11.7¢ |
| Daily commute | 40 | 25 | $4.00 | 1.6 | $6.40 | 16.0¢ |
| Long drive in a larger SUV | 520 | 20 | $4.25 | 26 | $110.50 | 21.3¢ |
Today's gas prices, straight from the EIA
A calculator is only as good as the price you feed it, and prices swing hard by state. California drivers routinely pay over a dollar more per gallon than drivers in Texas or Mississippi. We maintain a price page for every state, built on the EIA's weekly retail survey and refreshed when each week's figures come out.
Planning a multi-state trip? See the cheapest states for gas to time your fill-ups, or check price trends since 2020.
2026 IRS mileage rates, built into our tax tools
Driving for work? The IRS raised the business mileage rate to 76¢ per mile for miles driven from July 1, 2026 (Announcement 2026-11), up from 72.5¢ for January to June. Our reimbursement and deduction calculators have both 2026 rates: pick when the miles were driven and the right rate is applied.
The IRS rate covers more than fuel. It bakes in depreciation, insurance, and maintenance, which is why 76¢ a mile is about five times the 14¢ a mile a 25 MPG car spends on gas at an example $3.50 a gallon, and why freelancers and delivery drivers leave money on the table when they only track fuel receipts.
Reimbursement calculator · Business deduction · 2026 rate explained
| Purpose | From Jul 1, 2026 | Jan to Jun 2026 | 2025 |
|---|---|---|---|
| Business | 76¢/mi | 72.5¢/mi | 70¢/mi |
| Medical | 23.5¢/mi | 20.5¢/mi | 21¢/mi |
| Moving (qualified military) | 23.5¢/mi | 20.5¢/mi | 21¢/mi |
| Charitable | 14¢/mi | 14¢/mi | 14¢/mi |
EV vs gas: which is cheaper where you live?
The answer genuinely depends on your state. Cheap electricity plus expensive gas makes an EV a clear win in some states; in others, the gap nearly closes. Our comparison tools put your state's electricity rates and gas prices side by side and show the real cost per mile for each.
20+ free driving cost tools
Every tool runs in your browser, requires no sign-up, and shows its formula. Start with the one that matches your situation.
Mileage & tax tools
Where this estimate can miss (and how to fix it)
We'd rather tell you the limits than pretend there aren't any. Three things move your real cost away from the estimate:
Who's behind GasBudgeter
GasBudgeter is an independent set of driving cost tools. Every price on this site traces to a named public source (gas prices from EIA.gov, mileage rates from IRS.gov), and our Methodology and Sourcespages document how each number is pulled and when it was last refreshed. We don't sell fuel cards, insurance, or leads, so we have no reason to nudge your numbers.
Methodology · Sources · About
Frequently asked questions
How accurate is a gas cost calculator?
Where do your gas prices come from?
What is the 2026 IRS mileage rate?
How do I calculate gas cost for a trip?
Should I use city or highway MPG?
Can I compare two cars for the same trip?
Should I use national or local gas prices?
What if I don't know my car's MPG?
Is mileage reimbursement the same as fuel cost?
Can I compare EV charging with gas costs here?
Know your trip cost before you drive
Enter your distance, MPG, and local gas price in the calculator above, or jump straight to your state's live prices and start from a number you can trust.
From the blog
Guides, tips, and explainers on fuel costs and mileage
6 min read
Thanksgiving 2026 Road Trip Gas Cost: 20 Drives Priced
Gas cost for 20 big city Thanksgiving drives at this week's prices, plus 12 years of EIA data on how gas prices move before the holiday.
7 min read
Christmas 2026 Road Trip Gas Cost: 22 Drives Priced
Gas cost for 22 Christmas drives at this week's prices, 12 years of EIA data on December prices, and how much more fuel winter weather really takes.
7 min read
Cost to Drive Route 66 End to End: 2026 Gas Guide
See the real cost to drive Route 66 end to end in 2026, with gas estimates by MPG across all eight states plus fill-up tips. Calculate your road trip now.
7 min read
Cost to Drive the Pacific Coast Highway: 2026 Guide
Find the cost to drive the Pacific Coast Highway in 2026, with gas estimates by MPG for California’s Highway 1 plus fill-up tips. Calculate your trip now.
