Pyramid Volume Calculator

Volume—
Slant height—
Surface area—

How Pyramid Volume Calculator is calculated: Volume = (s² × h) ÷ 3; Slant height = √((s ÷ 2)² + h²)

What is a square pyramid, and what does its volume tell you?

A %s is %s. Its area is the amount of flat space it covers, measured in square units — square centimetres, square metres, or square feet, depending on the numbers you type in. This calculator works it out from the measurements you already have, so you do not need to remember the formula.

The page gives you more than the area alone. %s That extra line matters, because most real jobs need two or three numbers at once: the area for covering a surface, and a length such as the perimeter for edging or framing it.

Everything runs in your browser, so your numbers never leave your device. There is no sign-up, no upload, and no waiting. Change any measurement and every result updates live. Pyramids stack and shelter things: a roof is a squat pyramid, a pile of grain settles into one, and the great pyramids of Egypt are the most famous buildings of this shape ever raised. The volume is the capacity or the bulk inside, and the slant height decides the size of each triangular face.

How a pyramid volume calculator works

The calculation rests on one formula: Volume = (s² × h) ÷ 3; Slant height = √((s ÷ 2)² + h²). The volume is one-third of the base area times the vertical height: (s² × h) ÷ 3, where s is the side of the square base. Like the cone, the pyramid holds exactly one-third of the prism with the same base and height. The slant height comes from Pythagoras on half the base side and the height. It looks simple, and it is — the skill lies in feeding it the right numbers, in the right units, and in the right places.

Here is the default example on this page, worked through slowly. Take the defaults on this page: base side 6 cm and height 4 cm. The volume is (36 × 4) ÷ 3 = 48 cubic centimetres. The slant height is √(9 + 16) = √25 = 5 cm — a neat 3-4-5 triangle. The surface area is 36 + 2 × 6 × 5 = 96 square centimetres. If the result looks far too big or far too small, the first thing to check is always the inputs: a missing decimal point or a centimetre typed as a metre is the usual cause.

One point about units deserves attention. Volume comes out in cubic units and the slant height and surface area in plain and square units. The height is the vertical height from the centre of the base to the tip, not the slant height down a face. Keep the base side and the height in the same unit. Keep every measurement in the same unit before you type it in — all centimetres, or all metres, or all inches. Mixing units is the fastest way to get a confident-looking wrong answer.

Height or slant height: the input people mix up

The measurement people get wrong most often here is the vertical height and the slant height. The vertical height runs straight up the middle, from the centre of the base to the tip. The slant height runs down the middle of a triangular face, from the tip to the midpoint of a base edge, and it is always longer. For the default pyramid the height is 4 cm and the slant height is 5 cm, and swapping them would give a volume of 60 instead of 48. The difference sounds small on paper, but it changes the answer directly, so it is worth getting clear before you type anything.

A practical way to measure it is measure the height with a ruler stood upright at the centre of the base, up to the tip. Measure the slant height down the middle of one triangular face. If your height comes out longer than your slant height, you have measured the wrong line. Once you have that number, the rest is straightforward: type it in, check the other fields, and read the result.

The same care applies to the other fields. The base side is the length of one edge of the square base — all four edges are the same, so any one will do. The calculator works out the slant height for you, so you never need to type it in. Short version: measure twice, type once, and glance at the answer before you act on it. A result that is double or half what you expected almost always means one input is wrong.

A worked example: a pyramid with a 10 cm base and 12 cm height

Let us work a full example from scratch. A model pyramid has a square base of side 10 cm and a vertical height of 12 cm. The maker needs its volume and the amount of card for its surface. Write the inputs down first, then the formula, then substitute the numbers. That order — inputs, formula, substitution — is the habit that keeps school and site work free of silly errors.

Volume = (100 × 12) ÷ 3 = 400 cubic centimetres. The slant height is √(25 + 144) = √169 = 13 cm — a neat 5-12-13 triangle. The surface area is 100 + 2 × 10 × 13 = 360 square centimetres. The intermediate steps are worth a look, not just the final answer. The box with the same base and height would hold 100 × 12 = 1,200 cubic centimetres, and the pyramid holds exactly one-third of that: 1,200 ÷ 3 = 400. When you run the same numbers through this calculator, the results match these figures exactly, to two decimal places.

Now change one input and watch what happens. Raise the height from 12 to 15 and the volume rises from 400 to 500, a 25% gain. Widen the base from 10 to 12 instead and the volume jumps to 576, a 44% gain, because the base side is squared. The base side is the sensitive input here. That sensitivity is useful in real life: it tells you which measurement is worth re-checking with the tape and which one barely moves the answer.

Where pyramid volume does real work

Builders use it for pyramid roofs and for piles of loose material. For example, a pyramid roof with a 6-metre square base and a 2-metre height encloses (36 × 2) ÷ 3 = 24 cubic metres of roof space, and its four triangular faces need 2 × 6 × 3.61 = 43.32 square metres of roofing, using a slant height of 3.61 metres. The calculator fits naturally into that workflow because it answers in seconds and lets you compare sizes without redoing the maths by hand each time.

