Square Pyramid Volume Calculator
A square base needs only one dimension. Enter the base edge and the perpendicular height to see V = a²h/3 worked out with your own numbers.
- ✓ Two inputs only
- ✓ Metric and imperial units
- ✓ Live substitution
— cm³
Enter the values above — the volume updates instantly.
Quick answer: V = a² × h ÷ 3. With a 6 m base edge and 4 m height: 36 × 4 ÷ 3 = 48 m³.
The formula, unpacked
The square base has area a². Multiplying by height gives the prism that would enclose the pyramid, and dividing by three accounts for the taper to a point. Because only one base dimension is involved, this is the simplest pyramid calculation of all.
Worked example: a garden obelisk cap
A square pyramid cap has a 40 cm base edge and a 60 cm vertical height.
- Base area = 0.4² = 0.16 m²
- Enclosing prism = 0.16 × 0.6 = 0.096 m³
- Divide by three = 0.032 m³, or 32 litres
At a concrete density near 2,400 kg/m³ that is roughly 77 kg before reinforcement.
Checking your answer
A quick sanity check: the pyramid must be one third of the box with the same base and height. If your result is larger than that box, the division by three was missed. If it is one ninth, the base was halved somewhere by mistake.
Rearranging the formula and checking the answer
Most formulas can be turned around. If you know the desired volume and all but one input, solve algebraically for the missing dimension before typing anything. With V = a² × h / 3, isolate the unknown by dividing by the other factors and undoing any coefficient last. A rearranged formula is a useful independent check: enter the recovered dimension back into the forward calculator and confirm that you land on the number you started from.
A second check comes from bounding. Compare the object with a simpler shape that completely contains it, compute that larger value, and make sure your answer is smaller by a plausible amount. A cone must sit below its cylinder; a pyramid below its box; a partially filled tank below the full tank. If a result violates these bounds, the cause is almost always a diameter typed where a radius was expected, an un-squared radius, or a height left in the wrong unit.
Dimensional analysis catches a surprising share of mistakes. Multiply the units of the inputs as the formula dictates and confirm the output carries the unit you expect: length times length gives area, and area times length gives volume. If the units do not combine correctly, no amount of arithmetic will rescue the answer. Write the units beside each number as you work — it turns an abstract check into a visual one.
Dimensional analysis is worth making explicit: write the unit beside every factor before you cancel anything. Length times length must produce an area unit; area times length must produce a volume unit. If you arrive at square metres when you expected cubic metres, a length has been omitted. This habit catches errors that numeric checking misses, especially when factors such as 1,000 or 12 are involved and the answer still looks superficially reasonable.
Accuracy, assumptions and where the model stops
A calculator can only be as accurate as the model behind it. This tool assumes the object matches the ideal volume described by its inputs: flat faces where the formula expects planes, a true circular section where it expects a circle, and uniform dimensions along the axis where it expects a constant cross-section. Real objects deviate, and the size of that deviation — not the number of decimal places displayed — sets the real precision.
Measurement error dominates almost every practical case. A tape reading taken to the nearest centimetre on a two-metre span is a half-percent uncertainty; because radius or width often enters a formula squared or cubed, that can become a one- to two-percent uncertainty in the final volume. Reporting ten significant figures after such an input is false precision. Round the answer to a sensible number of digits: usually two or three for a quote, and one for a rough site estimate.
There are also shape-specific limits. Tapers are only exact when the side runs straight from one section to the other; a rounded shoulder, a domed end or a sloped floor needs to be split into separate pieces before the pieces are added. Open containers have a capacity larger than their usable fill level, so leave a freeboard allowance where liquid can slosh or where a lid displaces space. Temperature changes the volume of liquids slightly and the dimensions of metals by a smaller amount still; for ordinary trade and DIY work these effects are far below measurement error, but they matter in calibration or scientific work.
Treat the displayed value as a clean model answer. Where a decision involves money, safety or a structural limit, add a contingency, cross-check with a second method, and use the tools in the related links for the special cases this general page does not model.
Precision and accuracy are different. A tool that prints eight decimal places is precise but not necessarily accurate if the inputs were rounded. Report the final figure with no more significant figures than the least certain measurement justifies; a tape read to the nearest centimetre does not support a result quoted to the nearest cubic millimetre. Where stakes are high, state the assumption and the tolerance together, for example "approximately X, assuming level ground and inside measurements".
Common mistakes & practical tips
- Entering the diagonal instead of the edge. A square's diagonal is a√2, about 41% longer than the side.
- Using face slant height. It is longer than the vertical height; convert with h = √(s² − (a/2)²) if needed.
- Confusing a² with 2a. Area means edge multiplied by itself, not doubled.
- Forgetting to convert litres. One litre is 1,000 cm³; the output menu handles this automatically.
Frequently asked questions
What is the volume of a square pyramid?
V = a²h/3, where a is the base edge and h is the perpendicular height.
What is the volume of a square pyramid with 10 cm base and 15 cm height?
V = 100 × 15 / 3 = 500 cm³, half a litre.
How do I get height from slant length?
h = √(s² − (a/2)²), where s is the slant from apex to the midpoint of a base edge.
Is a square pyramid the same as a pyramid with a rectangular base?
It is the special case where both base dimensions are equal. The general formula lwh/3 still applies.
Can I calculate a hollow square pyramid?
Yes. Compute the outer volume and subtract the inner pyramid volume using the interior edge and height.