Skip to content
Other

Heptagon Calculator

A regular heptagon is a seven-sided polygon with all sides and all interior angles equal. Choose a known measurement, enter its value, and get the area, perimeter, apothem (inradius), circumradius, both diagonal lengths, and interior angle instantly.

Your details

Pick whichever dimension you already know and enter its value below.
The length of one edge. All seven edges are equal in a regular heptagon.
cm
Area
363.3912
Perimeter70
Side length (a)10
Apothem (inradius r)10.3826
Circumradius (R)11.5238
Short diagonal18.0194
Long diagonal22.4698
Interior angle128.5714
Exterior angle51.4286
Number of diagonals14
Apothem (r)10.3826
Side (a)10
Circumradius (R)11.5238
Short diagonal18.0194
Long diagonal22.4698

This regular heptagon has an area of 363.39 cm² and a perimeter of 70 cm.

  • Area scales with the square of the side: A ≈ 3.6339·a², so doubling the side quadruples the area.
  • Each interior angle is exactly 900°/7 ≈ 128.571°, and all seven sum to 900°. The exterior angle is 360°/7 ≈ 51.429°.
  • A heptagon has 14 diagonals: 7 short ones (18.02 cm) and 7 long ones (22.47 cm).
  • The circumscribed circle has radius 11.52 cm and passes through all seven vertices.

Next stepTo draw this heptagon with a compass, set the radius to 11.52 cm and step vertices around the circle at 51.429° intervals.

Formula

A=74a2cot ⁣(π7)P=7ar=a2tan(π/7)R=a2sin(π/7)d2=2Rsin ⁣2π7d3=2Rsin ⁣3π7A = \tfrac{7}{4}\,a^{2}\cot\!\left(\tfrac{\pi}{7}\right) \quad P = 7a \quad r = \tfrac{a}{2\tan(\pi/7)} \quad R = \tfrac{a}{2\sin(\pi/7)} \quad d_2 = 2R\sin\!\tfrac{2\pi}{7} \quad d_3 = 2R\sin\!\tfrac{3\pi}{7}

Worked example

For side a = 10 cm: P = 70 cm; apothem r = 10 / (2·tan(π/7)) ≈ 10.3826 cm; circumradius R = 10 / (2·sin(π/7)) ≈ 11.5238 cm; area A = (7/4)·100·cot(π/7) ≈ 363.39 cm². Short diagonal d2 = 2·11.5238·sin(2π/7) ≈ 18.019 cm; long diagonal d3 = 2·11.5238·sin(3π/7) ≈ 22.252 cm. Each interior angle is 900°/7 ≈ 128.571°.

How the heptagon area formula works

A regular heptagon can be divided from its centre into seven identical isosceles triangles. Each triangle has a base equal to one side a and a height equal to the apothem r, the perpendicular distance from the centre to the midpoint of that side. Because r = (a/2)·cot(π/7), each triangle has area (1/2)·a·r = (a²/4)·cot(π/7), and seven of them give the total A = (7/4)·a²·cot(π/7). The cotangent of π/7 (25.714°) is approximately 2.0765, making the constant factor about 3.6339. Because the side is squared, doubling the side length multiplies the area by four.

Angles: interior, exterior, and the sum rule

For any simple polygon with n sides, the interior angles sum to (n - 2) × 180°. For a heptagon, that is 5 × 180° = 900°. In a regular heptagon all seven angles are equal, so each measures 900°/7 ≈ 128.571°. The exterior angle at each vertex is 360°/7 ≈ 51.429°, and the seven exterior angles always sum to exactly 360°. The heptagon is notable for being the smallest regular polygon that cannot be constructed exactly with compass and straightedge alone: because 7 is not a Fermat prime, no exact Euclidean construction exists.

Diagonals: short, long, and the count

A regular heptagon has n(n - 3)/2 = 7 × 4/2 = 14 diagonals. They come in two distinct lengths. The short diagonal connects a vertex to the vertex two steps away around the polygon: d2 = 2R·sin(2π/7). The long diagonal connects a vertex to the vertex three steps away (the furthest possible in a 7-gon, since the vertex four steps away is the same as three steps in the other direction): d3 = 2R·sin(3π/7). For a unit side, d2 ≈ 1.802 and d3 ≈ 2.247.

Reverse-solve: starting from the apothem or circumradius

If you know the apothem (inscribed circle radius r), the side length is a = 2r·tan(π/7) ≈ 0.9634·r×2. If you know the circumradius (circumscribed circle radius R), the side length is a = 2R·sin(π/7) ≈ 0.8678·R. The calculator performs these conversions automatically when you switch the "Solve from" selector, then derives every other dimension from the recovered side length. This is useful for fitting a heptagon inside a known circle or around a known inscribed circle.

Regular heptagon dimensions by side length

Side (a)PerimeterApothem (r)Circumradius (R)Short diag (d2)Long diag (d3)Area
171.03831.15241.80192.2473.6339
5355.19135.76179.009411.235390.848
107010.382611.523818.01922.47363.39
1510515.573917.285727.02933.706817.62
2014020.765223.047636.03844.9411453.6
5035051.91357.61790.094112.359084.8

All values computed from A = (7/4)a²·cot(π/7). Diagonals use d2 = 2R·sin(2π/7) and d3 = 2R·sin(3π/7).

Frequently asked questions

What is the area formula for a regular heptagon?

For a regular heptagon with side length a, the area is A = (7/4)·a²·cot(π/7) ≈ 3.6339·a². You can also write it as A = (7/2)·R²·sin(2π/7) in terms of the circumradius R, or A = (7/2)·r²·tan(π/7) in terms of the apothem r.

How many degrees are in each interior angle of a heptagon?

The interior angles of any heptagon sum to (7 - 2) × 180° = 900°. In a regular heptagon each angle is 900°/7 ≈ 128.571°. Each exterior angle is 360°/7 ≈ 51.429°.

What is the difference between the apothem and the circumradius?

The apothem (inradius r) is the perpendicular distance from the centre to the midpoint of a side: r = a/(2·tan(π/7)). It is the radius of the inscribed circle that touches all seven sides. The circumradius R = a/(2·sin(π/7)) is the distance from the centre to a vertex, and is the radius of the circumscribed circle that passes through all seven corners. The circumradius is always larger than the apothem.

How many diagonals does a heptagon have, and what are their lengths?

A heptagon has n(n - 3)/2 = 14 diagonals. They come in two lengths: 7 short diagonals connecting vertices two apart (d2 = 2R·sin(2π/7) ≈ 1.802·a) and 7 long diagonals connecting vertices three apart (d3 = 2R·sin(3π/7) ≈ 2.247·a).

Can I calculate a heptagon from its circumradius or apothem instead of the side?

Yes. Switch the "Solve from" selector to "Apothem" or "Circumradius", enter the known value, and the calculator recovers the side length then derives every other dimension. From the apothem r: a = 2r·tan(π/7). From the circumradius R: a = 2R·sin(π/7).

Can a regular heptagon be constructed with a compass and straightedge?

No. A regular heptagon cannot be constructed exactly with compass and straightedge alone. The reason is that 7 is not a Fermat prime (only 3, 5, 17, 257, and 65537 are). In practice, the heptagon is drawn by measuring the circumradius and marking vertices at exactly 360°/7 ≈ 51.429° intervals using a protractor.

Sources

Written by Grace Mbeki, MSc Data Scientist & Educator · Nairobi, Kenya

Turning everyday numbers into clear, actionable answers for the decisions that matter most.

Search 3,500+ calculators

Loading search…