Trip Fuel Cost Calculator
Estimate gas cost for a single trip from distance, MPG, and fuel price. Edit the defaults to match your car and local prices.
Your inputs
These are editable defaults, not live market rates.
Defaults last set: 2026-07
Updates as you type
Driving distance lookup
Fills trip distance from Mapbox driving directions. You can still edit miles.
Editable default — not a live API price
Use my state’s prices
Statewide averages for comparison — not your local pump or utility. Source: ConvertRubix curated estimates for comparison. As of 2026-10-01.
Estimated costs
This trip costs about $37.50 in fuel
Trip fuel cost
$37.50
Gallons needed
10.71
Cost per mile
$0.13
Fuel cost along the trip
Over 300 miles, cumulative fuel cost is about $37.50.
Assumes constant MPG and gas price along the trip — not traffic, elevation, or price changes.
Gas prices vary by region and time. Results are estimates for comparison only — not financial advice.
How we calculate
Gallons needed = distance ÷ MPG. Trip fuel cost = gallons × price per gallon. Cost per mile = price per gallon ÷ MPG. Solve for budget rearranges the same formulas so cost stays at most your target (threshold answer).
The trip chart plots cumulative fuel cost from mile 0 to your distance, assuming constant MPG and gas price along the trip — not traffic, elevation, or price changes.
Optional From/To uses Mapbox to estimate driving distance and time. You can always type miles yourself. Fuel cost still uses your MPG and gas price — estimates only.
Optional state averages from Use my state’s prices come from curated comparison data bundled with the site, not a live personal quote or pump price.
Prices are editable defaults, not live market rates. Results are estimates for comparison only — not financial advice.
When you open a shared link, we may compare the saved statewide average gas price to today’s statewide average. If they differ by 2% or more, a banner shows the change and lets you recalculate with today’s price. User-typed prices are never compared.
Related tools
Frequently asked questions
No. The calculator uses an editable US default, not a live market API. Update the price to match your area.