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.
Prices come from the U.S. Energy Information Administration (EIA.gov) and refresh every business day. 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 $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¢.
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 live price page for every state, built on the EIA's weekly retail survey and refreshed each business day.
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 72.5¢ per mile for 2026(Notice 2026-10, announced December 29, 2025). Our reimbursement and deduction calculators already use the new rates, so there's no manual lookup needed.
The IRS rate covers more than fuel. It bakes in depreciation, insurance, and maintenance, which is why reimbursement per mile is roughly five times what most drivers spend on gas alone, 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 | 2026 rate | Change vs 2025 |
|---|---|---|
| Business | 72.5¢ per mile | up 2.5¢ |
| Medical | 20.5¢ per mile | down 0.5¢ |
| Moving (qualified military) | 20.5¢ per mile | down 0.5¢ |
| Charitable | 14¢ per mile | no change |
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 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
7 min read
Cost to Drive Houston to San Antonio: 2026 Guide
Find the real cost to drive from Houston to San Antonio in 2026 with one-way and round-trip gas estimates by MPG. Texas gas is cheap. Calculate yours now.
7 min read
Cost to Drive San Diego to Las Vegas: 2026 Guide
See the real cost to drive from San Diego to Las Vegas in 2026 with gas estimates by MPG plus where to fill up cheaper. Calculate your exact trip now.
7 min read
Cost to Drive Denver to Salt Lake City: 2026 Guide
Find the real cost to drive from Denver to Salt Lake City in 2026 with gas estimates by MPG. Mountain grades affect MPG. Calculate your exact trip now.
7 min read
Cost to Drive Phoenix to LA: 2026 Gas Estimate
See the real cost to drive from Phoenix to Los Angeles in 2026 with one-way and round-trip gas estimates by MPG plus fill-up tips. Calculate your trip now.
