How to Calculate Volume of Any Shape
The whole method in one line: identify the shape, apply its formula with every measurement in the same unit, and read the answer in that unit cubed. Almost every shape follows one of two rules — base area × length, or one third of that — with the sphere as the only real exception.
What volume actually is
Volume is the amount of three-dimensional space an object occupies. Where length needs one measurement and area needs two, volume needs three — which is why volume is always measured in cubic units: cubic centimetres, cubic feet, cubic metres. A cubic centimetre is the space inside a cube one centimetre on every side.
That "cubed" is the single most important idea for understanding volume. Because you are multiplying three lengths together, doubling an object's size does not double its volume — it multiplies it by eight (2 × 2 × 2). This is why a slightly larger box holds so much more, and why it matters to measure carefully.
The two rules that cover almost everything
You do not need to memorise a long list of formulas. Nearly every shape you will meet is one of two types.
Rule 1 — Constant cross-section: base area × length
If an object has the same cross-section all the way along — a box, a cylinder, a pipe, a triangular prism, a hexagonal pencil — its volume is simply the area of that cross-section multiplied by its length. The shape of the cross-section only affects how you calculate its area.
- Box: cross-section is a rectangle (l × w), so V = l × w × h
- Cylinder: cross-section is a circle (πr²), so V = πr² × h
- Triangular prism: cross-section is a triangle (½bh), so V = ½bh × length
Rule 2 — Tapering to a point: one third of the prism
If an object narrows from a full base to a single point — a cone, any pyramid, a tetrahedron — it holds exactly one third of the prism or cylinder with the same base and height. This is not an approximation; it is exact, and it works for any base shape.
- Cone: V = ⅓ × πr² × h
- Pyramid: V = ⅓ × base area × h
You can prove this in a kitchen: a cone-shaped cup fills its matching cylinder in exactly three pours.
The exception — the sphere
The sphere is the one common shape that fits neither rule. Its volume is (4/3)πr³. Archimedes proved it occupies exactly two-thirds of the cylinder that would enclose it — a result he was proud enough of to have carved on his tomb.
Step by step, with a worked example
Suppose you want the volume of a cylindrical water tank 4 feet across and 5 feet tall.
- Identify the shape. It is a cylinder — constant circular cross-section.
- Choose the formula. Cylinder: V = πr²h.
- Get the right measurements. The radius is half the diameter: 4 ÷ 2 = 2 ft. Height is 5 ft. Both are already in feet, so no conversion is needed.
- Apply it. V = π × 2² × 5 = π × 4 × 5 = 62.83 cubic feet.
- Convert if you need to. At 7.48 gallons per cubic foot, that is about 470 gallons.
The cylinder volume calculator does all of this instantly, and shows the working so you can check it.
Formula for every common shape
| Shape | Formula | Which rule |
|---|---|---|
| Cube | a³ | Constant cross-section |
| Box | l × w × h | Constant cross-section |
| Cylinder | π r² h | Constant cross-section |
| Triangular prism | ½ b h × length | Constant cross-section |
| Cone | ⅓ π r² h | Tapers to a point |
| Pyramid | ⅓ × base area × h | Tapers to a point |
| Sphere | (4/3) π r³ | Exception |
| Hemisphere | (2/3) π r³ | Half a sphere |
| Ellipsoid | (4/3) π a b c | Stretched sphere |
The full set, with derivations, is on the volume formulas cheat sheet, and every shape has its own calculator with worked examples.
Keep your units consistent
The most common mistake is not the formula — it is mixing units. You cannot multiply a radius in inches by a height in feet and get a sensible answer. Convert everything to one unit first. If you measured a pipe's diameter in inches and its length in feet, turn both into feet (or both into inches) before you start.
Your answer comes out in whichever unit you used, cubed. Measure in centimetres and you get cubic centimetres; those are the same as millilitres, so a container measured in cm gives its capacity in mL for free. To move between cubic and liquid units, the volume conversion calculator covers all of them.
When there is no formula
Not everything is a neat shape. For an irregular solid object — a rock, a machine part — use water displacement: submerge it in a measuring container and see how much the water rises. That rise is the object's volume, exactly. For an irregular space — an oddly shaped room or pond — split it into simple shapes, calculate each, and add them up. The full method is in the guide on measuring irregular objects.
Frequently asked questions
How do you calculate volume?
Identify the shape and apply its formula with all measurements in the same unit. For a box it is length × width × height; for a cylinder π r² h; for a cone or pyramid, one third of the matching prism; for a sphere (4/3)πr³. The answer comes out in whatever unit you measured, cubed.
What is the easiest way to remember volume formulas?
Learn two rules. Anything with a constant cross-section has volume equal to its base area times its length. Anything that tapers to a single point holds exactly one third of that. Only the sphere sits outside these two, at (4/3)πr³.
How do you calculate the volume of an irregular shape?
Use water displacement — submerge the object and measure how much the water rises — or split the shape into simple pieces, calculate each, and add them together.
What units is volume measured in?
Cubic units such as cubic centimetres, cubic metres, cubic inches and cubic feet, or liquid units such as millilitres, litres and gallons. One millilitre equals one cubic centimetre exactly.