Fuel Cost Calculator

Use our free fuel cost calculator to estimate how much gas you need and what a trip will cost—enter your distance, vehicle MPG (or L/100km), and fuel price to get instant fuel cost results in US or metric units.

Quick Summary To calculate fuel cost, divide your trip distance by your vehicle's MPG to get gallons needed, then multiply by the price per gallon. For example, a 300-mile trip at 28 MPG with gas at $3.50/gallon costs about $37.50 in fuel. For metric users, multiply (km × L/100km ÷ 100) by the price per liter. This fuel cost calculator handles both systems instantly.
Tip: Use realistic highway/city averages for best estimates.
Fuel needed
Total cost
Cost per distance
Distance

Whether you are planning a weekend road trip, estimating your monthly commute budget, or comparing routes, the first question is always the same: How much will gas cost? A fuel cost calculator answers that question in seconds by combining three simple inputs—distance, fuel economy, and gas price—into an accurate dollar figure you can plan around.

The U.S. Department of Energy reports that fuel is the second-largest vehicle expense for most households, averaging about $3,000 per year. Knowing your trip fuel cost in advance helps you set realistic budgets, choose efficient routes, and decide whether carpooling or renting a more fuel-efficient car makes financial sense.

What Is a Fuel Cost Calculator?

A fuel cost calculator is a tool that estimates the total amount of money you will spend on gasoline (or diesel) for a given trip. You provide three inputs:

  1. Trip distance — total miles or kilometers you plan to drive.
  2. Vehicle fuel economy — your car's MPG (miles per gallon) or L/100km (liters per 100 kilometers).
  3. Fuel price — current price per gallon or per liter at the pump.

The calculator then tells you how much fuel you will need and what it will cost. It also computes your cost per mile (or per kilometer), which is useful for comparing vehicles or tracking expenses over time. If you need a deeper cost-per-mile analysis that includes maintenance, insurance, and depreciation, try our dedicated Cost Per Mile Calculator.

Common use cases include:

  • Road trip budgeting — estimate gas costs before you leave so you know how much to set aside.
  • Commute cost tracking — multiply daily results by work days to get weekly and monthly totals. For recurring commutes, our Commute Gas Cost Calculator automates this step.
  • Vehicle comparison — run the same trip through two different MPG values to see how much a more efficient car saves.
  • Fleet and delivery planning — estimate fuel budgets for multiple vehicles across different routes.

The Formula Behind Trip Fuel Cost

The fuel cost formula is straightforward. Here it is for US and metric units:

US (Miles, Gallons, MPG)

Fuel Needed (gal) = Trip Distance (mi) ÷ MPG
Then: Total Cost = Fuel Needed × Price Per Gallon

Your cost per mile is simply the fuel price divided by your MPG: $/mi = $/gal ÷ MPG. This number stays constant regardless of trip distance, making it easy to estimate any future trip.

Metric (Kilometers, Liters, L/100km)

Fuel Needed (L) = (Trip Distance (km) × L/100km) ÷ 100
Then: Total Cost = Fuel Needed × Price Per Liter

In the metric system, fuel consumption is expressed as liters per 100 kilometers. A lower L/100km number means better fuel economy—the opposite of MPG, where higher is better. The conversion shortcut between MPG and L/100km is 235.215 ÷ value. See our MPG to L/100km conversion guide for a full explanation.

Worked Examples With Real Numbers

Example 1: Weekend Road Trip (US)

You are driving 300 miles round-trip in a sedan averaging 28 MPG, with gas at $3.50/gallon:

300 mi ÷ 28 MPG = 10.71 gal × $3.50 = $37.50
Cost per mile: $3.50 ÷ 28 = $0.125/mi

Example 2: Cross-Country Drive (US)

A 2,400-mile cross-country trip in an SUV averaging 22 MPG, with gas at $3.60/gallon:

2,400 mi ÷ 22 MPG = 109.09 gal × $3.60 = $392.73
Cost per mile: $3.60 ÷ 22 = $0.164/mi

That same trip in a hybrid averaging 48 MPG would cost just $180.00—a savings of $212.73. You can compare two vehicles side by side with our Fuel Savings Calculator.

Example 3: European Road Trip (Metric)

A 750 km trip in a diesel car consuming 6.2 L/100km, with diesel at €1.65/liter:

(750 × 6.2) ÷ 100 = 46.50 L × €1.65 = €76.73
Cost per km: (6.2 ÷ 100) × €1.65 = €0.102/km

Factors That Affect Your Fuel Cost

The fuel cost calculator gives you an estimate based on your stated MPG, but real-world fuel economy varies. Here are the factors that cause your actual cost to differ from the estimate:

Driving Style

Aggressive acceleration and hard braking can reduce fuel economy by 15–30% in stop-and-go traffic and 10–20% on the highway. The U.S. DOE notes that every 5 MPH over 50 is like paying an extra $0.25/gallon. Smooth, steady driving is the single most effective way to keep fuel costs close to your estimate.

Terrain and Elevation

Mountain routes with steep grades significantly increase fuel consumption. Climbing elevation can reduce MPG by 10–20% or more on sustained grades. Flat highway routes are the most fuel-efficient and will align closest with your calculator estimate.

Weather and Temperature

