TExcelTAD
Home › Pre-Calculus, Geometry & Trigonometry › Volume and Surface Area

Volume and Surface Area

Solid shapes have two basic measurements: volume, the space inside (in cubic units such as cm3\text{cm}^3), and surface area, the total area of the outside skin (in square units). This lesson collects the formulas for prisms, cylinders, pyramids, cones and spheres, shows how they scale, and computes the volume of a 3D mesh the way game engines and 3D printers do.

The formula sheet

BB is the area of the base, hh the height (measured perpendicular to the base), rr the radius.

Solid Volume Surface area
cube, edge ss s3s^3 6s26s^2
box l×w×hl \times w \times h l⋅w⋅hl \cdot w \cdot h 2(lw+lh+wh)2(lw + lh + wh)
any prism B⋅hB \cdot h 2B+perimeter of base⋅h2B + \text{perimeter of base} \cdot h
cylinder πr2h\pi r^2 h 2πr2+2πrh2\pi r^2 + 2\pi rh
pyramid 13⋅B⋅h\frac{1}{3} \cdot B \cdot h B+the triangular facesB + \text{the triangular faces}
cone 13⋅πr2h\frac{1}{3} \cdot \pi r^2 h πr2+πrℓ\pi r^2 + \pi r\ell, slant height ℓ=r2+h2\ell = \sqrt{r^2 + h^2}
sphere 43⋅πr3\frac{4}{3} \cdot \pi r^3 4πr24\pi r^2

Two patterns make the table easy to remember:

  • Prisms and cylinders are a base slid straight up: volume=base×height\text{volume} = \text{base} \times \text{height}.
  • Pyramids and cones taper to a point and hold exactly one third of the matching prism or cylinder.

The space diagonal of a box, the longest straight line inside it, uses the Pythagorean theorem twice: d=l2+w2+h2d = \sqrt{l^2 + w^2 + h^2}.

Archimedes' 1:2:31 : 2 : 3

Put a sphere of radius rr snugly inside a cylinder of radius rr and height 2r2r, and a cone with the same base and height. Their volumes are in the ratio 1:2:31 : 2 : 3:

python · try it yourself
import math

r = 3
h = 2 * r
cone = math.pi * r**2 * h / 3
sphere = 4 / 3 * math.pi * r**3
cylinder = math.pi * r**2 * h
print(f"cone     {cone:8.3f} = {cone / math.pi:.0f}π")
print(f"sphere   {sphere:8.3f} = {sphere / math.pi:.0f}π")
print(f"cylinder {cylinder:8.3f} = {cylinder / math.pi:.0f}π")
print("ratio:", round(cone / cone), ":", round(sphere / cone), ":", round(cylinder / cone))

slant = math.hypot(r, h)
print(f"cone surface: {math.pi * r**2 + math.pi * r * slant:.3f}  sphere surface: {4 * math.pi * r**2:.3f}")
cone       56.549 = 18π
sphere    113.097 = 36π
cylinder  169.646 = 54π
ratio: 1 : 2 : 3
cone surface: 91.498  sphere surface: 113.097

Archimedes was so proud of the sphere-in-cylinder result that he asked for it to be carved on his tomb. The calculus behind these formulas comes in Volume.

Scaling: kk, k2k^2, k3k^3

Scale a solid by a factor kk: lengths grow by kk, surface area by k2k^2, volume by k3k^3. Volume outruns surface, so the surface-to-volume ratio falls as things get bigger. For a sphere it is 4πr2/(43πr3)=3/r4\pi r^2 / (\frac{4}{3}\pi r^3) = 3/r:

python · try it yourself
import math

print(" r    surface     volume   surface/volume")
for r in [1, 2, 4, 8]:
    S = 4 * math.pi * r**2
    V = 4 / 3 * math.pi * r**3
    print(f"{r:2} {S:10.2f} {V:10.2f} {S / V:12.3f}")
 r    surface     volume   surface/volume
 1      12.57       4.19        3.000
 2      50.27      33.51        1.500
 4     201.06     268.08        0.750
 8     804.25    2144.66        0.375

This is why crushed ice melts faster than a block, and why small animals lose heat quickly. In code, it explains why chunked voxel worlds pick large chunks: fewer surface faces to render per unit of volume.

In software: the volume of a mesh

3D models are stored as triangles with outward-facing vertex order. Each triangle together with the origin forms a tetrahedron with signed volume 16 v0⋅(v1×v2)\frac{1}{6}\, \mathbf{v}_0 \cdot (\mathbf{v}_1 \times \mathbf{v}_2) (dot and cross products from Vectors in Geometry). Summing over all triangles gives the volume of the closed mesh, wherever the origin is: the parts outside the solid cancel. Here is a square pyramid with base 2×22 \times 2 and height 3:

python · try it yourself
import numpy as np

base = [np.array(p, dtype=float) for p in [(0, 0, 0), (2, 0, 0), (2, 2, 0), (0, 2, 0)]]
apex = np.array([1.0, 1.0, 3.0])
a, b, c, d = base
triangles = [
    (a, d, c), (a, c, b),                                # base, facing down
    (a, b, apex), (b, c, apex), (c, d, apex), (d, a, apex),
]

def mesh_volume(tris, origin=np.zeros(3)):
    return sum(float(np.dot(p - origin, np.cross(q - origin, r - origin))) for p, q, r in tris) / 6

