For a prism whose base is a regular polygon, finds the volume as base area × height and the surface area as twice the base plus the sides. The base area comes from the regular polygon formula. It suits hexagonal bolts and polygonal columns.
A regular prism has matching regular polygons top and bottom, joined by vertical sides. The head of a hexagonal bolt, a pencil and a polygonal column are all this shape.
Both the volume and the surface area follow once the base area is known.
The sides are upright rectangles, so the lateral area is . The total surface adds the top and bottom, giving .
Drawing lines from the centre of a regular polygon to each vertex cuts it into identical isosceles triangles. Each has the side as its base, and its height is the distance from the centre to that side.
That distance comes from halving the central angle. The central angle is , and the tangent of half of it gives . One triangle therefore has area , and multiplying by produces the formula above.
The default input is a prism of height 10 on a regular hexagon of side 4.
The base area is , about 41.5692. The volume multiplies that by the height, about 415.6922. The lateral area is , exactly 240, and the total surface is , about 323.1384.
Setting the number of sides to 4 describes a prism on a square of side 4, in other words a cuboid, and the calculator duly returns a base area of 16 and a volume of 160.
The number of sides must be a whole number of at least 3. Fewer than that is not a polygon.
Adding sides moves the base towards a circle. Holding the side length fixed while adding sides makes the prism steadily fatter, so comparisons with a cylinder should keep the perimeter fixed instead.
A pyramid on the same base with the same height holds exactly one third of this volume, and there is a separate tool here for that.