Right square pyramid calculator
Enter any two independent dimensions to solve the full pyramid, including its surface areas and volume.
Known dimensions
Use one unit for all entered lengths. Leave dimensions you do not know blank.
Live results
Results update as soon as two compatible dimensions are available.
Total surface area (A)
96 cm²
A 6 cm base edge and 4 cm height produce 96 cm² of total surface area.
Volume (V)
48 cm³
Total lateral area (Aₗ)
60 cm²
Base area (Aᵦ)
36 cm²
Lateral face area (Aꜰ)
15 cm²
The model assumes a right square pyramid: the apex lies directly above the center of the square base.
Solved dimensions
| Dimension | Symbol | Value | Geometric meaning |
|---|---|---|---|
| Base edge | a | 6 cm | Side of the square base |
| Pyramid height | H | 4 cm | Perpendicular center-to-apex height |
| Slant height | s | 5 cm | Apex to midpoint of a base edge |
| Lateral edge | d | 5.830952 cm | Apex to a base corner |
| Base diagonal | q | 8.485281 cm | Corner-to-corner base distance |
All five lengths are solved from one internally consistent right-pyramid model.
Area and volume detail
| Result | Formula | Value | Use |
|---|---|---|---|
| Lateral face area | a × s ÷ 2 | 15 cm² | Area of one triangular face |
| Total lateral area | 2 × a × s | 60 cm² | Area of all four triangular faces |
| Base area | a² | 36 cm² | Area of the square base |
| Total surface area | Aₗ + Aᵦ | 96 cm² | All exterior faces including the base |
| Volume | a² × H ÷ 3 | 48 cm³ | Three-dimensional capacity |
Area uses squared units and volume uses cubed units; they should not be added or compared as though they were the same quantity.
How to use the right square pyramid calculator
What this calculator does
This calculator reconstructs a right square pyramid from any two independent known dimensions and then reports all remaining lengths, surface areas, and volume. A right square pyramid has a square base and an apex vertically above the base center, so its four triangular side faces are congruent. The tool is useful for exact geometric planning, but it does not account for material thickness, seams, kerf, waste, tolerances, deformation, or an off-center apex.
When to use it
Use it when estimating sheet material for a model or architectural feature, checking dimensions on a fabrication drawing, finding the capacity of a pyramid-shaped mold or container, or verifying a geometry exercise. It is also useful when a drawing gives an indirect pair, such as pyramid height plus lateral edge, rather than the more familiar base edge plus height.
How to calculate
- The calculator opens with a ready-to-use demonstration: Base edge (a) = 6 cm and Pyramid height (H) = 4 cm. The visible results and a validated example Excel workbook are available immediately.
- Select the Length unit that applies to every known length. Changing the unit converts valid values already in the fields, rather than merely changing their labels.
- Replace the demonstration values with any two independent dimensions. Leave unknown dimensions blank. The results update live once the pair defines one geometrically valid pyramid.
- Read Total surface area (A) as the main result, then review Volume (V), Total lateral area (Aₗ), Base area (Aᵦ), Lateral face area (Aꜰ), the four dimension pills, and both detail tables.
- Select Download Excel to export the current canonical inputs and results as a real .xlsx workbook. Reset clears the demonstration and all calculated content; Download Excel then remains unavailable until a complete valid pair is entered again.
Input guide
Length unit is required and accepts millimeters, centimeters, meters, inches, or feet. It applies to every entered length and determines the squared and cubed output units. For example, choose centimeters for a 6 cm model. Do not mix inches in one field and feet in another.
Base edge (a) is an optional positive decimal representing one side of the square base; 6 is the demonstration value. A larger base generally increases every area and strongly increases volume. Do not enter the base perimeter or diagonal here. Pyramid height (H) is the optional perpendicular center-to-apex distance; 4 is the demonstration value. It is not the sloping face height. Increasing H increases slant height, lateral edge, lateral area, total area, and volume.
Slant height (s) is an optional positive decimal measured from the apex to the midpoint of a base edge. A value of 5 is consistent with the demonstration, but it is intentionally left blank because the calculator derives it. It must be at least half the base edge. Lateral edge (d) is the optional apex-to-corner length; the demonstration solution is about 5.830952 cm. It is longer than or equal to the slant height for a nondegenerate square pyramid. Base diagonal is the optional corner-to-corner base length; it equals a√2, so it cannot form an independent pair with Base edge (a) alone. The demonstration solution is about 8.485281 cm.
Every length field accepts an unsigned decimal written with a period, such as 12, 12.5, or .75. Commas, scientific notation, symbols, zero, negative values, and nonnumeric text are rejected to avoid ambiguous interpretation. If more than two dimensions are entered, every supplied value must agree with the same pyramid within numerical tolerance.
Output guide
Base edge, Height, Slant height, and Lateral edge in the summary pills are solved lengths in the selected unit. The Solved dimensions table adds Base diagonal and explains each segment. A zero or negative solved length is not valid for this model, so the calculator shows an empty state instead of a misleading result.
Total surface area (A) is the exact identity A = Aₗ + Aᵦ for the idealized geometry. It includes the square base. Total lateral area (Aₗ) covers only the four triangular faces and is often the useful quantity for cladding or painting when the base is excluded. Base area (Aᵦ) is a². Lateral face area (Aꜰ) is one triangular face, a × s ÷ 2. These outputs use squared units and are driven mainly by a and s.
Volume (V) is the enclosed three-dimensional capacity, calculated as a²H ÷ 3 and displayed in cubed units. It is an exact geometric result for the ideal right square pyramid, not a recommendation for material quantities. For authoritative background, compare the square-pyramid relationships in Wolfram MathWorld's square pyramid reference and the general pyramid-volume rule in Khan Academy's pyramid volume explanation.
Worked example
With Base edge (a) = 6 cm and Pyramid height (H) = 4 cm, the slant height is √(4² + (6 ÷ 2)²) = √25 = 5 cm. One triangular face is 6 × 5 ÷ 2 = 15 cm², so Total lateral area (Aₗ) is 4 × 15 = 60 cm². Base area (Aᵦ) is 6² = 36 cm², making Total surface area (A) = 60 + 36 = 96 cm². Volume (V) is 6² × 4 ÷ 3 = 48 cm³. These values match the first-open controls, cards, tables, and workbook checkpoints.
Formulas and interpretation
The slant height and lateral edge come from right triangles inside the pyramid. The OpenStax treatment of the Pythagorean theorem explains the relationship between the two legs and hypotenuse used in those derivations. Keep dimensions in one consistent unit before applying the formulas.
When converting measurements, remember that area conversion factors are squared and volume conversion factors are cubed. NIST's dimensional-analysis guidance for unit conversion explains why a length conversion cannot be applied unchanged to an area or volume.