
Gas Cost Calculator
Free gas cost calculator. Enter trip distance, your mpg and the price per gallon to estimate fuel cost, using distance divided by mpg times price.
There was an error with your calculation.
| Consumption | Consumed | Cost |
|---|---|---|
| 5 mpg | 64 gal | $288.00 |
| 10 mpg | 32 gal | $144.00 |
| 20 mpg | 16 gal | $72.00 |
| 30 mpg | 10.7 gal | $48.00 |
| 40 mpg | 8 gal | $36.00 |
| 50 mpg | 6.4 gal | $28.80 |
| 60 mpg | 5.3 gal | $24.00 |
Gas cost calculator at a glance#
A gas cost calculator estimates the fuel cost of a trip from three inputs: the distance, your vehicle’s fuel efficiency in miles per gallon, and the price per gallon. The formula is trip cost = (distance / mpg) × price per gallon.
Worked example: a 300 mile trip in a car that gets 30 mpg, with gas at $3.50 per gallon, uses 300 / 30 = 10 gallons. At $3.50 a gallon that is 10 × 3.50 = $35 for the trip.
| Distance | Fuel Used (at 30 mpg) | Trip Cost (at $3.50/gal) |
|---|---|---|
| 120 mi | 4 gal | $14.00 |
| 300 mi | 10 gal | $35.00 |
| 450 mi | 15 gal | $52.50 |
| 600 mi | 20 gal | $70.00 |
To work it out by hand, divide the trip distance by your miles per gallon to get the gallons needed, then multiply by the price per gallon. Enter your distance, mpg, and gas price in the calculator above for the exact cost. Real trips vary, since highway and city driving, traffic, and prices along the route all shift the final figure.
A second worked example#
Say you drive from New York City to Washington D.C., about 225 miles, in a car that gets 30 mpg, with gas at $3.25 a gallon. The trip uses 225 / 30 = 7.5 gallons. At $3.25 a gallon that is 7.5 × 3.25 = $24.38 of fuel one way. Double it for the return leg if you fill up at similar prices.
Two inputs move the cost the most: your mpg and the price per gallon. A car that does 20 mpg instead of 30 burns half again as much fuel over the same distance, and a 50 cent jump in pump price raises the bill on a 10 gallon trip by $5.
Getting an accurate estimate#
The calculator assumes one steady mpg and one fuel price, but real driving varies. Highway miles usually beat your rated mpg, while city traffic, idling, hills, a roof box, or a heavy load push fuel use up. For a trip that crosses regions where prices differ, run the calculation in segments using the price you expect in each.
To improve real mileage, keep tires inflated, hold a steady speed, use cruise control on the highway, and avoid hard acceleration and braking. These habits cut gallons used, which is the number that drives the cost.
Gas cost questions#
How do I calculate fuel cost for a trip?#
Divide the trip distance by your vehicle’s mpg to get gallons needed, then multiply by the price per gallon. A 300 mile trip at 30 mpg uses 10 gallons; at $3.50 a gallon that is $35.
What information do I need?#
Three numbers: the total distance in miles, your vehicle’s fuel efficiency in miles per gallon, and the current price per gallon. The mpg is on your window sticker or trip computer, and you read the price at the pump.
Why does my vehicle’s mpg matter so much?#
Because it sets how many gallons the trip needs. A more efficient car covers the same distance on less fuel, so the same route can cost noticeably less. Halving your mpg roughly doubles the fuel bill.
Does the calculator update gas prices automatically?#
No. You enter the current price yourself. Check a fuel price app or a station near your route, since prices vary by state, region, and station.
How accurate is the estimate?#
It is a solid baseline. Actual cost shifts with driving conditions, real mpg, and price changes along the way, so treat the figure as a planning number rather than an exact total.
How can I lower the fuel cost?#
Drive a more efficient route, keep a steady speed, avoid heavy traffic and idling, and keep the vehicle maintained. Each of these trims gallons used, which directly lowers the cost.