Skip to main content
Math

Volume Calculator

Calculate the exact three-dimensional volume and liquid capacity of cylinders, spheres, cubes, cones, pyramids, and rectangular prisms using geometric formulas.

MD Abu Hanif Mia

Engineered & Verified by MD Abu Hanif Mia • Nexus Systems Engineering Team (NIST Constants & ISO 80000-2 Mathematical Standards)

Institutional Formula & Benchmark Verification • Last Verified: 2026-11-19

Formula at a Glance

3D Geometric Volume Formulas

Verified Formula
Vsphere=43πr3,Vcyl=πr2h,Vcone=13πr2hV_{\text{sphere}} = \frac{4}{3}\pi r^3, \quad V_{\text{cyl}} = \pi r^2 h, \quad V_{\text{cone}} = \frac{1}{3}\pi r^2 h

Key Formula Variables:

rRadius: Distance from center to outer edge of circular base/sphere
hHeight: Perpendicular elevation of cylinder, cone, or prism
πPi Constant: Ratio of circumference to diameter (≈ 3.14159265)
Calculation Methodology: 1. Convert all dimensions to the same length unit. 2. Compute base area (πr² for circular solids) and multiply by height (or 4/3 πr³ for spheres).
Try a 1-Click Scenario:
Continue Your Calculation Workflow

What to Calculate After Volume Calculator

The Math Behind It

Calculations for this tool are based on the standard 3D Geometric Volume Formulas:

Vsphere=43πr3,Vcyl=πr2h,Vcone=13πr2hV_{\text{sphere}} = \frac{4}{3}\pi r^3, \quad V_{\text{cyl}} = \pi r^2 h, \quad V_{\text{cone}} = \frac{1}{3}\pi r^2 h
  • r = Radius (Distance from center to outer edge of circular base/sphere)
  • h = Height (Perpendicular elevation of cylinder, cone, or prism)
  • π = Pi Constant (Ratio of circumference to diameter (≈ 3.14159265))

1. Convert all dimensions to the same length unit. 2. Compute base area (πr² for circular solids) and multiply by height (or 4/3 πr³ for spheres).

Quick Reference Matrix

Concrete Slab Volume & Premix Bag Estimator (4-Inch / 10 cm Standard Slab)

Interactive Presets

Exact concrete volume and premix bag counts (including 10% standard waste allowance) for patios, shed pads, and garage slabs.

