Fuel Cost Calculator

Last updated: 2026-09-09

Fuel Cost Calculator — Calculate fuel cost for a trip.
Inputs
L/100km
€/L
Result
Enter values and press Calculate
Common Examples — Click to Fill
Trip distance (km)Consumption (L/100km)Fuel price (€/L)
Weekend road trip 6007.51.8
Daily commute monthly 12006.21.65
Cross-country van journey 3000122
City errands in small car 1505.51.9

TL;DR: To calculate fuel cost, divide your trip distance in kilometers by 100, multiply that by your vehicle’s real-world fuel consumption in L/100km, then multiply the resulting liters by the current fuel price per liter; for a round trip, double the final cost.

What Is the Fuel Cost Calculator?

The fuel cost calculator is a practical tool that estimates the exact amount of money you will spend on fuel for a specific journey. It is not a vague estimator; it works by combining three real-world variables: the exact distance of your route (measured in kilometers), your vehicle's actual fuel consumption rate (expressed in liters per 100 kilometers), and the current price per liter of the fuel you intend to use. By processing these three inputs, the calculator delivers a precise cost for a one-way trip, and optionally, the total cost for a return journey.

This tool is essential for a wide range of people. Professional drivers, such as delivery couriers and long-haul truckers, use it to quote accurate delivery prices or to manage their operational expenses. Freelance contractors who use their own vehicles for worksites need to calculate tax-deductible mileage costs or invoice clients for fuel surcharges. Even for everyday drivers, this calculator eliminates the guesswork when planning a family holiday or a weekend getaway. Instead of being surprised at the pump, you can budget effectively, compare the cost of driving versus taking a train, or decide whether a cheaper fuel station 20 km away is actually worth the detour. It also empowers you to plan a more economical route, potentially saving money by avoiding heavy traffic or longer but fuel-inefficient highways.

The calculator is designed for anyone who wants to move beyond the approximate figures provided by generic motoring associations. Those numbers are often based on ideal driving conditions, not your specific route or driving style. This calculator puts the control back in your hands, allowing you to input your unique data. Whether you are driving a small city car, a heavy diesel SUV, or a delivery van that is fully loaded, the formula adapts to your specific situation, giving you a customised and reliable estimate every time.

How to Use the Calculator

The calculator is purposefully simple and requires no prior technical knowledge. Follow these four steps to get your result immediately:

  1. Enter the Trip Distance: First, you need to measure the distance of your planned route. The tool asks for the distance in kilometers. You can obtain this number in two ways. The first option is to measure the distance on a map using a tool like Google Maps or Waze. The second, easier option is to simply enter your starting point and destination into Google Maps or Waze and copy the exact route distance the app provides at the top of the directions. This ensures you are not using the "as the crow flies" distance, which is inaccurate.
  2. Input Your Vehicle's Fuel Consumption: Next, you must enter your vehicle's average fuel consumption. This is measured in liters per 100 kilometers (L/100km). The most accurate way to get this number is to look at the "current average fuel consumption" readout on your car's dashboard computer. This number reflects your real-world driving habits and traffic conditions. If your car does not have this feature, you can consult the technical specifications (the "ficha técnica") from your vehicle's manual or a manufacturer's website, but be aware that this is an "WLTP" (Worldwide Harmonised Light Vehicles Test Procedure) approval figure and will likely be lower than your actual consumption.
  3. Set Your Fuel Price: You must enter the current price you pay per liter of fuel in euros (€). The calculator is flexible, allowing you to select the fuel type that matches your vehicle: Gasoline 95 (petrol), Diesel A (standard road diesel), or Agricultural Diesel B (Gasóleo B). You should enter the price from your usual gas station. If you do not know it, you can check a fuel price comparison website for the average price in your region. Remember that diesel B is heavily subsidized and is strictly for agricultural or construction machinery; using it in a road vehicle is illegal and this calculator assumes you will use the correct fuel.
  4. Identify the Trip Type: Finally, select whether you need the cost for a one-way trip ("Ida") or a round trip ("Ida y Vuelta"). If you select the round trip option, the calculator will automatically double the total distance and provide you with the corresponding cost. This is a common oversight for many travellers, so this feature saves you from making a manual calculation error.

Formula and Calculation Method

The mathematical model behind this calculator is straightforward and uses the standard fuel consumption equation. It assumes that fuel consumption is linear, meaning that driving 200 km will consume exactly twice as much fuel as driving 100 km. While this isn't always physically true (due to wind resistance), it is the industry standard for these calculations and offers a high degree of accuracy.

The formula is expressed in two steps:

Step 1: Calculate the Liters Required
Liters Required = (Distance in km ÷ 100) × Vehicle Consumption (L/100km)

Step 2: Calculate the Total Cost
Total Cost (One Way) = Liters Required × Fuel Price (€/L)
Total Cost (Round Trip) = Total Cost (One Way) × 2

Worked Example: Let's walk through a typical scenario to see the formula in action. Suppose you are planning a trip from Madrid to Valencia, a distance of approximately 350 kilometers. Your car's dashboard computer indicates you are averaging 6.5 liters per 100 kilometers, and the price of Diesel A at your local station is 1.60 €/L.

First, we calculate the liters required:
Liters Required = (350 km ÷ 100) × 6.5 L/100km = 3.5 × 6.5 = 22.75 Liters.

Next, we calculate the cost for the one-way trip:
Total Cost (One Way) = 22.75 Liters × 1.60 €/L = 36.40 €.

If you were to make this trip and return to Madrid, the cost would be:
Total Cost (Round Trip) = 36.40 € × 2 = 72.80 €.

This simple calculation gives you a clear financial picture of your trip before you even leave your driveway.

Practical Examples

