How this instrument works
A right rectangular pyramid stands on a rectangle of length l and width w, rising to an apex plumb above the rectangle's own center, where the two diagonals cross. Its volume follows the same one-third rule as any pyramid, V = ⅓lwh, since base area times height, scaled by a third, holds regardless of the base's outline. The base area itself is the plain product lw. Where this shape earns its own instrument is the surface: a square pyramid's four triangular faces are congruent, but stretch the base into a rectangle and the faces split into two distinct pairs.
Each pair leans at its own angle because the apex sits a different horizontal distance from each pair of edges. The two faces built on the length-l edges reach only w⁄2 out from the center, so their slant height is √((w⁄2)² + h²); the two faces on the width-w edges reach l⁄2 out instead, giving a different slant height, √((l⁄2)² + h²). Multiply each slant height by its edge length, sum the pairs, and the total lands on lateralArea = l√((w⁄2)²+h²) + w√((l⁄2)²+h²) — a formula that only simplifies to a single repeated term once l equals w and the shape becomes a square pyramid again.
Push the height toward zero and something tidy happens: both slant heights collapse toward w⁄2 and l⁄2, so lateralArea itself collapses toward l·(w⁄2) + w·(l⁄2), which is just lw — the base area, exactly. A flattened pyramid's four faces trace the rectangle's own diagonals, splitting it into four triangles that retile the footprint precisely, so total surface area briefly doubles the base area right before the solid vanishes into a flat sheet.
- Enter the rectangle's longer edge into Base length and the shorter edge into Base width, both in the same linear unit.
- Enter the perpendicular distance from the base's center up to the apex into Height — not a slanted edge or corner.
- Read Volume for the ⅓lwh capacity and Base area for the flat l times w footprint sitting beneath the apex.
- Read Lateral area for the four sloped faces combined, computed as two separate pairs, and Total surface area for that lateral figure plus Base area.
- Change any of the three inputs and all four outputs recompute together, so a swapped length and width shows up immediately in a lopsided lateral area.
Worked example — a 6 by 4 base, height 5
A right rectangular pyramid — a hopper outlet, say, or an attic roof cap — is specified with Base length l = 6, Base width w = 4, and Height h = 5, all in metres. Volume comes first: V = ⅓ × 6 × 4 × 5 = ⅓ × 120 = 40 cubic metres, and Base area is the plain product, 6 × 4 = 24 square metres.
Lateral area needs both pairs worked separately. The two faces on the l = 6 edges sit w⁄2 = 2 out from the center, giving a slant height of √(2² + 5²) = √29 ≈ 5.385165, so those faces total 6 × √29 ≈ 32.310989 square metres. The two faces on the w = 4 edges sit l⁄2 = 3 out instead, giving √(3² + 5²) = √34 ≈ 5.830952, so that pair totals 4 × √34 ≈ 23.323808 square metres.
Summing the two pairs gives lateralArea = 55.634796422188224 square metres, and adding the base brings the total surface to 55.634796422188224 + 24 = 79.63479642218823 square metres — the figure to quote if the whole solid, floor included, needs covering or coating.
Questions
What is the formula for the volume and surface area of a right rectangular pyramid?
Volume is V = ⅓lwh; base area is lw; lateral area is l√((w⁄2)²+h²) + w√((l⁄2)²+h²), the two triangular-face pairs summed separately; and total surface area is lateral area plus base area. For l = 6, w = 4, h = 5 that returns volume 40, base area 24, lateral area about 55.635, and total area about 79.635, all in matching squared or cubed units.
Why does a rectangular base need two different slant heights?
Because the apex sits a different horizontal distance from each pair of edges unless the base happens to be square. The faces on the length-l edges reach only w⁄2 out from the center, while the faces on the width-w edges reach l⁄2 out — two different reaches mean two different slant heights, and skipping the second one understates or overstates half the surface.
How does this differ from the square-pyramid and hexagonal-pyramid area calculators?
The height-of-a-square-pyramid and hexagonal-pyramid-surface-area calculators on this site both assume a regular base — a square or a regular hexagon — where every triangular face is congruent and shares one slant height. A rectangular base with l different from w splits the faces into two distinct pairs that need two separate slant-height calculations, only merging into the square pyramid's single repeated term once l equals w exactly.
What happens to the lateral area as the height shrinks toward zero?
It converges exactly to the base area. As h approaches zero, each slant height shrinks toward half its edge's opposite dimension, so lateralArea approaches l·(w⁄2) + w·(l⁄2), which equals lw — the same number as baseArea. A nearly flat pyramid's total surface area briefly runs to almost twice the base area, right before the solid collapses into a flat rectangle.
What's the most common mistake when finding lateral area by hand?
Pairing the wrong half-dimension with each edge — using w⁄2 inside the slant height for the w-edge faces instead of l⁄2, or the reverse. Because the base is rectangular rather than square, that swap actually changes the numeric answer; on a square base the mistake is invisible, since l⁄2 and w⁄2 are identical there.
Does the formula assume the apex is centered over the base?
Yes — this is a right pyramid, with the apex directly above the point where the rectangle's two diagonals cross. The volume rule V = ⅓lwh still holds for an apex leaning off-center, as long as h stays the perpendicular height, but the lateral and total area formulas here assume a centered apex splitting the faces into the two symmetric pairs described above.