It also decides the volume of a heap of sand or grain, which settles into a rough pyramid, and the card needed for a model pyramid in school. Students meet the same shape in school, usually in geometry class, where the task is to show the working as well as the answer. The formula box on this page and the worked example above give the steps in the form a teacher expects.

A third group uses it for checking. A roofer pricing a pyramid roof, or a teacher checking homework. If a student claims a pyramid with base 6 and height 4 holds 144, the calculator says the true figure is 48 — the student used the prism formula and forgot the one-third. A quick check against the calculator either confirms the figure or flags a mistake before money is spent or marks are lost. That is the real value of a tool like this: not the arithmetic, but the second opinion, delivered instantly. Related shapes are covered by the square root calculator and the scientific calculator.

Pyramid volume vs cone volume

People often ask whether to use this calculator or a triangle area calculator. The honest answer is that they answer different questions, and the right one depends on the shape in front of you. The honest comparison is with a cone, and it is a simple one: both taper to a point, and both hold exactly one-third of the solid with the same base and height. The pyramid's base is a square, so its volume is (s²h) ÷ 3; the cone's base is a circle, so its volume is (πr²h) ÷ 3. Same one-third, different base.

The confusion is understandable, because people forget the one-third for both shapes, and they also confuse the pyramid with a triangular prism, which does not taper at all. A prism with a 6-by-4 base and height 4 holds 144; the pyramid holds 48, a third as much. If you are unsure which shape you have, count the sides and check the angles: the shape with the matching description is the one to calculate.

A useful rule is to pick the calculator by the shape, not by the answer you want. If the base is a square and the sides slope to one point, use this calculator. If the base is a circle and the side slopes to one point, it is a cone. The square area calculator gives the area of the pyramid's base on its own. Both tools are free and live on this site, so switching between them costs nothing — but using the wrong one costs you the correct answer.

Common pyramid mistakes

The first mistake is forgetting the one-third. s² × h is the volume of the box with the same base and height. A pyramid is a third of that, so base 6 and height 4 give 48, not 144. Forgetting the third triples the answer. It is easy to do when you are in a hurry, and the result looks plausible, which is what makes it dangerous.

The second mistake is using the slant height as the height. The volume needs the vertical height, 4 cm here, not the slant height of 5 cm. Using 5 gives 60 instead of 48. A good habit is to write the unit next to every measurement as you take it, and to convert everything to one unit before you start typing.

The third mistake is using the base diagonal instead of the base side. The diagonal across a 6 cm square base is 8.49 cm. Typing it as the side gives a volume of 96.13 instead of 48. Measure an edge of the square, not its diagonal. Check the result against a rough estimate in your head before you trust it: if the rough figure and the calculator disagree by a lot, re-measure before you believe either one.

The fourth mistake is leaving the base out of the surface area. The total surface area here includes the square base: 36 + 60 = 96. A model with no base — an open pyramid roof — has only the four triangles, 60 square centimetres. The calculator gives you the numbers; the units, the shape, and the sense-check are still yours.

How to use this pyramid volume calculator

Using the calculator takes under a minute. Measure one edge of the square base, then measure the vertical height from the centre of the base straight up to the tip, and type both numbers in. Type the numbers into the labelled boxes — each box says what it wants, and the unit sits beside it. The results appear below as you type, with the headline answer highlighted at the top.

Read the headline result first, then the supporting rows. The slant height sits below it, for the triangular faces, and the surface area below that. If the pyramid is open at the base, subtract the base area, s², from the total surface area. If you are buying material, round up to the next whole unit and add a little extra for cutting and waste; the calculator gives the exact figure, and the real world always needs a margin.

Your data stays on your device. Nothing is uploaded, stored, or shared, and there is no account to create. You can share the page with the share button or print the result for a quote, a bill, or a homework sheet.

Frequently Asked Questions

The volume is (36 × 4) ÷ 3 = 48 cubic units. The slant height is √(9 + 16) = 5 units, and the total surface area is 36 + 2 × 6 × 5 = 96 square units. A box with the same base and height would hold 144, exactly three times as much.

A square pyramid with the same base and height as a square prism holds exactly one-third of the prism's volume. Three identical pyramids fill the prism, which is why the volume formula is (s² × h) ÷ 3. The same one-third rule holds for a cone against its cylinder.

Use Pythagoras on half the base side and the vertical height: slant height = √((s ÷ 2)² + h²). For base 6 and height 4 the slant height is √25 = 5. For base 10 and height 12 it is √169 = 13.

It is the square base plus the four triangular faces: s² + 2 × s × slant height. For base 6, height 4 and slant height 5, that is 36 + 60 = 96 square units. An open pyramid with no base has only the four triangles, 60 square units.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.