Volume Formulas Cheat Sheet — Tank, Pipe, Pond & Cube
Eight essential volume formulas at your fingertips — cube, rectangle, cylinder, truncated cone, cone, sphere, ellipsoid and pipe. Each card shows the formula, variable definitions, a worked example and where it applies. Scroll through the shapes or pick one below to jump straight to its card.
Pick your shape — we show the formula instantly
The Complete Cheat Sheet — 8 Shapes
Every shape you will encounter when sizing tanks, ponds, pipes, containers and pressure vessels. Each card gives you the formula, what the variables mean, a concrete worked example, and real-world applications. Click the copy button to grab the formula for your notes or a spreadsheet.
Cube
V = s³
Where: s = side length
Worked Example
s = 24 in → V = 13,824 in³ = 59.8 gal
You will see this on
Rectangular Prism
V = L × W × H
Where: L = length, W = width, H = height
Worked Example
48 × 24 × 18 in → V = 20,736 in³ = 89.8 gal
You will see this on
Cylinder
V = π × r² × H
Where: r = radius, H = height
Worked Example
D = 27 in, H = 48 in → V = 27,580 in³ = 119.4 gal
You will see this on
Truncated Cone (Frustum)
V = (πH/3) × (R² + R×r + r²)
Where: R = bottom radius, r = top radius, H = height
Worked Example
R = 20, r = 10, H = 24 → V = 17,593 in³ = 76.2 gal
You will see this on
Cone
V = (1/3) × π × r² × H
Where: r = base radius, H = cone height
Worked Example
r = 12 in, H = 24 in → V = 3,619 in³ = 15.7 gal
You will see this on
Sphere
V = (4/3) × π × r³
Where: r = radius
Worked Example
D = 30 in → V = 14,137 in³ = 61.2 gal
You will see this on
Ellipsoid (Oval)
V = (4/3) × π × a × b × c
Where: a, b, c = semi-axes
Worked Example
a=22, b=13.5, c=22 → V = 10,778 in³ = 46.7 gal
You will see this on
Pipe (Hollow Cylinder)
V = π × r² × L
Where: r = inner radius, L = pipe length
Worked Example
2 in SCH40 pipe, 100 ft → V = 47.1 gal
You will see this on
Unit Conversion Reference — Gallons, Liters, Feet & Inches
The constants that tie every tank volume formula together. Memorize the top three and you can convert between any two common volume units in your head. Each row lists the exact conversion factor.
1 cubic foot
= 7.48052 US gallons
Exact1 US gallon
= 231 cubic inches
Exact1 US gallon
= 3.78541 liters
Exact1 liter
= 0.26417 US gallons
Exact1 imperial gallon
= 1.20095 US gallons
Exact1 oil barrel (42 gal)
= 5.6146 cubic feet
Exact1 cubic meter
= 264.172 US gallons
Exact1 cubic meter
= 1,000 liters
ExactWhere Each Formula Applies — Real Tank Jobs
A formula is only useful if you can reach for it at the right moment. Here are four common scenarios and exactly which formula (or formulas) you will need for each one.
Scenario 1: Rectangular Fish Pond
Your backyard pond is 12 ft × 8 ft with an average depth of 2 ft. How many gallons does it hold, and what pump flow rate do you need?
V = L × W × H = 12 × 8 × 2
V = 192 ft³
V = 192 × 7.48 = 1,436 gal
Scenario 2: 100 ft Pipeline Fill
You need to dose inhibitor into a 100 ft run of 2-inch SCH40 steel pipe. How much water does it hold?
ID = 2.067 in, r = 1.033 in, L = 1,200 in
V = π × r² × L = π × 1.067 × 1,200
V = 4,024 in³ = 17.4 gal
Scenario 3: Cone Bottom Process Tank
A process vessel has a cylindrical shell (36 in dia × 48 in tall) plus a cone bottom (24 in high). Total capacity?
Shell = π × 18² × 48 = 48,858 in³
Cone = (1/3) × π × 18² × 24 = 8,143 in³
Total = 57,001 in³ = 246.8 gal
Scenario 4: LPG Spherical Tank
A lab-scale spherical LPG tank has a 12-inch outer diameter. Internal volume at 80% fill rule?
r = 5.75 in (wall corrected)
V = (4/3) × π × 5.75³ = 796 in³
80% fill = 637 in³ = 2.76 gal
💡 Pair this sheet with the calculators. Every formula here is implemented live on the tank calculator homepage, and the dedicated calculators hub has specialized tools for each shape — rectangular tanks, vertical cylinders, horizontal cylinders with dished heads, sphere/capsule vessels, pipe volume and more. When a formula tells you to use πr²H for a vertical cylinder, the vertical cylinder calculator already runs that formula for you. When you need partial fill on a horizontal cylinder — a formula the sheet does not include because it requires integral calculus — the horizontal cylinder calculator on the home page handles the circular-segment math directly. Keep this sheet open for reference; open the calculator when you need a number.
💡 Best Practice: Always Measure Inside Dimensions
Every formula on this sheet assumes you are feeding it the space that actually holds liquid. Measure inside the tank — between the walls, not outside. Steel tanks lose about 1–3% of capacity to wall thickness, aquarium tanks lose 5–10% because glass is thicker, and pipe diameters are always quoted as nominal. When in doubt, subtract twice the wall thickness from the advertised outer dimension before running any formula.
⚠️ Watch Your Gallon System — US vs Imperial
An imperial gallon is 277.42 cubic inches, about 20% larger than the US gallon's 231 cubic inches. If your supplier quotes in imperial gallons and your formula output is US gallons, multiply the US figure by 0.8327 to convert to imperial. This is a common source of error on cross-border projects — the calculator on this site returns both systems side by side so you can never miss it.
❌ Don't Use Total Capacity for Fill Planning
The formula gives you geometric capacity — what the tank could theoretically hold if you filled it to the very brim with an incompressible liquid. In the real world you need to subtract freeboard (3–6 inches minimum), internal baffles and fittings, the legal fill rule for your liquid (propane = 80%, heating oil = 90%), and thermal expansion headroom. A 275 gal heating oil tank delivers about 240 usable gallons, not 275. Plan fills from the usable capacity, not the sticker.
Frequently Asked Questions
Which volume formula should I use for my tank — cylinder, rectangle, or something else?▼
Look at the cross-section of your tank. If it is a perfect circle, use the cylinder formula πr²H. If it is a rectangle or square box, use L×W×H. If it is an oval or stadium shape (like most heating-oil tanks), you need the ellipsoid or 'stadium cross-section' formula. If the tank sits on legs with a sloped cone bottom, calculate the cylindrical shell and cone bottom separately then add them. The main tank calculator on the home page lets you pick the shape from a dropdown and applies the correct formula automatically, including partial fill for horizontal cylinders where depth-to-volume is non-linear.
How do I convert cubic inches to gallons, and why is the number 231 important?▼
One US liquid gallon is defined as exactly 231 cubic inches — this is not an approximation, it is the legal definition. So divide your cubic-inch volume by 231 to get US gallons. For liters, divide by 61.024. For cubic feet, divide by 1,728 (12³) first, then multiply by 7.48. Imperial gallons are slightly larger — 277.42 cubic inches — so an imperial gallon is about 1.2 US gallons. Always confirm which gallon system your supplier or specification sheet is using, because the difference on a large tank can be significant.
Why is a horizontal cylinder tank's volume formula different from a vertical one when measuring partial fill?▼
The total capacity formula is the same — πr²L for horizontal, πr²H for vertical. But when the tank is partially filled, the cross-section matters. A vertical cylinder has a constant circular cross-section at every height, so fill depth and filled volume are perfectly linear — half depth equals half gallons. A horizontal cylinder has the same circular cross-section, but the depth runs across the diameter instead of along the axis, creating a non-linear partial-fill curve: 25% depth ≈ 19.6% volume, 50% depth = 50% volume (the only symmetric point), and 75% depth ≈ 80% volume. This is why dip charts for horizontal tanks must be computed point by point using the circular-segment formula — you cannot just divide total gallons by diameter.
What is the difference between a cone, a truncated cone, and a pyramid?▼
A cone has a circular base that tapers to a single point (V = πr²H/3). A truncated cone (frustum) is a cone with the tip cut off, leaving two parallel circular faces of different radii (V = πH(R² + Rr + r²)/3). A pyramid has a polygonal base (square, rectangle, triangle) instead of a circle, and also tapers to a point (V = base area × H/3). Tank hoppers and silos are usually truncated cones — the top is open for filling, the bottom narrows to a discharge port. Calculate the frustum for the tapered section and add the cylindrical shell above it for the full tank.
How do I calculate the volume of a pond or pool that is not a perfect rectangle?▼
Break the shape into simpler pieces. An oval pond is an ellipse at the surface — V = π × a × b × average_depth where a and b are the semi-major and semi-minor axes. A kidney-shaped pond can be approximated as two circles of different radii connected by straight sides — calculate each section separately. For any irregular shape, the average depth method works: measure depth at a grid of points, average them, multiply by the surface area. For pools with sloped bottoms (deep end + shallow end), calculate the shallow rectangle and the sloped wedge or truncated cone separately. The home page calculator has a pond section that does this math for common shapes.
Can I use these volume formulas to figure out how much liquid weight will be in the tank?▼
Yes — compute the volume in gallons or liters, then multiply by the liquid's density in lb/gal or kg/L. Water is exactly 8.34 lb per US gallon and 1 kg per liter. Diesel fuel is about 7.0 lb/gal (SG 0.84), gasoline about 6.2 lb/gal (SG 0.74), and seawater is 8.5 lb/gal. Multiply the total gallons by the density to get the contents weight. The liquid weight calculator on this site does this bidirectionally and handles temperature-corrected water density. Remember the tank itself also weighs — steel runs about 490 lb per cubic foot, stainless about 500 lb/ft³, and aluminum about 169 lb/ft³. The tank weight calculator pairs with this sheet for shell mass.
When do I need to account for wall thickness in my volume calculation?▼
Always — the formulas give geometric volume, but wall thickness eats into the usable space. For a tank with inner diameter D and wall thickness t, the actual inner diameter is D - 2t. For an aquarium with 6 mm (1/4 in) glass, a 48 × 24 × 18 inch advertised tank has inner dimensions of roughly 47 × 23 × 17.25 inches, yielding about 83 gallons instead of the 90 gallons a pure box formula would suggest. For steel tanks the effect is smaller — a 275 gal heating-oil tank with 3/16 inch steel loses only about 2% of capacity to wall thickness — but it still matters for certified dip charts and fill calculations. Always measure inside dimensions when you can.
What is the 231 constant and how is it different from the cubic feet to gallons factor?▼
231 cubic inches per US gallon is the direct inch-to-gallon conversion. 7.48052 US gallons per cubic foot is the foot-to-gallon conversion. These are related because a cubic foot is 12×12×12 = 1,728 cubic inches, and 1,728 ÷ 231 = 7.48052. Both are exact definitions — 231 cubic inches per gallon has been the US standard since 1707, and the cubic foot is defined as exactly 12³ cubic inches. Use inches for small tanks and lab equipment, feet for large industrial tanks and ponds, and convert between them using these two constants.
Run Any Formula Live — No Hand Math
This cheat sheet tells you which formula to reach for. The calculators do the math for you — vertical cylinders, horizontal cylinders with dished heads, rectangular tanks, spheres, capsules, cones, pipes and more. All live on every keystroke, with gallons and liters side by side and dip chart generation built in.
More Guides You May Find Useful
Tank Volume Formulas for Excel & Google Sheets (Copy-Paste + PDF Dip Chart)
Copy-paste Excel formulas for vertical and horizontal cylinder tank volume, oval tank capacity, partial fill segment math and dished-head corrections — plus homemade dip chart steps.
Standard Aquarium Sizes Chart — Dimensions, Gallons & Weight
Complete standard aquarium sizes chart — dimensions, gallons, glass thickness and filled weight for Standard, Long, High, Breeder, Column and Corner variants 1 to 200+ gallons.
Oil Tank Charts & Dip Tables — 275, 330, 500, 550, 1000 Gallon
Complete dip charts and strapping tables for 275 gal oval, 330 gal, 500 gal, 550 gal, 1000 gal, 2000 gal and 10000 gal oil tanks — horizontal vs vertical comparison, inches to gallons lookup table.
Tank Calculators
Fish Tank Volume Calculator
Calculate fish tank volume in gallons and liters for rectang...
Propane Tank Size Calculator
Size a propane tank from BTU demand, check 80% fill rule cap...
Water Tank Capacity Calculator
Calculate water tank capacity in liters and gallons for roun...
Diesel & Fuel Tank Calculator
Calculate diesel and fuel tank capacity, weight at any fill ...
Horizontal Cylinder Tank Volume Calculator
Calculate horizontal cylinder tank volume with flat, hemisph...
Heating Oil Tank Size Calculator
Heating oil tank size calculator — 275-gal oval case study, ...
Tank Drain Time & Flow Rate Calculator
Calculate tank drain time, fill time and flow rate — Torrice...
Fish Tank Stocking Calculator
How many fish fit in your tank? Calculate stocking density f...
Air Receiver Tank Size Calculator
Size an air receiver from compressor CFM and demand — usable...
Cone Bottom Tank Volume Calculator
Cone bottom tank volume — frustum hopper plus cylindrical sh...
Aquarium Substrate Calculator
How much gravel, sand or planted tank soil do you need? Weig...
Tank Pressure Calculator
Hydrostatic pressure at any tank depth in psi, bar and kPa —...
Pipe Volume Calculator
Calculate pipe volume in gallons, liters and cubic feet from...
Gallons to Square Feet Converter
Convert gallons to square feet and back for ponds, pools, ir...
Liter to Gallon Converter
Live bidirectional liter to gallon converter supporting both...
Liquid Weight Calculator
Convert gallons to pounds and liters to kilograms for water,...
Rectangular Tank Volume Calculator
Calculate rectangular and square tank volume in gallons and ...
Vertical Cylinder Tank Volume Calculator
Calculate vertical cylinder tank volume with flat or dished ...
Tank Shell Weight Calculator
Calculate empty tank shell weight for steel, stainless steel...
Sphere & Capsule Tank Volume Calculator
Calculate pure sphere and capsule (cylinder with hemispheric...