Volume and surface area formulas
Volume is the space a solid occupies; surface area is the total area of all its faces. The calculator uses these standard formulas (r = radius, h = perpendicular height):
| Solid | Volume | Surface area |
|---|---|---|
| Cube (edge a) | a3 | 6a2 |
| Rectangular prism | l × w × h | 2(lw + lh + wh) |
| Cylinder | πr2h | 2πr(r + h) |
| Cone | ⅓πr2h | πr(r + l), l = √(r2 + h2) |
| Frustum | ⅓πh(R2 + Rr + r2) | π(R + r)l + πR2 + πr2 |
| Sphere | ⁴⁄₃πr3 | 4πr2 |
| Hemisphere | ⅔πr3 | 3πr2 (with base) |
| Square pyramid | ⅓a2h | a2 + 2as |
| Triangular prism | base area × L | 2 × base + perimeter × L |
| Capsule | πr2a + ⁴⁄₃πr3 | 2πr(2r + a) |
| Torus | 2π2Rr2 | 4π2Rr |
Two patterns are worth remembering. Any prism or cylinder has volume = base area × height. Any pyramid or cone has exactly one third of that, which is why a cone holds a third of the cylinder with the same base and height.
Worked example: a cylindrical tank
The calculator opens with a cylinder of radius r = 0.5 m and height h = 1.2 m, about the size of a small water tank.
- Base area = πr2 = π × 0.52 = 0.7854 m².
- Volume = base area × height = 0.7854 × 1.2 = 0.9425 m³.
- Since 1 m³ = 1,000 litres, the tank holds about 942.5 L, or 942.5 ÷ 3.785 ≈ 249 US gallons.
- Surface area = 2πr(r + h) = 2π × 0.5 × 1.7 = 5.34 m² — useful for estimating paint or insulation. Of that, the curved side is 2πrh = 3.77 m².
In US units the default is r = 1.5 ft, h = 4 ft: V = π × 1.52 × 4 = 28.27 ft³ ≈ 211.5 US gallons. Remember that r is the radius: if you measured a diameter of 1 m, enter 0.5 m. Doubling the radius makes the volume four times larger.
Cones, frustums, pyramids and rings
For a cone the surface area needs the slant height l = √(r2 + h2), not the vertical height. A 3-4-5 cone (r = 3, h = 4) has l = 5, volume 12π ≈ 37.7 and total surface area 24π ≈ 75.4.
A frustum is a cone with its tip cut off — a bucket, lampshade or flower pot. Its volume formula ⅓πh(R2 + Rr + r2) is exactly the large cone minus the small cone that was removed; setting r = 0 gives a cone and r = R a cylinder.
For a square pyramid the calculator reports the slant height of a face, s = √(h2 + (a/2)2), and the lateral edge from a base corner to the apex. A pyramid with a 6 m base and 4 m height has volume 48 m³ and surface area 96 m².
The torus (a doughnut or O-ring) follows Pappus's theorem: volume = area of the tube's cross-section πr2 × distance travelled by its centre 2πR. A capsule is a cylinder with two hemispherical ends, the shape of pills and many pressure tanks.
Units and practical tips
Measure every dimension in the same unit; the calculator converts the result for you. Key exact relations:
- 1 m³ = 1,000 L, and 1 L = 1,000 cm³ = 1,000 mL
- 1 ft = 0.3048 m, so 1 ft³ = 28.3168 L
- 1 US gallon = 231 in³ = 3.785411784 L, so 1 ft³ ≈ 7.48 US gallons
- 1 yd³ = 27 ft³ ≈ 0.7646 m³ (concrete, soil and mulch are sold by the cubic yard)
For containers, the inside dimensions give the capacity; the outside dimensions give the space taken up. Real tanks are rarely filled to the brim, so allow some headroom. For materials such as concrete or gravel, see the concrete calculator and cubic yards calculator, and use the volume converter for other units.
Frequently asked questions
How do I calculate the volume of a cylinder in litres?
Compute πr²h in cubic metres and multiply by 1,000. A cylinder with r = 0.5 m and h = 1.2 m holds 0.9425 m³ = 942.5 L.
Why is a cone one third of a cylinder?
Slicing both into thin discs, the cone's discs shrink in proportion to height, and summing their areas (integration) gives exactly ⅓ of the cylinder with the same base and height. The same holds for any pyramid and prism.
Does the surface area include the bottom?
Yes — the figure shown is the total area of all faces. The curved or lateral area is listed separately for cylinders, cones, frustums and hemispheres, for open containers.
How many gallons are in a cubic foot?
About 7.48 US gallons (exactly 1728 ÷ 231), or 6.23 imperial gallons.
Last reviewed: