What this calculator does
A regular heptagon is a seven-sided polygon with every side and every interior angle equal. This calculator takes any one of three common measurements, the side length, the apothem (the distance from the centre to the midpoint of a side) or the circumradius (the distance from the centre to a corner), and works out the area, perimeter and the other two measurements from it.
The area formula for a regular heptagon, (7/4) × s² × cot(π/7), follows the same pattern used for every regular polygon: split the shape into seven identical triangles meeting at the centre, and multiply the area of one triangle by seven. The cotangent term reflects the specific angle at the centre of each of those triangles, which is 360°/7 for a seven-sided shape.
The formula
Whichever measurement is entered is first converted to the side length, since every other figure is derived from that. The apothem and circumradius both relate to the side length through the half-angle at the centre, π/7 radians (roughly 25.7°). Once the side length is known, area follows from (7/4) × s² × cot(π/7) and perimeter from 7 × s.
| Term | Meaning |
|---|---|
| Side length (s) | The length of one of the heptagon's seven equal edges. |
| Apothem | The perpendicular distance from the centre to the midpoint of a side, also called the inradius. |
| Circumradius | The distance from the centre to any one of the seven corners. |
The inputs explained
| Field | What to enter |
|---|---|
| Value | Enter the measurement you know: the side length, apothem or circumradius, whichever is easiest to measure. |
| This value is the | Tell the calculator which of the three measurements the value above actually is. |
When to use it
Costing heptagonal flooring or tiling
A seven-sided paving stone, coin shape or tile's area, worked out from a single measured side, gives the material needed per piece before multiplying up by however many are being laid.
Designing from a fixed diameter
If a heptagon needs to fit within a circle of a known size, such as a coin blank or a bolt head, that circle's radius is the circumradius, and this calculator converts it straight to the side length and area.
Checking a geometry problem
Interior angle, area and perimeter of a regular heptagon are common exam questions; this calculator confirms the arithmetic behind the cot(π/7) formula.
Worked examples
Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.
How does heptagon area change with side length?
A regular heptagon's area and perimeter across a spread of side lengths.
| Side length | Area | Perimeter |
|---|---|---|
| 5 | 90.848 | 35.000 |
| 8 | 232.570 | 56.000 |
| 10 | 363.391 | 70.000 |
| 12 | 523.283 | 84.000 |
| 15 | 817.630 | 105.000 |
| 20 | 1,453.56 | 140.000 |
Questions
What is the interior angle of a regular heptagon?
Each interior angle is 900°/7, which comes out to approximately 128.57°. This follows the general regular-polygon formula (n-2) × 180° / n, applied with n = 7.
Why is there no simple exact formula using whole numbers?
Unlike a hexagon or square, a regular heptagon's geometry cannot be constructed with just a compass and straightedge, and its exact trigonometric values (such as cos(π/7)) are not expressible with simple whole-number roots, which is why the area formula stays in terms of cot(π/7) rather than a simplified surd.
Does this work for an irregular seven-sided shape?
No. This calculator assumes every side and angle is equal, which is what makes a single side length (or apothem, or circumradius) enough to describe the whole shape. An irregular heptagon needs its individual sides and angles measured separately.
How is the apothem different from the circumradius?
The apothem runs from the centre to the middle of an edge, while the circumradius runs from the centre to a corner; the circumradius is always the longer of the two, since a corner sits further from the centre than the midpoint of the side next to it.
For the six- and eight-sided versions of the same calculation, see the hexagon calculator and octagon calculator. For a regular polygon with any number of sides, use the regular polygon calculator.