Driving Distance Calculator
Calculate driving distance, travel time, fuel consumption, and trip costs. Plan road trips with rest stops and fuel efficiency estimates.
Driving Distance Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Time = Distance / Speed | Fuel = Distance / MPG | Cost = Fuel x Price
Worked example — Total time: 8h 15m | Fuel: 15.0 gal ($54.00) | $0.12/mile
Formula
Time = Distance / Speed | Fuel = Distance / MPG | Cost = Fuel x Price
Driving time is distance divided by average speed. Fuel consumption is distance divided by fuel efficiency (mpg). Total trip cost is gallons used multiplied by fuel price per gallon.
Worked Examples
Example 1: Weekend Road Trip Calculation
Problem:Plan a 450-mile road trip at 60 mph average speed, 30 mpg fuel efficiency, $3.60/gallon gas, with 3 rest stops of 15 minutes each.
Solution:Driving time: 450 / 60 = 7.5 hours (7h 30m) Rest stop time: 3 x 15 = 45 minutes Total trip time: 7h 30m + 45m = 8h 15m Fuel needed: 450 / 30 = 15.0 gallons Fuel cost: 15.0 x $3.60 = $54.00 Cost per mile: $54.00 / 450 = $0.12/mile
Result:Total time: 8h 15m | Fuel: 15.0 gal ($54.00) | $0.12/mile
Example 2: Cross-Country Drive Estimation
Problem:Calculate a 1,200-mile cross-country drive at 55 mph average, 25 mpg, $3.80/gallon, with 6 stops of 20 minutes each.
Solution:Driving time: 1,200 / 55 = 21.8 hours (21h 49m) Rest stop time: 6 x 20 = 120 minutes (2 hours) Total trip time: 21h 49m + 2h = 23h 49m Fuel needed: 1,200 / 25 = 48.0 gallons Fuel cost: 48.0 x $3.80 = $182.40 Cost per mile: $182.40 / 1,200 = $0.15/mile
Result:Total time: 23h 49m | Fuel: 48.0 gal ($182.40) | $0.15/mile
Frequently Asked Questions
How is driving time calculated from distance and speed?
Driving time is calculated using the fundamental physics formula: Time = Distance divided by Speed. For example, a 300-mile trip at an average speed of 60 mph takes 300 / 60 = 5 hours of pure driving time. However, real-world driving time is always longer due to rest stops, fuel stops, traffic delays, and speed variations through towns and construction zones. Most trip planners recommend adding 10-15 percent to calculated driving time for these variables. Interstate highway driving typically averages 55-65 mph accounting for speed limit variations, while mixed highway and city driving averages 40-50 mph depending on traffic density.
How do I estimate fuel costs for a road trip?
Fuel cost is calculated by dividing total distance by your vehicle fuel efficiency (miles per gallon) to get gallons needed, then multiplying by the current fuel price. For example, a 500-mile trip in a car averaging 28 mpg requires 500 / 28 = 17.9 gallons. At $3.50 per gallon, fuel cost is 17.9 x $3.50 = $62.50. Keep in mind that highway driving typically achieves better fuel efficiency than city driving, and factors like elevation changes, headwinds, heavy loads, and aggressive acceleration can reduce your actual mpg by 10-25 percent versus EPA estimates. Air conditioning use can also reduce efficiency by 5-10 percent.
What is a good average speed to use for trip planning?
For predominantly interstate highway driving in the United States, 60-65 mph is a realistic average speed that accounts for speed limit variations, occasional slowdowns, and passing through smaller towns. For mixed highway and rural road driving, use 45-55 mph. For trips involving significant city or suburban driving, 30-40 mph is more realistic. In mountainous terrain, reduce estimates by 10-15 mph due to curves, grades, and lower speed limits. European motorway driving averages about 110-120 km/h (68-75 mph), while UK motorway averages are around 60-65 mph. Always check for construction zones or seasonal road closures that might affect your route.
How often should I take rest stops on a long drive?
Safety experts recommend stopping every 2 hours or 100-150 miles for a 10-15 minute break. The National Highway Traffic Safety Administration reports that drowsy driving causes an estimated 100,000 crashes annually. Signs of fatigue include difficulty focusing, frequent yawning, drifting from your lane, and missing exits. For drives over 500 miles, plan at least 3-4 stops including a longer meal break of 30-45 minutes. Professional drivers are legally required to take a 30-minute break after 8 hours of driving. Stretching during stops improves circulation and alertness. If driving with passengers, switching drivers every 2-3 hours significantly reduces fatigue risk.
How do I convert between miles per gallon and liters per 100 km?
To convert miles per gallon (mpg) to liters per 100 km (L/100km), use the formula: L/100km = 235.215 divided by mpg. For example, 28 mpg equals 235.215 / 28 = 8.4 L/100km. The relationship is inverse, meaning higher mpg equals lower L/100km and vice versa. Common equivalencies include: 20 mpg = 11.8 L/100km, 25 mpg = 9.4 L/100km, 30 mpg = 7.8 L/100km, 35 mpg = 6.7 L/100km, and 40 mpg = 5.9 L/100km. European and Japanese markets typically use L/100km, while the United States, United Kingdom, and Canada primarily use mpg (though the UK uses imperial gallons which are 20 percent larger than US gallons).
Why is road driving distance longer than the straight-line distance between two cities?
Straight-line or great-circle distance is the shortest path over the earth's surface, but roads must follow a network constrained by terrain, rivers, land ownership and junction placement. The ratio of road distance to straight-line distance is called the circuity factor and is always greater than one, rising sharply where mountains, coastlines or river crossings force detours and falling where a dense grid or a direct motorway exists. Always enter the mapped route distance in Driving Distance Calculator, not a point-to-point map measurement, or both the time and fuel estimates will come out low.
How much time does driving faster actually save on a long trip?
Because time is distance divided by speed, the saving from each extra mph shrinks as speed rises. On a 300-mile trip, raising the average from 65 to 70 mph cuts the drive from 4 hours 37 minutes to 4 hours 17 minutes — about 20 minutes. The same 5 mph increase from 45 to 50 mph saves roughly 40 minutes over that distance. Since aerodynamic drag grows with the square of speed, the fuel penalty moves in the opposite direction, so the fastest average is rarely the cheapest one on a long haul.
How do terrain, load and towing change the fuel estimate?
The MPG figure you enter is normally a steady-state highway number. Sustained climbs demand extra work against gravity and cannot be fully recovered on the descent, so mountain routes consume noticeably more fuel than flat ones of the same length. Extra mass — passengers, luggage, a roof box — raises rolling resistance and climbing energy, while a roof box or trailer mainly increases aerodynamic drag. Towing is the largest single penalty. For loaded or hilly trips, reduce the MPG input rather than the distance so both the gallons and the cost scale correctly.
How do you work out where to schedule fuel stops on a route?
Multiply your usable tank capacity by your expected highway MPG to get realistic range, then subtract a reserve so you are not hunting for a station on fumes. A 14-gallon usable tank at 30 MPG gives about 420 miles, so planning to refuel every 350 to 370 miles keeps a comfortable margin. Divide the trip distance by that interval to get the number of fuel stops, and add each one to the rest-stop count in Driving Distance Calculator, since a fill-up typically takes ten minutes or more once queueing and payment are included.
What is the difference between the cost-per-mile shown here and a full cost-per-mile figure?
Driving Distance Calculator reports fuel cost per mile only — gallons used multiplied by pump price, divided by distance — which is why the figure lands near 10 to 15 cents for an efficient car. A full ownership cost per mile also carries depreciation, insurance, tyres, servicing and financing, and is several times larger. Use the fuel-only figure when the vehicle is already owned and you are comparing routes or fuel prices; use a full cost-per-mile figure when comparing driving against flying, renting, or a mileage reimbursement rate.
References
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer · Editorial policy
Related Calculators
🧮Route Distance Calculator (Lat/Long)
Calculate route distance between coordinates with inputs, formulas, and instant results.
🧮Flight Distance Calculator
Calculate flight distance with inputs, formulas, and instant results.
🧮Speed Distance Time Calculator
Calculate any of speed, distance, or time when given the other two values.
🧮Drive Time Calculator
Estimate driving time between two locations accounting for speed limits and breaks.
🧮Carpool Savings Calculator
Calculate how much you save by carpooling based on distance, fuel costs, and passengers.
🧮Bike vs Car Calculator
Compare the costs, time, and health benefits of cycling vs driving your commute.