geometry25 min

Volume and Surface Area

Computing volume and surface area for boxes, cylinders, spheres, and other 3D shapes

0/9Not Started

Why This Matters

When you move from 2D to 3D, area becomes volume (how much space a solid occupies) and perimeter becomes surface area (the total area of all outer faces). These measurements are everywhere: the capacity of a shipping container, the amount of paint needed to coat a room, the memory required to store a 3D model, and the cooling surface of a heat sink.

A prism is one of the most common 3D shapes: it has two identical polygon bases connected by rectangular faces. Boxes (rectangular prisms) are the standard unit of shipping, storage, and architecture. Cylinders (circular prisms) hold beverages, fuel, and grain. Spheres enclose the maximum volume for a given surface area, which is why bubbles, planets, and ball bearings are round.

Understanding how volume scales is especially important: doubling every dimension of a box multiplies its volume by 8 (2 cubed), while surface area only multiplies by 4 (2 squared). This cube-square law governs everything from why elephants have thick legs to why microchips generate so much heat relative to their size.

Define Terms

Visual Model

3D SolidOccupies space
Box (Rect. Prism)V = l * w * h
CylinderV = pi * r^2 * h
SphereV = (4/3) pi r^3
Box SA2(lw + lh + wh)
Cylinder SA2 pi r(r + h)
Sphere SA4 pi r^2
General PrismV = base area * height
ConeV = (1/3) pi r^2 h
Scaling LawV scales as k^3, SA as k^2

The full process at a glance. Click Start tour to walk through each step.

Common 3D shapes and their volume and surface area formulas. Volume scales as the cube of dimensions, surface area as the square.

Code Example

Code
const PI = Math.PI;

// Box (rectangular prism)
function boxVolume(l, w, h) { return l * w * h; }
function boxSA(l, w, h) { return 2 * (l*w + l*h + w*h); }

console.log("Box 3x4x5 volume:", boxVolume(3, 4, 5));  // 60
console.log("Box 3x4x5 SA:", boxSA(3, 4, 5));          // 94

// Cylinder
function cylinderVolume(r, h) { return PI * r ** 2 * h; }
function cylinderSA(r, h) { return 2 * PI * r * (r + h); }

console.log("Cylinder r=3 h=7 volume:", cylinderVolume(3, 7).toFixed(2));  // 197.92
console.log("Cylinder r=3 h=7 SA:", cylinderSA(3, 7).toFixed(2));          // 188.50

// Sphere
function sphereVolume(r) { return (4/3) * PI * r ** 3; }
function sphereSA(r) { return 4 * PI * r ** 2; }

console.log("Sphere r=5 volume:", sphereVolume(5).toFixed(2));  // 523.60
console.log("Sphere r=5 SA:", sphereSA(5).toFixed(2));          // 314.16

// Scaling: double all dimensions of a box
const v1 = boxVolume(2, 3, 4);
const v2 = boxVolume(4, 6, 8);
console.log("Volume ratio (doubled dims):", v2 / v1);  // 8

const sa1 = boxSA(2, 3, 4);
const sa2 = boxSA(4, 6, 8);
console.log("SA ratio (doubled dims):", sa2 / sa1);    // 4

Interactive Experiment

Try these exercises:

  • Compute the volume and surface area of a cube with side length 6. Verify that volume equals side cubed and surface area equals 6 times side squared.
  • A cylindrical water tank has radius 2 meters and height 5 meters. How many liters of water can it hold? (1 cubic meter = 1000 liters.)
  • Compare the volumes of a sphere with radius 3 and a cube with side length 6 (the cube that just contains the sphere). Which is larger and by how much?
  • Triple all dimensions of a box. By what factor do volume and surface area increase?
  • A cone has volume equal to one third of a cylinder with the same base and height. Verify this for radius 4 and height 9.

Quick Quiz

Coding Challenge

3D Shape Calculator

Write a function called `shapeCalc` that takes a shape type ('box', 'cylinder', or 'sphere') and its dimensions, and returns an object with `volume` and `surfaceArea`, both rounded to 2 decimal places. For 'box', dimensions are [length, width, height]. For 'cylinder', dimensions are [radius, height]. For 'sphere', dimensions are [radius].

Loading editor...

Real-World Usage

Volume and surface area calculations are essential in many fields:

  • Shipping and logistics: Optimizing box sizes to minimize wasted space and shipping costs. Volume determines capacity, surface area determines material usage.
  • Architecture and HVAC: Room volume determines heating and cooling requirements. Surface area of walls and windows determines heat loss.
  • Manufacturing: Calculating material needed for containers, pipes, and tanks. Surface area determines paint, coating, or wrapping material required.
  • Medicine and biology: Dosage calculations often depend on body surface area. Cell biology studies the surface-area-to-volume ratio, which governs nutrient exchange.
  • 3D printing: Computing the volume of a 3D model determines material usage and print time. Surface area affects print quality and support structure needs.

Connections