RoadCost is a free calculator for the fuel cost of a drive: gas or electricity, tolls, and each person's share. Here is what it calculates, where the numbers come from and the formulas it uses.
Example: 100 miles at 28 MPG
$14.27 in gas
100 mi ÷ 28 MPG ≈ 3.571 gal × $3.995/gal. Gas price: $3.995/gal (EIA Gasoline and Diesel Fuel Update, U.S. regular, week of Nov 9, 2026).
Calculate your trip costWhat RoadCost calculates
- Road trip gas cost (calculator): gallons of gas for the distance, the gas cost, the total with tolls, and each person's share. One way or round trip.
- Electric car trips: use the EV road trip charging cost calculator and enter kWh per 100 miles, charging prices and the charging mix to estimate purchased electricity and its cost.
- EV vs gas (comparison): the cost of one trip and of a year of driving for a gas car and an electric car, and the difference.
Where the data comes from
- Car fuel economy: U.S. EPA
- The car picker fills combined MPG for gasoline vehicles from the fueleconomy.gov vehicle data (U.S. government data, public domain). When a model has several versions, the dataset uses their average. Enter EV consumption manually in the EV calculators. You can always type your own MPG.
- Gas price: U.S. EIA
- Default $3.995/gal (EIA Gasoline and Diesel Fuel Update, U.S. regular, week of Nov 9, 2026): U.S. average retail price of regular gasoline.
- Electricity price: U.S. EIA
- Default $0.1831 per kWh: U.S. average residential price, July 2026 (published Sep 24, 2026), EIA Electric Power Monthly, Table 5.6.A.
- Distance: Google Maps route or manual miles
- Routing via Google Maps when available: Calculate (with From and To filled in) sends From and To through our server to Google and fills in driving miles and drive time. Otherwise, enter driving distance in miles manually.
- Local prices
- For prices near you, see AAA and type your price into the calculator.
How the cost is calculated
Gas trip
Electric car trip
EV vs gas
Drive time is shown when returned by the route service; otherwise it is unavailable. Tolls are not looked up: enter what you expect to pay. Distance and efficiency must be above zero. Energy prices and tolls can be zero; the number of people must be a whole number from 1 to 100. All the math runs in your browser.
Worked example
A 350-mile one-way trip in a car rated 28 MPG uses 350 ÷ 28 = 12.5 gallons. At $3.995/gal (EIA Gasoline and Diesel Fuel Update, U.S. regular, week of Nov 9, 2026) that is 12.5 × $3.995 = $49.94. Split between 2 people, each pays $24.97. As a round trip (700 miles) the gas costs $99.88.
An electric car using 30 kWh per 100 miles needs 90 kWh for 300 miles; at $0.1831 per kWh that is about $16.48.
What the result does not include
The total covers fuel or electricity and the tolls you enter. Parking, maintenance, wear and charging fees beyond the price per kWh you enter are not part of the calculation. Real fuel use also depends on speed, load, weather and traffic, so treat the result as an estimate.