Concrete Slab Volume & Premix Bag Estimator (4-Inch / 10 cm Standard Slab)
Slab Dimensions (4")Cubic YardsCubic Feet80-lb Bags (+10%)60-lb Bags (+10%)Action
10 × 10 ft (4" thick)1.23 yd³33 ft³62 bags82 bags
12 × 12 ft (4" thick)1.78 yd³48 ft³89 bags118 bags
10 × 20 ft (4" thick)2.47 yd³67 ft³123 bags163 bags
20 × 20 ft (4" thick)4.94 yd³133 ft³245 bags326 bags
24 × 24 ft (4" thick)7.11 yd³192 ft³353 bags470 bags

Click any row to test these numbers in the interactive calculator above.

In three-dimensional Euclidean geometry, volume quantifies the total physical space enclosed within the boundary surfaces of a solid object. Whereas length is measured in one dimension (m\text{m}, ft\text{ft}) and surface area is measured in two perpendicular dimensions (m2\text{m}^2, ft2\text{ft}^2), volume integrates across three orthogonal axes—length, width, and altitude—and is always expressed in cubic units (m3\text{m}^3, cm3\text{cm}^3, in3\text{in}^3, ft3\text{ft}^3, yd3\text{yd}^3) or equivalent fluid capacity measures (Liters\text{Liters}, US Gallons\text{US Gallons}). Whether you are ordering ready-mix concrete for a foundation slab, sizing a cylindrical chemical storage vessel, or calculating freight container displacement, our Volume Calculator solves the exact geometric equations for standard and composite 3D solids.

Exact Geometric Volume Formulas for 3D Solids

Before entering measurements into the calculator, ensure all dimensions (radius, length, width, and height) are converted into the same base linear unit.

1. Cube and Rectangular Prism (Cuboid)

For any right prism with a rectangular cross-section, volume is the product of the base area (Abase=l×wA_{\text{base}} = l \times w) and the perpendicular altitude (hh):

Vprism=l×w×handVcube=a3V_{\text{prism}} = l \times w \times h \qquad \text{and} \qquad V_{\text{cube}} = a^3

Where:

  • $l, w, h$ = Length, width, and perpendicular height of the rectangular box
  • aa = Edge length of a regular cube where l=w=h=al = w = h = a

2. Right Circular Cylinder and Hollow Pipe (Annulus)

A cylinder extrudes a circular base of area A=πr2A = \pi r^2 along a vertical axis hh. For a hollow cylindrical pipe or tube wall, subtract the inner core cylinder from the outer cylinder:

Vcylinder=πr2h=πd2h4andVpipe=πh(Router2−rinner2)V_{\text{cylinder}} = \pi r^2 h = \frac{\pi d^2 h}{4} \qquad \text{and} \qquad V_{\text{pipe}} = \pi h \left(R_{\text{outer}}^2 - r_{\text{inner}}^2\right)

Where:

  • rr = Radius of the circular base (r=d2r = \frac{d}{2}, where dd is the diameter)
  • hh = Perpendicular height or length of the cylinder
  • Router,rinnerR_{\text{outer}}, r_{\text{inner}} = Outside radius and inside bore radius of a hollow tube

3. Sphere and Hemisphere

A sphere is the locus of all points in 3D space equidistant from a center at radius rr:

Vsphere=43πr3=16πd3andVhemisphere=23πr3V_{\text{sphere}} = \frac{4}{3} \pi r^3 = \frac{1}{6} \pi d^3 \qquad \text{and} \qquad V_{\text{hemisphere}} = \frac{2}{3} \pi r^3

4. Right Circular Cone and Conical Frustum

A cone tapers linearly from a circular base of radius rr to an apex at perpendicular height hh. If only the diagonal slant height (ss) is known, calculate vertical height via h=s2−r2h = \sqrt{s^2 - r^2}:

Vcone=13πr2handVfrustum=13πh(R2+Rr+r2)V_{\text{cone}} = \frac{1}{3} \pi r^2 h \qquad \text{and} \qquad V_{\text{frustum}} = \frac{1}{3} \pi h \left(R^2 + Rr + r^2\right)

Where RR and rr in the frustum equation represent the bottom and top radii of a truncated cone.

5. Rectangular or Square Pyramid

Any pyramid tapering linearly from a polygonal base of area AbaseA_{\text{base}} to an apex encloses one-third the volume of an enclosing prism:

Vpyramid=13Abaseh=13l×w×hV_{\text{pyramid}} = \frac{1}{3} A_{\text{base}} h = \frac{1}{3} l \times w \times h

Cavalieri's Principle and Archimedes' 1 : 2 : 3 Volume Ratio

Two geometric theorems govern how 3D shapes relate to one another:

  • Cavalieri's Principle for Oblique Solids: If a prism or cylinder is tilted sideways at angle θ\theta, its volume remains V=Abase×hV = A_{\text{base}} \times h, provided hh is measured perpendicular to the base plane (h=Lslantsin⁡θh = L_{\text{slant}} \sin\theta).
  • Archimedes' Circumscribed Cylinder Theorem: A cone, a sphere, and a cylinder sharing radius rr and total height h=2rh = 2r maintain an exact volume ratio of $1 : 2 : 3$:
    Vcone=23πr3:Vsphere=43πr3:Vcylinder=2πr3V_{\text{cone}} = \frac{2}{3}\pi r^3 \quad : \quad V_{\text{sphere}} = \frac{4}{3}\pi r^3 \quad : \quad V_{\text{cylinder}} = 2\pi r^3

Step-by-Step Worked Numerical Calculation: Composite Industrial Silo

Suppose an agricultural engineer needs to calculate the total storage volume and liquid capacity of a vertical steel grain silo with an internal radius of r=1.50 mr = 1.50\text{ m} (diameter d=3.00 md = 3.00\text{ m}). The silo consists of three distinct geometric sections:

  1. Main Cylindrical Barrel: Radius r=1.50 mr = 1.50\text{ m}, vertical height hcyl=4.00 mh_{\text{cyl}} = 4.00\text{ m}
  2. Top Hemispherical Dome: Radius r=1.50 mr = 1.50\text{ m}
  3. Bottom Conical Discharge Hopper: Radius r=1.50 mr = 1.50\text{ m}, vertical depth hcone=1.20 mh_{\text{cone}} = 1.20\text{ m}

Step 1: Calculate the Cylindrical Barrel Volume

Vcyl=πr2hcyl=π×(1.50)2×4.00=9.00π≈28.2743 m3V_{\text{cyl}} = \pi r^2 h_{\text{cyl}} = \pi \times (1.50)^2 \times 4.00 = 9.00\pi \approx 28.2743\text{ m}^3

Step 2: Calculate the Hemispherical Top Dome Volume

Vhemi=23πr3=23×π×(1.50)3=23×3.375π=2.25π≈7.0686 m3V_{\text{hemi}} = \frac{2}{3} \pi r^3 = \frac{2}{3} \times \pi \times (1.50)^3 = \frac{2}{3} \times 3.375\pi = 2.25\pi \approx 7.0686\text{ m}^3

Step 3: Calculate the Conical Bottom Hopper Volume

Vcone=13πr2hcone=13×π×(1.50)2×1.20=0.90π≈2.8274 m3V_{\text{cone}} = \frac{1}{3} \pi r^2 h_{\text{cone}} = \frac{1}{3} \times \pi \times (1.50)^2 \times 1.20 = 0.90\pi \approx 2.8274\text{ m}^3

Step 4: Sum the Sections and Convert to Practical Capacity Units

  • Total Exact Cubic Volume:
    Vtotal=(9.00+2.25+0.90)π=12.15π≈38.1704 m3V_{\text{total}} = (9.00 + 2.25 + 0.90)\pi = 12.15\pi \approx 38.1704\text{ m}^3
  • Capacity in Liters (1 m3=1,000 L1\text{ m}^3 = 1,000\text{ L}):
    38.1704 m3×1,000 L/m3=38,170.4 Liters38.1704\text{ m}^3 \times 1,000\text{ L/m}^3 = 38,170.4\text{ Liters}
  • Capacity in US Liquid Gallons (1 m3≈264.17205 gal1\text{ m}^3 \approx 264.17205\text{ gal}):
    38.1704 m3×264.17205 gal/m3=10,083.6 US Gallons38.1704\text{ m}^3 \times 264.17205\text{ gal/m}^3 = 10,083.6\text{ US Gallons}
  • Volume in Cubic Yards (1 m3≈1.30795 yd31\text{ m}^3 \approx 1.30795\text{ yd}^3):
    38.1704 m3×1.30795 yd3/m3=49.93 yd338.1704\text{ m}^3 \times 1.30795\text{ yd}^3/\text{m}^3 = 49.93\text{ yd}^3

3D Geometric Formulas & Unit Conversion Benchmark Table

Use the reference table below to compare standard geometric equations, sample volume outputs, and cubic unit conversions:

3D Geometric SolidVolume Equation (VV)Total Surface Area (AsA_s)Benchmark DimensionsVolume in m3\text{m}^3Capacity in Liters (L\text{L})
Cubea3a^36a26a^2a=2.00 ma = 2.00\text{ m}8.0000 m38.0000\text{ m}^38,000.0 L8,000.0\text{ L}
Rectangular Prisml×w×hl \times w \times h$2(lw + lh + wh)$4.0 m×2.5 m×1.5 m4.0\text{ m} \times 2.5\text{ m} \times 1.5\text{ m}15.0000 m315.0000\text{ m}^315,000.0 L15,000.0\text{ L}
Right Cylinderπr2h\pi r^2 h2πr(r+h)2\pi r(r + h)r=1.20 m,  h=3.00 mr = 1.20\text{ m},; h = 3.00\text{ m}13.5717 m313.5717\text{ m}^313,571.7 L13,571.7\text{ L}
Full Sphere43πr3\frac{4}{3}\pi r^34πr24\pi r^2r=1.50 mr = 1.50\text{ m}14.1372 m314.1372\text{ m}^314,137.2 L14,137.2\text{ L}
Right Circular Cone13πr2h\frac{1}{3}\pi r^2 hπr(r+r2+h2)\pi r(r + \sqrt{r^2 + h^2})
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l0 -0
c5.3,-9.3,12,-14,20,-14
H400000v40H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M834 80h400000v40h-400000z"/>​)r=1.20 m,  h=3.00 mr = 1.20\text{ m},; h = 3.00\text{ m}4.5239 m34.5239\text{ m}^34,523.9 L4,523.9\text{ L}
Square Pyramid13a2h\frac{1}{3} a^2 ha2+2a(a/2)2+h2a^2 + 2a\sqrt{(a/2)^2 + h^2}
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l0 -0
c4.7,-7.3,11,-11,19,-11
H40000v40H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M1001 80h400000v40h-400000z"/>​a=2.00 m,  h=3.00 ma = 2.00\text{ m},; h = 3.00\text{ m}4.0000 m34.0000\text{ m}^34,000.0 L4,000.0\text{ L}
Conical Frustum13πh(R2+Rr+r2)\frac{1}{3}\pi h(R^2 + Rr + r^2)π[R2+r2+s(R+r)]\pi [R^2 + r^2 + s(R+r)]R=1.5 m,  r=0.8 m,  h=2.0 mR = 1.5\text{ m},; r = 0.8\text{ m},; h = 2.0\text{ m}8.5661 m38.5661\text{ m}^38,566.1 L8,566.1\text{ L}

Cubic Scaling Conversion Rules to Remember

When converting between linear measurements and cubic volumes, always cube the linear scale factor (k3k^3):

  • 1 m=100 cm1\text{ m} = 100\text{ cm}   ⟹  1 m3=(100)3 cm3=1,000,000 cm3 (mL)=1,000 Liters\implies 1\text{ m}^3 = (100)^3\text{ cm}^3 = 1,000,000\text{ cm}^3\text{ (mL)} = 1,000\text{ Liters}
  • 1 ft=12 in1\text{ ft} = 12\text{ in}   ⟹  1 ft3=(12)3 in3=1,728 in3≈7.48052 US Liquid Gallons\implies 1\text{ ft}^3 = (12)^3\text{ in}^3 = 1,728\text{ in}^3 \approx 7.48052\text{ US Liquid Gallons}
  • 1 yd=3 ft1\text{ yd} = 3\text{ ft}   ⟹  1 yd3=(3)3 ft3=27 ft3≈201.974 US Liquid Gallons\implies 1\text{ yd}^3 = (3)^3\text{ ft}^3 = 27\text{ ft}^3 \approx 201.974\text{ US Liquid Gallons}
  • 1 US Liquid Gallon1\text{ US Liquid Gallon} =231 in3≈3.78541 Liters= 231\text{ in}^3 \approx 3.78541\text{ Liters}

Frequently Asked Questions

What is the mathematical formula used by the Volume Calculator?
The Volume Calculator uses the 3D Geometric Volume Formulas: Sphere = (4/3)πr³ | Cylinder = πr²h | Cone = (1/3)πr²h | Box = l × w × h. Where: r = Radius (Distance from center to outer edge of circular base/sphere); h = Height (Perpendicular elevation of cylinder, cone, or prism); π = Pi Constant (Ratio of circumference to diameter (≈ 3.14159265)). 1. Convert all dimensions to the same length unit. 2. Compute base area (πr² for circular solids) and multiply by height (or 4/3 πr³ for spheres).
How do you calculate the volume of a cylinder from its diameter and height?
First divide the diameter by 2 to find the radius (r = d / 2). Then square the radius, multiply by pi (approximately 3.14159265), and multiply by the cylinder height: V = pi * r^2 * h. Equivalently, using diameter directly, V = (pi / 4) * d^2 * h.
Why is a cone's volume exactly one-third the volume of a cylinder with the same base and height?
By integral calculus, slicing a cone parallel to its base at distance x from the apex creates circular cross-sections whose radii scale linearly as (r/h)*x and whose areas scale quadratically as pi*(r/h)^2 * x^2. Integrating x^2 from 0 to h produces (1/3)*h^3, resulting in V = (1/3) * pi * r^2 * h.
How do I convert cubic feet or cubic meters into liquid gallons or liters?
One cubic meter (1 m^3) equals exactly 1,000 liters or approximately 264.172 US liquid gallons. One cubic foot (1 ft^3) equals 1,728 cubic inches, 28.3168 liters, or approximately 7.48052 US liquid gallons.
Why are there 27 cubic feet in 1 cubic yard instead of 3?
Linear conversions must be cubed when converting three-dimensional volume units. Because 1 linear yard equals 3 linear feet along the length, width, and height axes simultaneously, 1 cubic yard equals 3 ft * 3 ft * 3 ft = 27 cubic feet.
Does tilting a prism or cylinder (an oblique solid) change its volume?
No. According to Cavalieri's Principle, if two three-dimensional solids share the exact same perpendicular height and identical cross-sectional areas at every horizontal plane parallel to their bases, their total volumes are identical regardless of tilt angle.

Community Discussions & Real Scenarios

Ask specific questions, compare edge cases, and get advice from people calculating the same scenario.