Free tool

Gas Cost Calculator

Trip cost, split any way, or compared with flying.

Published By Niclas Illg

Quick answer

Trip gas cost = miles driven / your car's mpg x the price of a gallon. A 300 mile drive in a 30 mpg car with gas at $4.17 uses 10 gallons and costs $41.70, or $20.85 each for two. The calculator above does this live, from two cities or the miles you type, and also handles electric cars, km and litres, tolls, trips you repeat every month, and driving versus flying.

To calculate gas cost, divide the miles by your car's mpg and multiply by the price of a gallon. The calculator above does it live as you type: pick two cities or enter the miles, and it shows the total, the share for each person, and the cost per month if you make the trip often. It works for electric cars and in km and litres too. No sign-up, nothing to install.

How does the gas cost calculator work?

  1. Say where you are going. Type two cities and it estimates the road miles, or type the miles from your map app for the exact trip.
  2. Add your car. Enter your mpg, or tap an example like Midsize 30 if you are not sure. Electric cars use kWh per 100 miles.
  3. Check the price. In the US it starts at the AAA average for the states you drive between (the national average was $4.17 a gallon on November 2, 2026). Type your local price any time.
  4. Pick one way or round trip, and how many people share the cost.

The answer updates with every number you change. Your last trip is saved on this phone, and you can save trips you make often, like the drive to your partner's place.

The gas cost formula

Example: a 150 mile drive there and back is 300 miles. In a 30 mpg car that is 10 gallons. At $4.17 a gallon it costs $41.70, or $20.85 each if two of you split it.

Driving to see your partner? Plan the year, not one trip

One drive is easy to pay for. Every other weekend for a semester adds up. Tap how often you make the trip and the calculator shows the cost per month and per year, for the car and for each of you. If you live a flight apart, open Compare with flying: it puts the gas for one car next to two plane tickets, and shows how many hours the drive takes.

Want to know how many visits fit your budget, and who should travel when? Use the long distance visit planner. Counting down to the next one? Set up a countdown until I see you.

Live video call between two partners in Cupie. Between visits, play games on the same video call.
Between visits, play games on the same video call.

Ways to spend less on gas

24-day call streak in Cupie. Keep a call streak going between visits.
Keep a call streak going between visits.

What are the limits?

More for couples apart: our long distance relationship tips.

FAQ

How do I calculate the gas cost of a trip?

Divide the miles by your car's miles per gallon to get gallons, then multiply by the price per gallon. 300 miles / 30 mpg = 10 gallons, and 10 x $4.17 = $41.70. For a round trip, double the miles first. In metric: km x L/100km / 100 = litres, then litres x price per litre.

How do you split gas money fairly?

The simple way is the total fuel cost plus tolls and parking, divided by the number of people in the car. Couples who visit each other often take turns instead: the one who drives pays this time, the other pays next time. The calculator shows both the total and the share per person.

Is it cheaper to drive or fly to visit my partner?

For one person on a short trip, driving usually wins, because a car costs the same whether one or four people ride in it. On long trips flying can be cheaper once you count the hours. Open Compare with flying, type the ticket price, and the calculator shows both costs and the time difference.

How accurate is the distance between two cities?

It is an estimate: the straight-line distance between the two cities times 1.2, a common rule of thumb for how much longer roads are. Real routes can be shorter or longer, especially around mountains, lakes or coasts. For the exact number, type the miles from your map app into the Miles field.

Does it work for electric cars?

Yes. Tap Electric, enter your car's kWh per 100 miles (it is on the EPA label and in most car apps) and your price per kWh, either your home rate or the charger's price.

Is the gas price current?

In the US the starting price is the AAA average for regular gas in the states you drive between, from November 2, 2026 (the national average that day was $4.17 a gallon). Prices change daily, so type the price at your station for the best estimate. Nothing is looked up online, so the calculator also works offline.

How we made this page: page text and tool drafted with help from AI tools, then reviewed and edited by Niclas Illg against the sources below on November 3, 2026. The tool itself runs in your browser, with no AI generator behind it. Cupie is our own app.

Sources

  1. AAA Gas Prices: national average and gas cost calculator
  2. fueleconomy.gov: EPA mpg data (US Department of Energy and EPA)
  3. GeoNames city data (CC BY 4.0)
  4. Ballou, Rahardja and Sakai (2002), Selected country circuity factors for road travel distance estimation