Right Rectangular Pyramid Calculator: A, V, A_l, A_b
Enter the base length, base width, and height of a right rectangular pyramid to get its volume (V), total surface area (A), lateral surface area (A_l), base area (A_b), both slant heights, the lateral edge, and the base diagonal. Switch between metric and imperial units; all results update as you type.
Formula
Worked example
A pyramid with base 6 in x 8 in and height 12 in: A_b = 48 in^2, V = (48 x 12)/3 = 192 in^3. Slant heights: e_a = sqrt(12^2 + 4^2) = sqrt(160) = 12.649 in, e_b = sqrt(12^2 + 3^2) = sqrt(153) = 12.369 in. A_l = 6 x 12.649 + 8 x 12.369 = 75.895 + 98.995 = 174.89 in^2. A = 48 + 174.89 = 222.89 in^2.
What is a right rectangular pyramid?
A right rectangular pyramid is a three-dimensional solid with a flat rectangular base and four triangular faces that meet at a single apex. "Right" means the apex sits directly above the centre of the base, so the altitude is perpendicular to the base. When the base is a square (a = b) the shape becomes a right square pyramid. The four measurements most commonly required are: volume V, total surface area A, lateral surface area A_l (just the triangular faces), and base area A_b. This calculator also finds the two distinct slant heights (one for each pair of congruent faces), the lateral edge from apex to corner, and the base diagonal.
How to calculate volume and surface area
Volume is found with the general pyramid formula V = (1/3) x base area x height = (1/3) x a x b x H. This is always one third of the rectangular prism (box) with the same footprint and height. For the surfaces, start with the base: A_b = a x b. Each pair of opposite triangular faces shares a slant height. The slant height to the midpoint of side a (labeled e_a) uses the distance from the centre of the base to the midpoint of that edge, which is b/2: e_a = sqrt(H^2 + (b/2)^2). Similarly e_b = sqrt(H^2 + (a/2)^2). The lateral surface area is then A_l = a x e_a + b x e_b (two triangles of base a and two of base b, each with the relevant slant height). Total surface area A = A_b + A_l. The lateral edge d (apex to a base corner) can be found using d = sqrt(H^2 + (diag/2)^2) where diag = sqrt(a^2 + b^2) is the base diagonal.
Slant heights and why there are two
Unlike a square pyramid, where all four triangular faces are identical, a rectangular pyramid has two different pairs of congruent faces. The pair sitting on the longer base edges is flatter (smaller slant height) and the pair on the shorter edges is steeper (larger slant height). Specifically e_a depends on b/2 and e_b depends on a/2, so if a is larger than b then e_b is larger than e_a. Knowing both slant heights matters for calculating material quantities (roofing, packaging nets) and for checking that faces fit together correctly.
Practical uses
Right rectangular pyramids appear in architecture (roof hip sections, spires, obelisks), packaging design (pyramidal boxes and cartons), civil engineering (earth embankments), optics (prism approximations), and as a standard geometry exercise across school and university courses. Volume calculations determine material fill (grain, concrete, sand); surface area calculations determine covering material (roofing membrane, foil, paint). The one-third relationship between a pyramid and the equivalent prism is one of the most elegant results in solid geometry and follows directly from Cavalieri's principle.
Right rectangular pyramid formulas
| Quantity | Symbol | Formula |
|---|---|---|
| Base area | A_b | a x b |
| Volume | V | (A_b x H) / 3 |
| Base diagonal | - | sqrt(a^2 + b^2) |
| Lateral edge | d | sqrt(H^2 + (diag/2)^2) |
| Slant height (side a) | e_a | sqrt(H^2 + (b/2)^2) |
| Slant height (side b) | e_b | sqrt(H^2 + (a/2)^2) |
| Lateral surface area | A_l | a x e_a + b x e_b |
| Total surface area | A | A_b + A_l |
a = base length, b = base width, H = pyramid height, d = lateral edge
Frequently asked questions
What is the difference between lateral surface area and total surface area?
Lateral surface area (A_l) covers only the four triangular faces, excluding the rectangular base. Total surface area (A) adds the base: A = A_l + A_b. If you are painting or covering just the sloping sides of a pyramid, use A_l. If you need to wrap the entire solid including the bottom, use A.
Why does a pyramid have one third the volume of a prism with the same base and height?
This comes from Cavalieri's principle: three identical pyramids can be assembled into a rectangular prism of the same base and height. Therefore each pyramid is exactly 1/3 of the prism. The formula V = (1/3) x A_b x H applies to any pyramid regardless of base shape, not just rectangular ones.
How do I find the slant height if I only know the lateral edge?
Given lateral edge d and base dimensions a and b, recover the height first: H = sqrt(d^2 - (diag/2)^2) where diag = sqrt(a^2 + b^2). Then compute e_a = sqrt(H^2 + (b/2)^2) and e_b = sqrt(H^2 + (a/2)^2) as normal. Alternatively enter your known lateral edge into the input directly if the calculator supports that field.
Does the formula change for a square pyramid?
When a = b the two slant heights become equal (e_a = e_b) and the lateral surface area simplifies to A_l = 2 x a x e, where e is the common slant height. All other formulas are identical. This calculator handles both cases automatically.
How do I use this for a roof hip section?
Model the hip roof section as a right rectangular pyramid where a and b are the two base dimensions of the hip and H is the rise from the ridge plane to the apex. The lateral surface area A_l gives you the total material area for the four hip planes. Add a 10 to 15 percent overage for waste and overlaps depending on your roofing material.