Gas Cost Calculator for Trips
Find how much gas you will use and what it will cost, from miles, MPG and price per gallon.
Distance divided by MPG, times the price per gallon. Last reviewed October 4, 2026. Sources · Methodology
How much gas will I use for my trip?
Divide the miles you will drive by your vehicle's miles per gallon. A 250-mile drive in a car that gets 25 MPG uses 10 gallons. Multiply by the price per gallon to get the cost.
| Miles | 20 MPG | 25 MPG | 30 MPG | 40 MPG |
|---|---|---|---|---|
| 25 | 1.3 gal · $4.06 | 1 gal · $3.25 | 0.8 gal · $2.71 | 0.6 gal · $2.03 |
| 50 | 2.5 gal · $8.13 | 2 gal · $6.50 | 1.7 gal · $5.42 | 1.3 gal · $4.06 |
| 100 | 5 gal · $16.25 | 4 gal · $13.00 | 3.3 gal · $10.83 | 2.5 gal · $8.13 |
| 250 | 12.5 gal · $40.63 | 10 gal · $32.50 | 8.3 gal · $27.08 | 6.3 gal · $20.31 |
| 500 | 25 gal · $81.25 | 20 gal · $65.00 | 16.7 gal · $54.17 | 12.5 gal · $40.63 |
| 1,000 | 50 gal · $162.50 | 40 gal · $130.00 | 33.3 gal · $108.33 | 25 gal · $81.25 |
For a round trip, double the miles. A daily commute of 15 miles each way at 25 MPG uses 1.2 gallons and costs $3.90 a day at $3.25 a gallon.
Gas cost per mile by MPG
Cost per mile is the price per gallon divided by your MPG. It is the quickest way to compare vehicles or to price a trip of any length.
| Fuel economy | $3.00 / gal | $3.50 / gal | $4.00 / gal |
|---|---|---|---|
| 15 MPG | 20¢ | 23.3¢ | 26.7¢ |
| 20 MPG | 15¢ | 17.5¢ | 20¢ |
| 25 MPG | 12¢ | 14¢ | 16¢ |
| 30 MPG | 10¢ | 11.7¢ | 13.3¢ |
| 35 MPG | 8.6¢ | 10¢ | 11.4¢ |
| 40 MPG | 7.5¢ | 8.8¢ | 10¢ |
| 50 MPG | 6¢ | 7¢ | 8¢ |
How trip fuel cost is calculated
Gallons = distance ÷ MPG · Cost = gallons × price per gallon
For a round trip the one-way distance is doubled. The cost per person is the total divided by the number of people sharing it.
Worked example: 300 miles each way at 28 MPG and $3.25 a gallon
- Round-trip distance: 600 miles
- Fuel needed: 21.4 gallons
- Total fuel cost: $69.64
- Split between 3 people: $23.21 each
- Cost per mile: $0.12
How fuel economy changes the cost
| Fuel economy | Gallons | Fuel cost |
|---|---|---|
| 20 MPG | 30 | $97.50 |
| 28 MPG | 21.4 | $69.64 |
| 35 MPG | 17.1 | $55.71 |
| 50 MPG | 12 | $39.00 |
Ways to use less fuel on a road trip
- Slow down. Fuel economy usually drops quickly above about 50 mph.
- Keep tires properly inflated and remove roof racks or cargo boxes you are not using.
- Use cruise control on flat highways to hold a steady speed.
- Avoid long idling.
What this estimate leaves out
- Tolls, parking and wear on the vehicle.
- Price differences between regions along your route.
- Detours, traffic and terrain, which change real-world MPG.
Frequently asked questions
How do I calculate the gas cost of a trip?
Divide the distance by your vehicle's miles per gallon to get gallons needed, then multiply by the price per gallon. A 300-mile drive at 30 MPG uses 10 gallons; at $3.50 a gallon that is $35.
How much gas will I use on a 100-mile trip?
Divide 100 by your MPG. At 25 MPG that is 4 gallons; at 30 MPG, about 3.3 gallons; at 40 MPG, 2.5 gallons. Multiply by the price per gallon for the cost.
How do I work out gas cost per mile?
Divide the price per gallon by your miles per gallon. At $3.50 a gallon and 25 MPG, gas costs 14 cents a mile.
Where do I find my car's MPG?
Check the trip computer, the window sticker, or look up your make and model on fueleconomy.gov. For the most accurate figure, divide miles driven by gallons added at your next fill-up.
Should I use city or highway MPG?
Use highway MPG for long road trips and combined MPG for mixed driving. Heavy loads, roof racks, high speeds and cold weather all reduce fuel economy.
How should we split gas money fairly?
The simplest method is to divide the total fuel cost equally among everyone in the car, including the driver. Some groups also give the driver a share for wear and tear.
Does this work for electric vehicles?
Not directly. For an EV, multiply the kilowatt-hours used per mile by the distance and your electricity price instead.
Related guides
Embed this calculator
Add this calculator to your own website for free. Copy the code below and paste it into your page.
Sources
- U.S. Department of Energy and EPA: fueleconomy.gov
- U.S. Energy Information Administration: gasoline and diesel fuel update
Last reviewed October 4, 2026. Results are estimates; see our methodology and disclaimer.