What is the Cost to Fill Gas Tank Calculator?
This calculator tells you how much it will cost to fill your vehicle's fuel tank. By combining your tank's capacity with the current price per gallon, it gives a quick dollar estimate for a full fill-up. You can also enter how full your tank already is, so the tool only counts the fuel you actually need to add.
How to use it
Enter three values: your tank size in gallons (most cars hold 12–18 gallons), the price per gallon at the pump, and your current tank level as a percentage (use 0% for an empty tank). Press calculate to see the cost to fill, the gallons you'll buy, and the cost of a complete fill from empty.
The formula explained
The core formula is simple: cost = tank size × price per gallon. When you account for fuel already in the tank, the calculator first finds the gallons needed as tank size × (1 − level / 100), then multiplies by the price per gallon. A tank that is 25% full only needs 75% of its capacity refilled.
$$\text{Cost} = \text{Tank Size} \times \left(1 - \frac{\text{Level \%}}{100}\right) \times \text{Price/Gal}$$
Worked example
Suppose you have a 15-gallon tank, gas costs $3.50 per gallon, and the tank is empty (0%). Gallons needed = \(15 \times (1 - 0) = 15\) gallons. Cost = \(15 \times \$3.50 =\) $52.50. If the tank were already 50% full, you'd need 7.5 gallons, costing $26.25.
$$\text{Cost} = 15 \times \left(1 - \frac{0}{100}\right) \times \$3.50 = \$52.50$$
Fill-Up Cost by Vehicle Type and Gas Price
The table shows what a full fill-up costs when the tank starts empty (current level 0%). Each cell is tank size × price per gallon, in US dollars and US gallons. For example, a 15-gallon midsize sedan at $3.50 per gallon costs \(15 \times \$3.50 = \$52.50\). The calculator gives the same result: 52.50 dollars.
| Vehicle class (typical tank) | $3.00/gal | $3.50/gal | $4.00/gal | $4.50/gal |
|---|---|---|---|---|
| Compact car (~12 gal) | $36.00 | $42.00 | $48.00 | $54.00 |
| Midsize sedan (~15 gal) | $45.00 | $52.50 | $60.00 | $67.50 |
| SUV / minivan (~19 gal, typical range 18–20) | $57.00 | $66.50 | $76.00 | $85.50 |
| Full-size pickup (~26 gal) | $78.00 | $91.00 | $104.00 | $117.00 |
If the tank isn't empty, multiply by the fraction you still need to fill. A 26-gallon pickup at a quarter tank, paying $4.00 per gallon, needs \(26 \times (1 - 0.25) = 19.5\) gallons, which costs \(19.5 \times \$4.00 = \$78.00\).
Note: These capacities are rough figures for each vehicle class. Real tank sizes vary by make, model, year and trim, and some trucks offer optional larger tanks. Check your owner's manual for your exact capacity. Most drivers also refuel before the tank is truly empty, so a typical fill-up costs less than the figures shown here.
Liters to Gallons Conversion
Many countries list tank capacity and fuel prices in liters. These are the standard conversion factors:
- 1 US gallon = 3.78541 L
- 1 L = 0.264172 US gallons
- 1 imperial gallon (used in the UK and some Commonwealth countries) = 4.54609 L, about 20% larger than a US gallon
| Tank size (L) | US gallons (L × 0.264172) | Imperial gallons (L ÷ 4.54609) |
|---|---|---|
| 40 L | 10.57 | 8.80 |
| 50 L | 13.21 | 11.00 |
| 60 L | 15.85 | 13.20 |
| 70 L | 18.49 | 15.40 |
| 80 L | 21.13 | 17.60 |
Price per liter to price per US gallon: multiply the price per liter by 3.78541. For example, a price of 1.80 per liter equals
$$1.80 \times 3.78541 = 6.81 \text{ per US gallon}$$For a price per imperial gallon, multiply by 4.54609 instead: \(1.80 \times 4.54609 = 8.18\).
Tip: The cost formula doesn't depend on the unit. If you enter the tank size in liters and the price per liter, you get the correct cost. Just don't mix the two systems. For example, a 50 L tank at 25% full with fuel at 1.80 per liter costs \(50 \times (1 - 0.25) \times 1.80 = 67.50\) to fill: 67.50 in your local currency.
FAQ
Where do I find my tank size? Check your owner's manual or the manufacturer's website — it's listed as fuel tank capacity.
What if I don't know my current level? Leave it at 0% to estimate the cost of a complete fill from empty, which is the maximum you'd ever pay.
Does this work for diesel or any currency? Yes. The math is the same for any fuel type and any currency — just enter the price per unit you pay.