Cold weather reduces fuel economy by 10–20% for short trips due to cold engine starts, winter-blend gasoline, and increased use of cabin heating. Summer air conditioning typically reduces economy by 5–15% at lower speeds. Wind resistance from strong headwinds can also add 5–10% to fuel consumption.

Vehicle Condition

Under-inflated tires, dirty air filters, old spark plugs, and misaligned wheels all reduce fuel economy. The EPA estimates that fixing a faulty oxygen sensor can improve MPG by up to 40%. Regular maintenance keeps your actual economy close to the rated figure.

Cargo and Passengers

Every extra 100 pounds of weight reduces fuel economy by about 1%. Roof racks and cargo boxes increase aerodynamic drag, reducing highway MPG by 2–8% for small items and up to 25% for large rooftop carriers.

Pro Tip: If you are unsure of your vehicle's real-world MPG, track it over a few fill-ups using our Gas Mileage Calculator. That measured number will give you more accurate fuel cost estimates than the EPA sticker rating.

Fuel Cost Comparison by Vehicle Type

The table below shows estimated fuel cost for a 500-mile trip at $3.50/gallon, by vehicle type. It illustrates how fuel economy directly affects trip cost:

Vehicle Type Avg MPG Gallons Needed Trip Fuel Cost Cost Per Mile
Compact Sedan 33 MPG 15.2 gal $53.03 $0.106
Mid-Size Sedan 28 MPG 17.9 gal $62.50 $0.125
Mid-Size SUV 25 MPG 20.0 gal $70.00 $0.140
Full-Size Pickup 20 MPG 25.0 gal $87.50 $0.175
Hybrid 48 MPG 10.4 gal $36.46 $0.073
Minivan 22 MPG 22.7 gal $79.55 $0.159

A hybrid saves $51 compared to a pickup truck on this 500-mile trip—and over a year of driving (15,000 miles), that difference grows to roughly $1,530. For an even more detailed breakdown of per-mile costs including operating expenses, see our Cost Per Mile Calculator.

Tips to Reduce Your Fuel Cost

  1. Drive at moderate, steady speeds. The fuel economy sweet spot for most vehicles is 45–60 MPH. Every 5 MPH above 50 increases your effective fuel price by about $0.25/gallon.
  2. Keep tires properly inflated. Under-inflated tires increase rolling resistance and can lower MPG by up to 3%. Check pressure monthly using the spec on your door jamb, not the tire sidewall maximum.
  3. Avoid excessive idling. Idling gets 0 MPG. If you will be stopped for more than 60 seconds (not in traffic), turn the engine off. Modern engines use less fuel restarting than idling for a minute.
  4. Plan efficient routes. Highway miles at steady speed are more fuel-efficient than city miles with frequent stops. A slightly longer highway route may actually cost less in fuel than a shorter route through town.
  5. Remove unnecessary weight and roof racks. Strip off roof racks when not in use and clear out heavy items from the trunk. Every 100 pounds costs roughly 1% in fuel economy.
  6. Use cruise control on flat highways. Maintaining a constant speed avoids the fuel penalty of repeated acceleration. On hilly terrain, manually modulating speed is often more efficient than cruise control.

Frequently Asked Questions

How do I calculate my fuel cost for a trip?

Divide your trip distance by your vehicle's MPG to get gallons needed, then multiply by the gas price. For example: 350 miles ÷ 25 MPG = 14 gallons × $3.50 = $49.00. For metric, multiply (km × L/100km ÷ 100) by the price per liter. Use the fuel cost calculator above for instant results.

What MPG should I use in the calculator?

For the most accurate estimate, use your vehicle's real-world MPG from recent fill-ups rather than the EPA sticker number. Most drivers get 10–20% less than the EPA combined rating. If you have not tracked your MPG, use the EPA combined number as a starting point and reduce it by 10–15% to be conservative. Our Gas Mileage Calculator can help you measure your actual MPG.

How do I estimate fuel cost with traffic or AC?

Reduce your MPG by 5–15% to account for heavy traffic, air conditioning, or towing. For example, if your highway MPG is 30, use 25–27 MPG for a trip with significant city driving and AC use. This gives a more realistic fuel cost estimate.

How much does gas cost for a 1,000-mile trip?

It depends on your vehicle's MPG and gas prices. At the national average of 27 MPG and $3.50/gallon, a 1,000-mile trip costs about $129.63. A fuel-efficient hybrid at 48 MPG would cost just $72.92, while a pickup at 20 MPG would cost $175.00. See our detailed breakdown in How Much Does It Cost to Drive 1,000 Miles?

Is it cheaper to fly or drive?

For solo travelers on trips over 500 miles, flying is often cheaper when you factor in fuel, food, lodging, and vehicle wear. For families of 3–4 traveling under 500 miles, driving is usually cheaper since fuel costs are split and you avoid multiple airline tickets. Use our fuel cost calculator to get your driving cost, then compare with current flight prices.

How do I convert between MPG and L/100km?

Divide 235.215 by your value. For example: 30 MPG = 235.215 ÷ 30 = 7.84 L/100km. And 8 L/100km = 235.215 ÷ 8 = 29.4 MPG. Note that US gallons and Imperial gallons are different—1 US gallon = 3.785 liters, while 1 Imperial gallon = 4.546 liters. See our full conversion guide for more details.

Planning a Regular Commute?

See exactly what your daily, weekly, and annual commute costs in fuel.

Try Our Commute Gas Cost Calculator