print("mesh volume:", round(mesh_volume(triangles), 6))
print("from (5, -3, 7):", round(mesh_volume(triangles, np.array([5.0, -3.0, 7.0])), 6))
print("⅓·B·h:", 4 * 3 / 3)
mesh volume: 4.0
from (5, -3, 7): 4.0
⅓·B·h: 4.0

3D printing slicers use this to estimate filament, physics engines use it for mass, and a negative result tells you the mesh's faces are inside out. This is a discrete form of the divergence theorem (Divergence Theorem).

Exercises

Exercise 1: A box

Find the volume, surface area and space diagonal of a 3×4×53 \times 4 \times 5 box.

Answer

Volume 60, surface area 94, diagonal 50≈7.071\sqrt{50} \approx 7.071.

Solution
V=3⋅4⋅5=60S=2(3⋅4+3⋅5+4⋅5)=2(12+15+20)=94d=9+16+25=50=52≈7.071\begin{aligned} V &= 3 \cdot 4 \cdot 5 = 60 \\ S &= 2(3 \cdot 4 + 3 \cdot 5 + 4 \cdot 5) = 2(12 + 15 + 20) = 94 \\ d &= \sqrt{9 + 16 + 25} = \sqrt{50} = 5\sqrt{2} \approx 7.071 \end{aligned}

Exercise 2: A tin can

A can has radius 4 cm and height 10 cm. Find its volume (in cm3\text{cm}^3 and litres) and the metal needed for its surface.

Answer

160π≈502.65 cm3≈0.503 L160\pi \approx 502.65\ \text{cm}^3 \approx 0.503\ \text{L}; surface 112π≈351.86 cm2112\pi \approx 351.86\ \text{cm}^2.

Solution
V=π⋅42⋅10=160π≈502.65 cm3,1 L=1000 cm3→0.503 LS=2π⋅16+2π⋅4⋅10=32π+80π=112π≈351.86 cm2\begin{aligned} V &= \pi \cdot 4^2 \cdot 10 = 160\pi \approx 502.65\ \text{cm}^3, \qquad 1\ \text{L} = 1000\ \text{cm}^3 \to 0.503\ \text{L} \\ S &= 2\pi \cdot 16 + 2\pi \cdot 4 \cdot 10 = 32\pi + 80\pi = 112\pi \approx 351.86\ \text{cm}^2 \end{aligned}

Exercise 3: A cone

A cone has radius 6 and height 8. Find its slant height, volume and total surface area.

Answer

ℓ=10\ell = 10, V=96π≈301.59V = 96\pi \approx 301.59, S=96π≈301.59S = 96\pi \approx 301.59.

Solution
ℓ=62+82=10V=13⋅π⋅36⋅8=96πS=π⋅36+π⋅6⋅10=36π+60π=96π\begin{aligned} \ell &= \sqrt{6^2 + 8^2} = 10 \\ V &= \tfrac{1}{3} \cdot \pi \cdot 36 \cdot 8 = 96\pi \\ S &= \pi \cdot 36 + \pi \cdot 6 \cdot 10 = 36\pi + 60\pi = 96\pi \end{aligned}

The volume and surface area having the same number is a coincidence of these dimensions; they have different units.

Exercise 4: Twice the volume

By what factor must you scale a sphere's radius to double its volume? What happens to its surface area?

Answer

Radius×23≈1.26\text{Radius} \times \sqrt[3]{2} \approx 1.26; surface area×43≈1.587\text{surface area} \times \sqrt[3]{4} \approx 1.587.

Solution
volume factor k3=2⇒k=23≈1.2599surface factor k2=(23)2=43≈1.5874\begin{aligned} \text{volume factor } k^3 &= 2 \Rightarrow k = \sqrt[3]{2} \approx 1.2599 \\ \text{surface factor } k^2 &= (\sqrt[3]{2})^2 = \sqrt[3]{4} \approx 1.5874 \end{aligned}
python · try it yourself
k = 2 ** (1 / 3)
print(round(k, 4), round(k ** 2, 4))
1.2599 1.5874

Exercise 5: Marbles

How many marbles of radius 1 cm have the same total volume as one ball of radius 5 cm? And how does their total surface compare to the ball's?

Answer

125 marbles; their total surface is 5 times the ball's.

Solution
volume ratio=(5/1)3=125125 marbles⋅4π⋅12=500π,ball: 4π⋅52=100π→5 times as much surface\begin{aligned} &\text{volume ratio} = (5/1)^3 = 125 \\ &125\ \text{marbles} \cdot 4\pi \cdot 1^2 = 500\pi, \qquad \text{ball: } 4\pi \cdot 5^2 = 100\pi \to 5\ \text{times as much surface} \end{aligned}

Test yourself

A cone and a cylinder have the same radius and height. How do their volumes compare?

  1. The cone has half the volume
  2. They are equal
  3. The cone has one third of the volume
  4. The cone has two thirds of the volume

Every length of a statue is doubled. How much more bronze does it need?

  1. 8 times as much
  2. 2 times as much
  3. 4 times as much
  4. 6 times as much

The signed-tetrahedron sum for a closed mesh comes out negative. What is the most likely cause?

  1. The origin is outside the mesh
  2. The triangles are wound inward (faces inside out)
  3. The mesh is too large
  4. Volume is always negative in 3D