When designing pyramid-shaped roofs one often needs the dihedral angle between adjacent roof facets. This article derives a compact formula for that dihedral angle in terms of the roof pitch (the angle between the base plane and a joist running from a base corner to the apex) for a pyramid with a regular -gon base. The main result is a single closed form that covers any regular .
Geometry setup
- The base is a regular polygon with vertices (corners).
- The apex is vertically above the center of the polygon; denote the vertical height by .
- A joist runs from a base vertex to the apex and makes an angle with the base plane (the pitch).
- We seek the dihedral angle between two adjacent roof facets (the two triangular faces that meet along the roof ridge).
To analyze the geometry we use three helpful slices / views:
- a vertical cross-section through a base vertex and the apex (shows the joist pitch );
- the vertical plane containing the angle bisector of a base vertex (this is the symmetry plane that contains the ridge);
- the plan (top) view of the base polygon (to relate horizontal lengths by symmetry).
Symmetry: where the ridge lies
Because the base is regular and the apex lies above the center, the two triangular facets adjacent to any chosen base vertex are mirror images with respect to the vertical plane that contains the angle bisector of that base vertex. Consequently:
- the ridge (the line where those two facets meet) lies in that vertical bisector plane, and
- the projection of the ridge onto the base plane is the angle bisector of the chosen vertex.
A small even/odd nuance:
for even (e.g. ) the bisector passes through the opposite vertex; for odd it meets the midpoint of the opposite side. Either way, the ridge projects to the angle bisector, and the vertical plane through that bisector contains the ridge. This symmetry justifies the geometric decomposition used below.
Base plan geometry
Let the interior angle at each vertex of the regular -gon be
The angle bisector splits into two equal angles . Consider the right triangle formed in the plan view by the bisector and the direction of an adjacent side: call the horizontal (plan) distances in that triangle and so that is the leg along the bisector direction and is the leg along (the projection of) the side direction. By simple trigonometry in the plan:
Thus the plan decomposes into symmetric segments and and
(For a hexagon, , this gives .)
Relating vertical and horizontal components
Now introduce the vertical component that corresponds to the slanted joist. In the vertical cross-section through a base vertex and the apex the joist forms the pitch angle with the base plane. Using the right triangle in that vertical section we have
where is the (appropriate) slanted/horizontal reference length introduced above and is the corresponding vertical rise.
The dihedral angle between the two symmetric facets can be related to the horizontal and vertical components: when you look in the bisector plane the half-angle satisfies
Substitute and to eliminate and obtain
Final closed form
Solving for gives the compact general formula (valid for any regular -gon base):
This expression connects the joist pitch and the polygon geometry (via ) to the dihedral ridge angle .
The formula is compact, works for any regular -gon, and cleanly reduces to the simple constants for square, hexagon, and other regular bases. It is directly useful for geometry problems as well as practical roof design calculations.
Checks and useful special cases
-
Regular hexagon ():
-
Square ():
-
Flat roof (, facets lie in the base plane):
i.e. the angle reduces to the interior angle of the base polygon at the vertex, as expected.
Inverse relation
If is known and the desired pitch is required,