Convert inches to gallons from a tank’s length, width and height, from cubic inches, or from a cylinder’s diameter and depth, in US or Imperial gallons.
- All Unit Converters
- Area To Gallons Calculator
- Gallons Per Inch Calculator
- Water Volume Calculator
- Liquid Volume Calculator
- kg To Gallons Calculator
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Gallons from length × width × height | Finds the gallons held by a rectangular tank, box or aquarium measured in inches | Requires the inside length, the inside width and the height or liquid depth, all in inches |
| Gallons from cubic inches | Converts a volume in cubic inches to gallons | Requires the volume in cubic inches |
| Gallons in a vertical cylinder | Finds the gallons in an upright round tank, drum or bucket | Requires the inside diameter and the height or liquid depth in inches |
| Gallons from base area and depth | Finds the gallons over a known base area in square inches at a given depth | Requires the base area in square inches and the liquid depth in inches |
| Cubic inches from gallons | Converts gallons back to cubic inches | Requires the volume in gallons |
Every function has a gallon definition setting, US liquid gallon or Imperial gallon, and results also show liters and cubic feet. The three shape functions add the gallons per inch of depth. An optional setting changes the displayed decimal places from the default of 2.
Inches to Gallons Formulas
| gal | Volume in US liquid gallons |
| V | Volume in cubic inches (in³) |
| 231 | Cubic inches in one US liquid gallon, an exact value [1] |
An inch is a length and a gallon is a volume, so a single measurement in inches has no gallon value. Three dimensions in inches multiply out to cubic inches, and cubic inches convert to gallons. For Imperial gallons the divisor is about 277.42 [1]: the calculator converts cubic inches to liters at 0.016387064 L each and divides by 4.54609 L per Imperial gallon [2].
Gallons from length × width × height
L, W and H are the inside length, width and height in inches. For a partly filled tank, H is the liquid depth. An 18 × 18 × 24 inch tank holds 7,776 in³, which is 33.66 US gallons.
| Inside size (in) | Cubic inches | US gallons | Imperial gallons |
|---|---|---|---|
| 8 × 8 × 8 | 512 | 2.22 | 1.85 |
| 10 × 10 × 10 | 1,000 | 4.33 | 3.60 |
| 12 × 12 × 12 | 1,728 | 7.48 | 6.23 |
| 20 × 10 × 12 | 2,400 | 10.39 | 8.65 |
| 30 × 12 × 12 | 4,320 | 18.70 | 15.57 |
| 24 × 12 × 16 | 4,608 | 19.95 | 16.61 |
| 24 × 16 × 16 | 6,144 | 26.60 | 22.15 |
| 18 × 18 × 24 | 7,776 | 33.66 | 28.03 |
| 36 × 18 × 18 | 11,664 | 50.49 | 42.04 |
| 48 × 20 × 20 | 19,200 | 83.12 | 69.21 |
Gallons from cubic inches
The main formula applies directly. 1,000 in³ is 1,000 ÷ 231 = 4.33 US gallons, or 3.60 Imperial gallons. One cubic foot is 1,728 in³, which is 7.48 US gallons.
Gallons in a vertical cylinder
D is the inside diameter and H is the height or liquid depth, both in inches. A round tank 24 inches across filled to 36 inches holds 16,286 in³, or 70.50 US gallons. The formula fits a cylinder standing upright. A horizontal cylinder that is partly full has a different shape of liquid and needs its own calculation.
Gallons from base area and depth
A is the base area in square inches and H is the depth in inches. Square inches alone cannot become gallons, because an area has no depth: each square inch of base holds 1 ÷ 231 = 0.00433 US gallons for every inch of depth. A base of 144 in² (one square foot) holds 0.62 gallons per inch and 7.48 gallons at 12 inches deep. The base area must be the same at every depth.
Cubic inches from gallons
Five US gallons is 1,155 in³. Five Imperial gallons is 5 × 4.54609 ÷ 0.016387064 = 1,387.10 in³.
Limits of This Estimate
- Inside dimensions give the liquid volume. Outside dimensions include the wall thickness and overstate it, and a tank is rarely filled to the brim.
- The shape functions assume straight vertical sides. Tapered buckets, rounded corners, bow-front tanks and horizontal cylinders hold a different amount.
- The result is a volume. The weight of the liquid depends on its density and is not calculated.
Sources
- NIST, Handbook 44 (2026), Appendix C, General Tables of Units of Measurement: 1 US gallon = 231 cubic inches exactly, and the British Imperial gallon as 277.42 cubic inches
- NIST, Guide for the Use of the International System of Units (SP 811), Appendix B.8: Imperial gallon as 4.54609 L exactly, and the cubic inch in metric units
