Gallon Calculator
Convert and calculate gallons quickly for everyday volume measurements.
Note: US gallon (3.78541 L) and UK/Imperial gallon (4.54609 L) are different sizes.
Examples: 1 US gallon = 3.785 liters · 5 US gallons = 18.927 liters · Volume from dimensions assumes a full container.
What This Gallon Calculator Does
This calculator converts between gallons and other common volume units including liters, quarts, pints, cups, fluid ounces, and cubic inches. It also calculates the total volume of a rectangular container based on its dimensions, making it useful for both conversion and estimation tasks.
How the Volume Calculations Work
The calculator uses standard US liquid volume conversions:
- 1 gallon = 3.78541 liters
- 1 gallon = 4 quarts
- 1 gallon = 8 pints
- 1 gallon = 16 cups
- 1 gallon = 128 fluid ounces
- 1 gallon = 231 cubic inches
For the container volume calculation, the tool multiplies the length, width, and height (in inches) to get cubic inches, then divides by 231 to convert to gallons. This assumes a rectangular shape with straight sides.
How to Use the Calculator
You have two input options:
- Enter a value in gallons — The tool instantly converts to all supported units.
- Enter container dimensions — Provide length, width, and height in inches to estimate the total gallon capacity.
Both inputs work independently. You can use one or both depending on your task.
Example: Estimating Container Capacity
Suppose you have a storage bin that measures 24 inches long, 18 inches wide, and 12 inches tall. Enter these dimensions into the calculator:
- Volume in cubic inches: 24 × 18 × 12 = 5,184 in³
- Volume in gallons: 5,184 ÷ 231 ≈ 22.44 gallons
This tells you the bin holds roughly 22.4 gallons, which helps determine whether it can hold a specific quantity of liquid or granular material.
Understanding Your Results
The conversion results show the equivalent volume in each unit. For example, 5 gallons converts to:
- 18.93 liters
- 20 quarts
- 40 pints
- 80 cups
- 640 fluid ounces
- 1,155 cubic inches
The container volume result is an estimate. Real-world containers may have slightly different internal dimensions, rounded corners, or tapered sides that affect actual capacity.
Common Mistakes to Avoid
- Using the wrong gallon type — This calculator uses US liquid gallons. UK (imperial) gallons are about 20% larger. Do not use this tool for imperial gallon conversions.
- Mixing measurement units — Enter container dimensions in inches only. If you measure in feet or centimeters, convert to inches first.
- Assuming 100% usable capacity — For irregular containers or those with lids, necks, or spouts, the actual fillable volume may be less than the calculated value.
Practical Use Cases
- Home brewing — Convert recipe volumes between gallons, quarts, and liters.
- Aquarium setup — Estimate water volume for tanks based on dimensions.
- Gardening and irrigation — Determine how many gallons a storage barrel or rain collection container holds.
- Shipping and storage — Check whether a container meets gallon capacity requirements for transport or storage.
- Cooking and meal prep — Scale recipes that use gallon-based measurements.
Limitations
- Only supports US liquid gallons, not imperial gallons.
- Container volume assumes a perfect rectangular shape with straight, parallel sides.
- Does not account for wall thickness, internal fittings, or irregular shapes.
- Results are rounded to two decimal places for readability.
FAQ
How many liters are in a gallon?
One US liquid gallon equals 3.78541 liters. This is the standard conversion used in the United States.
What is the difference between a US gallon and a UK gallon?
A US liquid gallon is 3.785 liters. A UK (imperial) gallon is 4.546 liters, which is about 20% larger. This calculator uses US gallons only.
Can I use this calculator for dry gallons?
No. This calculator uses US liquid gallons. US dry gallons are a different unit used for measuring dry goods like grains, and the conversion factors are not the same.
How accurate is the container volume estimate?
The calculation is mathematically accurate for a perfect rectangular shape. Real containers may vary slightly due to manufacturing tolerances, rounded corners, or tapered sides. Use the result as a close estimate, not an exact measurement.
What units can I convert to and from?
The calculator converts gallons to liters, quarts, pints, cups, fluid ounces, and cubic inches. It also estimates gallon capacity from container dimensions.