3D Shape Calculator - Volume & Surface Area
Math Calculators
Calculate volume, total and lateral area, and capacity for 3D shapes. Includes sphere, cylinder, cone, pyramid, torus, frustum, units, and formula steps.
The unit labels entered values; changing it does not rescale dimensions.
Results
Step-by-step solution
- All entered dimensions are interpreted in cm.
- Sphere with radius r = 5
- Surface area = 4πr² = 4·π·5² = 314.159265
- Volume = (4/3)·π·r³ = (4/3)·π·5³ = 523.598776
How to use this tool
- Choose a solid. Select the sphere, prism, cylinder, cone, torus, pyramid, or frustum.
- Set a length unit. Choose the unit you want displayed; the calculator does not rescale entered dimensions.
- Enter dimensions. Provide each positive dimension. Circular solids accept either radius or diameter.
- Read the results. Review total area, any lateral and base areas, volume, capacity, slant height, and the formula steps.
3D shape formulas and units
Choose a solid and enter its positive dimensions to calculate volume and surface area. The calculator includes a sphere, cube, rectangular prism, cylinder, cone, regular tetrahedron, ring torus, square pyramid, and conical frustum. It shows formula steps and a labeled schematic so you can see which radius, height, or slant length each result uses.
Sphere, cube, rectangular prism, and tetrahedron
- Sphere: total surface area = 4πr²; volume = (4/3)πr³.
- Cube: total surface area = 6a²; volume = a³.
- Rectangular prism: total surface area = 2(lw + lh + wh); volume = l·w·h.
- Regular tetrahedron: total surface area = √3·a²; volume = a³/(6√2).
Cylinder (radius r, height h)
- Lateral area: 2πrh.
- Both bases together: 2πr².
- Total surface area: 2πrh + 2πr²; volume: πr²h.
Cone (base radius r, vertical height h)
- Slant height: ℓ = √(r² + h²).
- Lateral area: πrℓ; base area: πr².
- Total surface area: πrℓ + πr²; volume: (1/3)πr²h.
Ring torus (major radius R, tube radius r)
- Total surface area: 4π²Rr; volume: 2π²Rr².
- A ring torus requires R > r > 0, leaving a hole through its center.
Square pyramid (base side a, vertical height h)
- Face slant height: ℓ = √(h² + (a/2)²).
- Base area: a²; lateral area: 2aℓ.
- Total surface area: a² + 2aℓ; volume: (1/3)a²h.
Conical frustum (larger radius R, smaller radius r, vertical height h)
- Slant height: ℓ = √(h² + (R − r)²).
- Both circular bases: π(R² + r²); lateral area: π(R + r)ℓ.
- Total surface area: π(R² + r²) + π(R + r)ℓ.
- Volume: (πh/3)(R² + Rr + r²), with R > r > 0.
Using the measurements
The radius/diameter control appears for spheres, cylinders, and cones. Diameter is the full distance across a circle, so the calculator divides it by two before applying the radius-based formulas. Switching between radius and diameter doubles or halves the visible input while keeping the represented shape unchanged. The cone, square pyramid, and frustum also report their computed slant height.
Select mm, cm, m, in, or ft to label the results. This selector interprets the numbers you entered; it does not convert or rescale them. For example, a cylinder with r = 3 and h = 4 has volume 36π cubic units. In centimeters this is 36π cm³ and 36π/1000 liters; in inches it is 36π in³ and 36π/231 US gallons. Metric capacity uses 1 L = 1,000 cm³ (or 1,000,000 mm³ and 0.001 m³); US capacity uses 231 in³ per gallon.
Lateral area includes only a cylinder's side, a cone's curved surface, or a pyramid/frustum's sloping faces. Base area is shown separately, and total surface area adds every base. This distinction is useful when estimating paint for the side of a tank, fabric for a tent, or material to cover a closed solid. Enter every dimension in the same selected unit; mixing inches and feet without first converting them produces inconsistent area and volume.
Worked examples
| Shape | Input (cm) | Total surface area | Volume |
|---|---|---|---|
| Sphere | r = 5 | 314.159 cm² | 523.599 cm³ |
| Cube | a = 4 | 96 cm² | 64 cm³ |
| Rectangular prism | 4 × 3 × 2 | 52 cm² | 24 cm³ |
| Cylinder | r = 3, h = 4 | 131.947 cm² | 113.097 cm³ |
| Cone | r = 3, h = 4 | 75.398 cm² | 37.699 cm³ |
| Torus | R = 3, r = 1 | 118.435 cm² | 59.218 cm³ |
| Square pyramid | a = 6, h = 4 | 96 cm² | 48 cm³ |
| Frustum | R = 5, r = 3, h = 4 | 219.211 cm² | 205.251 cm³ |
These results assume ideal geometric solids with flat bases and straight sides. The diagrams are schematic rather than engineering drawings, and rounded displays may differ slightly from calculations that use full floating-point precision.
Frequently asked questions
Does changing the length unit convert my dimensions?
No. The selected unit labels the numbers you entered; it does not rescale them. If you change centimeters to inches, the same numeric dimensions are reinterpreted as inches.
What is the difference between lateral and total surface area?
Lateral surface area covers the curved or side faces only. Total surface area adds the base area or areas, so it is the value to use when every face will be covered.
How does diameter mode work?
Enter the full diameter. The calculator divides it by two to get radius, then applies the same radius-based formulas. Switching modes doubles or halves the displayed value to preserve the same shape.
When is the torus a ring torus?
A ring torus has a hole through its center and requires its major radius R to be greater than its minor radius r.
Related tools
- Circle CalculatorCalculate the circular dimensions used by spheres, cylinders, and cones.
- Polygon CalculatorCalculate a regular base face before using it in a prism or pyramid.
- Volume ConverterConvert the calculated volume into another cubic or liquid unit.
- Length ConverterNormalize all dimensions to one length unit before calculating the shape.