Calculators.Life Calculator
Math

Pyramid Volume Calculator

Input Parameters

Scenarios
Choose whether you know the side lengths of a regular polygon base or the total base area directly.
Number of sides on the regular polygonal base.
Length of each side of the regular base.
Total area of the pyramid base (used if Known Base Area is selected).
Perpendicular height from the base to the apex.

Computed Results

Volume
120
Base Area36
Lateral Surface Area125.2837
Total Surface Area161.2837

The pyramid volume calculator determines the total volume and surface area of a pyramid based on its height and base dimensions. It supports regular polygonal bases—such as triangles, squares, and hexagons—as well as custom pyramids where the total base area is already known.

Practical Use Cases

Calculating the volume of a pyramid is a fundamental geometry task with real-world applications in architecture, construction, and manufacturing. Structural engineers use these calculations to determine the amount of material needed for pyramid-shaped roofs or monuments. Packaging designers rely on volume and surface area metrics to create efficient, visually appealing containers that minimize cardboard waste while maximizing interior space. It is also a standard calculation for students solving three-dimensional geometry problems.

How to Use the Calculator

Follow these steps to determine the volume and surface area of your pyramid:

  1. Select the Base Type: Choose whether you are calculating based on a regular polygon (where all sides are equal) or if you already know the total base area.
  2. Define the Base Shape: If using a regular polygon, enter the number of sides (e.g., 3 for a triangle, 4 for a square, 6 for a hexagon).
  3. Enter the Dimensions: Input the side length of the base (if applicable) and the perpendicular height of the pyramid from the base to the apex. If you selected the known base area mode, input the total base area directly.
  4. Review the Results: The calculator will display the total volume. For regular polygons, it will also provide the calculated base area, lateral surface area, and total surface area.

Formula & Explanation

The fundamental formula for the volume of any pyramid is:

Volume = (1 ÷ 3) × Base Area × Height

If you already know the base area, the calculation is straightforward. However, if you are working with a regular polygonal base, the calculator first determines the base area using the number of sides (n) and the side length (a):

Base Area = (n × a²) ÷ (4 × tan(π ÷ n))

For regular pyramids, the calculator also determines the surface area. It calculates the apothem (the distance from the center of the base to the midpoint of a side) and uses the Pythagorean theorem to find the slant height. The lateral surface area is the sum of the areas of the triangular faces, and the total surface area adds the base area to the lateral surface area.

Verified Scenario Walkthroughs

Here are a few examples demonstrating how the calculator processes different pyramid dimensions:

Standard Square Pyramid

Consider a standard square pyramid (4 sides) with a side length of 6 and a height of 10. The calculator determines the base area is 36. Multiplying 36 by 10 and dividing by 3 yields a volume of 120. The lateral surface area is 125.2837, resulting in a total surface area of 161.2837.

Known Base Area Mode

If you have a custom pyramid where you already know the base area is 250.5 and the height is 15, you can bypass the shape inputs. The calculator multiplies 250.5 by 15 and divides by 3 to find a volume of 1252.5. Note that lateral and total surface areas are not calculated in this mode because the exact perimeter and slant height cannot be determined without the specific shape.

Large Hexagonal Pyramid

For a large hexagonal pyramid (6 sides) with a side length of 50 and a height of 120, the calculated base area is 6495.1905. Applying the volume formula results in a total volume of 259807.6211. The lateral surface area is 19136.0262, bringing the total surface area to 25631.2168.

Inputs & Outputs Table

FieldTypeDescription
Base TypeInputChoose whether you know the side lengths of a regular polygon base or the total base area directly.
Base ShapeInputNumber of sides on the regular polygonal base (e.g., 4 for a square).
Side Length (a)InputLength of each side of the regular base.
Base AreaInputTotal area of the pyramid base (used if Known Base Area is selected).
Height (h)InputPerpendicular height from the base to the apex.
VolumeOutputThe total three-dimensional space enclosed by the pyramid.
Base AreaOutputThe calculated or inputted two-dimensional area of the bottom face.
Lateral Surface AreaOutputThe combined area of the triangular side faces (available for regular polygons).
Total Surface AreaOutputThe sum of the base area and the lateral surface area.

Frequently Asked Questions

Why is the lateral surface area zero when using the known base area mode?

To calculate the lateral surface area, the exact perimeter and slant height of the pyramid are required. When you only provide the total base area, the specific shape and side lengths are unknown, making it impossible to calculate the surface area of the side faces.

Does this calculator work for non-regular pyramids?

You can calculate the volume of any pyramid—regular or irregular—by using the 'Known Base Area' mode, provided you know the total area of the base and the perpendicular height. However, surface area calculations are only supported for regular polygonal bases.

What is the difference between perpendicular height and slant height?

Perpendicular height is the straight vertical distance from the center of the base to the top point (apex) of the pyramid. Slant height is the distance measured along the surface of a triangular face from the base to the apex. The volume formula always uses the perpendicular height.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.