Volume of Shapes Calculator
Choose a 3D shape and enter its dimensions to find its volume.
Enter valid dimensions in the supported range. Inner diameter must be smaller than outer diameter; fill depth cannot exceed tank diameter; torus major radius must be at least its minor radius.
All lengths use the selected unit. Positive dimensions: 10⁻⁹ to 10⁹; inner diameter and fill depth may be zero. Liter inputs use the same positive bounds. Torus: R ≥ r. Surface areas describe ideal closed solids; the hollow cylinder has two annular ends. Pool area is the water footprint and volume assumes uniform depth. Optional mass = volume (m³) × your entered rate (g/m³); blank rates hide these results. No treatment rate is recommended. Values are approximate, up to 12 significant digits.
Volume formulas for common 3D shapes
Cube: side³. Rectangular box: length × width × height. Cylinder: π × radius² × height. Sphere: (4/3) × π × radius³. Cone: (1/3) × π × radius² × height.
These formulas measure the three-dimensional space enclosed by the shape, in whatever cubed unit your inputs are in (e.g. entering centimeters gives a volume in cubic centimeters).
All lengths use the selected unit. Positive dimensions: 10⁻⁹ to 10⁹; inner diameter and fill depth may be zero. Liter inputs use the same positive bounds. Torus: R ≥ r. Surface areas describe ideal closed solids; the hollow cylinder has two annular ends. Pool area is the water footprint and volume assumes uniform depth. Optional mass = volume (m³) × your entered rate (g/m³); blank rates hide these results. No treatment rate is recommended. Values are approximate, up to 12 significant digits.
Frequently asked questions
Why is a cone's volume one-third of a cylinder's?
A cone with the same base radius and height as a cylinder fits exactly three times inside it — this is a geometric fact provable with calculus, which is why the cone's volume formula has the extra 1/3 factor.
How is a sphere's volume related to its radius?
Sphere volume grows with the cube of the radius — doubling the radius increases the volume by a factor of 8 (2³), not just 2.
What's the difference between volume and surface area?
Volume measures the three-dimensional space a shape encloses (in cubic units); surface area measures the total area of its outer surface (in square units) — they're different measurements answering different questions.
How do I find the volume of a square pyramid?
Choose the rectangular pyramid and enter the same base length and width: V = a² × h ÷ 3, so a base of 4 and height 6 gives 32. A cube is a box with equal sides (V = a³) and a cone is a third of the cylinder with the same base and height.
How do I find the volume of a truncated cone?
Use V = πh ÷ 3 × (R² + R·r + r²) with the base radius R, top radius r and height h. Its lateral area is π(R + r)·s with the slant s = √(h² + (R − r)²). Choose radius, diameter or circumference once; the top circle uses the same measure.
How we verified this calculator
The calculator is checked against 6 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Shape = Truncated cone (frustum)
Length unit = cm
Circular dimension input = Radius
Side = 4
Width = 6
Height = 2
|
Base area: 50.2654824574 cm²
Lateral area: 119.21505919 cm²
Total surface area: 182.046912261 cm²
Circumference: 25.1327412287 cm
|
| 2 |
Shape = Truncated cone (frustum)
Length unit = m
Circular dimension input = Diameter
Side = 10
Width = 2.5
Height = 4
|
Base area: 78.5398163397 m²
Lateral area: 85.8781805159 m²
Total surface area: 176.98436747 m²
Circumference: 31.4159265359 m
|
| 3 |
Shape = Truncated cone (frustum)
Length unit = in
Circular dimension input = Circumference
Side = 12
Width = 10
Height = 12
|
Base area: 11.4591559026 in²
Lateral area: 120 in²
Total surface area: 142.918311805 in²
Circumference: 12 in
|
| 4 |
Shape = Rectangular pyramid
Length unit = m
Circular dimension input = Radius
Side = 4
Width = 4
Height = 6
|
Base area: 16 m²
Lateral area: 50.5964425627 m²
Total surface area: 66.5964425627 m²
Volume: 32 m³
|
| 5 |
Shape = Rectangular pyramid
Length unit = ft
Circular dimension input = Radius
Side = 3
Width = 5
Height = 2.5
|
Base area: 15 ft²
Lateral area: 25.1839814549 ft²
Total surface area: 40.1839814549 ft²
Volume: 12.5 ft³
|
| 6 |
Shape = Rectangular box
Length unit = m
Circular dimension input = Radius
Side = 4
Width = 3
Height = 2
|
Base area: 12 m²
Total surface area: 52 m²
Axial-section diagonal: 5.38516480713 m
Volume: 24 m³
|