To further illustrate the utility of the calculator, let’s examine three different realistic driving scenarios. The table below shows the inputs and the resulting outputs you can expect.

ScenarioDistance (km)Consumption (L/100km)Fuel Price (€/L)Result: LitersCost (One Way)Cost (Round Trip)
Short Commute507.01.65 (Gasolina 95)3.5 L5.78 €11.55 €
Long Motorway Journey8006.01.60 (Diésel A)48.0 L76.80 €153.60 €
Loaded Delivery Van20010.51.62 (Diésel A)21.0 L34.02 €68.04 €

Scenario 1: Short Commute. This might be a daily 50 km round trip commute to work. The calculation shows that one day of commuting costs just over 5.78 €. Over 20 working days, this totals over 115 € a month, which helps you understand your weekly budget.

Scenario 2: Long Motorway Journey. This is a long holiday drive, perhaps from Barcelona to the French border. The calculator shows you will need a full 48 liters of fuel. If your car's tank capacity is 50 liters, you know you will need to fill up almost entirely just for the one-way trip, allowing you to budget for that payment in a single stop.

Scenario 3: Loaded Delivery Van. This scenario highlights the effect of load. A van that is fully loaded for a delivery run may consume 10.5 L/100km. If you were to use the vehicle's empty consumption figure of 8 L/100km, you would underestimate your costs by nearly 30%. This calculator ensures you use a realistic consumption figure to price your delivery services accurately.

Tips for Accurate Results

To get the most precise estimate possible, you must be careful about the data you input. Here are specific tips to avoid common pitfalls:

  • Avoid WLTP Figures: The official fuel consumption figures (WLTP) are obtained in a controlled laboratory. In the real world, you will likely see consumption that is 20-30% higher due to acceleration, braking, and traffic. Always use the "average consumption" reading from your car's onboard computer, which tracks your actual driving over the last few hundred kilometers. If you don't have that, add a 20% buffer to the official figures.
  • Account for Load and Aerodynamics: The calculator assumes a fixed consumption rate, but your car's consumption changes based on weight and aerodynamics. If you are towing a trailer or carrying a roof box, your consumption will increase. As a rule of thumb, a heavily loaded van can consume up to 2 L/100km more than when empty. If you are driving a delivery vehicle, it is best to take a long-term average from when the vehicle is typically loaded. Roof racks and open windows at high speed also disrupt aerodynamics and increase fuel usage.
  • Measure the Real Route: Use a mapping service to get the precise km distance for your specific route. Do not use the "as the crow flies" distance or the distance from a straight-line map. The route you will actually drive, including detours through towns, will be longer. The difference can be 5-10% on a long journey.
  • Enter the Correct Fuel Price: Ensure you are entering the price of the exact fuel you will use. Gasoline 95 and Diesel A have different prices, and Gasóleo B (Agricultural Diesel) is heavily subsidised for agricultural machinery only. Never use the Gasóleo B price for a road vehicle, as this is tax fraud. Check the price at the station you plan to use, as there can be significant regional variations.
  • Consider Unplanned Conditions: The calculator gives you a baseline cost. If you know you will be driving in heavy city traffic or in mountainous terrain, you should manually increase the consumption figure you input. Stop-and-go traffic can drastically increase fuel consumption compared to steady motorway driving. For city trips, consider increasing your consumption input by 15-20% to be safe.

Frequently Asked Questions

Q1: How is the WLTP consumption figure different from my actual fuel consumption?

The WLTP (Worldwide Harmonised Light Vehicles Test Procedure) figure is a laboratory-generated number designed to compare different cars under identical conditions. It runs a standardised driving cycle that is often gentler than real-world driving. Real-world factors like aggressive acceleration from traffic lights, high-speed cruising on motorways, air conditioning use, cold weather starts, and carrying passengers all increase fuel consumption. Therefore, the WLTP figure is almost always lower than what you will actually achieve. Many drivers find their real-world consumption is 10% to 20% higher than the WLTP figure, and this gap can occasionally exceed 30% if you drive in heavy urban traffic or at sustained high speeds. For this reason, this calculator strongly suggests using your car's on-board computer's average consumption, which is calculated from actual fuel injection data and your driving over many days.

Q2: Can I use this calculator to figure out how far I can go with a full tank?

While this scale is not the primary function, you can easily reverse-engineer it. To find your maximum range, you would need to know your tank capacity. For example, if you have a 60-liter tank and your average consumption is 7.5 L/100km, you can drive approximately (60 liters / 7.5 L/100km) × 100 = 800 km. However, it is not advisable to run the tank completely dry. In the context of this specific fuel cost calculator, you can use it in reverse by inputting a "test distance" and seeing what the resulting liters are. If you input 800 km, the calculator will tell you that 7.5 L/100km corresponds to 60 liters, confirming your range. This is useful to estimate how many fuel stops you will have on a trip; you can budget for fuel stops by dividing your total distance by your range.

Q3: Is the price of Diesel B (agricultural/industrial diesel) a good deal for my regular car?

Absolutely not. Diesel B (Gasóleo B) is a taxed-advantaged fuel meant only for agricultural machinery and certain construction vehicles. It is coloured (usually green or blue) and is heavily subsidised by the Spanish government to lower the cost of agricultural production. Using it in a standard road vehicle is illegal and considered a serious tax fraud offence. If you are caught using it, the penalties are severe and can include large fines and confiscation of your vehicle. This fuel cost calculator provides a price field for diesel B strictly for the owners of tractors or farm equipment, but it is not intended for typical passenger cars or delivery vans. Always check that you are using the correct fuel option for your vehicle type to ensure you are comply with the law and getting an accurate calculation for your legal costs.

Related Calculators