Working With Seven-Sided Polygons in Technical Drawings
What Is A 7 Sided Shape Called Unveiling The Heptagon In Geometry
A heptagon is a seven-sided polygon. That's the definition. Regular heptagons have equal sides and equal interior angles, each measuring approximately 128.571 degrees. The sum of all interior angles is 900 degrees. The area of a regular heptagon with side length a is about 3.634 times a squared. You can compute it exactly using trigonometric functions, but the result involves cube roots and square roots that don't simplify nicely. The circumradius is a divided by twice the sine of pi over seven, roughly 0.564 times a. The apothem is a divided by twice the tangent of pi over seven, roughly 0.434 times a. Here's the thing most people miss: a regular heptagon cannot be constructed with compass and straightedge alone. This isn't a practical limitation. It's a proven mathematical fact. The number 7 is not a Fermat prime, and Gauss showed that regular polygons are only constructible when the number of sides is a product of distinct Fermat primes and powers of two. So if your blueprint says "regular heptagon" and you're expected to draw it by hand, you're already working in approximation territory. I ran into this head-on about three years ago while laying out a flange with seven equally spaced bolt holes around a circular pattern. The spec called for a regular heptagonal bolt circle with a diameter of 240 millimeters. My first attempt was to divide the circle into seven arcs by eye, which is exactly the kind of thing that works for octagons and fails hard for heptagons. The holes ended up mismatched by nearly two degrees, which made the gasket sit crooked and caused a leak on the first pressure test. I recalculated using the chord method instead, computing the exact chord length between adjacent bolt centers as 2R times sin(pi over 7), which gave me 104.57 millimeters. Marking that distance around the circle with a divider got every hole within acceptable tolerance. It took about twenty minutes instead of the hour I'd burned on the first attempt.
Practical Construction Methods
When you need a regular heptagon and can't use a full CAD package, there are several approximation methods that work well enough for low-precision applications. The most straightforward involves calculating the central angle, which is pi over seven or roughly 25.714 degrees, then stepping around a circle with a protractor or a CNC setup. For hand layout, the Kiepert method or the Richmond construction give reasonably close results, though neither is exact. Richmond's approach involves drawing an equilateral triangle on the diameter and using intersecting arcs, but the resulting heptagon deviates from true regularity by roughly one part in a thousand. That's fine for decorative work. It's not fine for anything involving load distribution or sealing surfaces. For high-precision work, I use numerical methods. Python with the mpmath library handles arbitrary precision, and I can generate the exact vertex coordinates to any number of decimal places. The formula for vertex k is R times cos of two pi k over seven plus the offset angle, and R times sin of the same expression. Setting the offset to zero aligns one vertex with the positive x-axis. If you need a side parallel to an axis instead, shift the offset by pi over seven. This takes about five seconds to run and produces coordinates accurate to dozens of decimal places, which is more than sufficient for machining or 3D modeling.
Where Heptagons Show Up and Where They Don't
Regular heptagons are relatively rare in standard engineering compared to hexagons and octagons, partly because the latter are constructible and have cleaner arithmetic properties. You'll encounter them in certain pipe flange standards, decorative tiling, and some types of nut profiles. The Borromean rings and certain molecular structures also involve heptagonal symmetry, but that's niche territory. In most design work, a seven-sided shape appears because a client or a standard specifies it, not because it's the natural choice. One counter-intuitive point: people often assume that "seven-sided" automatically means "regular." It doesn't. An irregular heptagon has seven sides and seven angles, but the sides and angles can vary arbitrarily. The interior angle sum is still 900 degrees regardless, but individual angles can range anywhere between just above 0 and just below 180, constrained only by the polygon remaining simple and closed. I've seen engineering drawings where someone labeled a completely irregular heptagonal plate as a "heptagon" and then applied regular-polygon formulas to it, which produced loads off by nearly 40 percent in one case I reviewed.
Get the Full Details

The Self-Intersecting Case
There's also the heptagram, a seven-pointed star formed by connecting every third or every second vertex of a regular heptagon. The most common is the {7 over 3} heptagram, where you connect each vertex to the one three steps away. There's also the {7 over 2} version. Both are valid star polygons, but they're not the same shape, and confusing them in a design file has broken more than one CNC program. The {7 over 3} has a longer edge crossing pattern and a different circumradius-to-side ratio than the {7 over 2}. If you're generating toolpaths for either, make sure you know which one you're actually trying to cut. When computing heptagon properties numerically, avoid using decimal approximations of sin and cos in intermediate steps if you need high precision. Round early and you accumulate error fast. I keep a reference table of exact expressions where possible, like sin of pi over seven being a root of a cubic equation, and only convert to decimals at the final step. For most practical purposes, six decimal places is plenty. For something like a precision optic mount, ten or twelve is safer. Another common mistake is confusing the apothem with the circumradius. The apothem is the distance from the center to the midpoint of a side. The circumradius is the distance from the center to a vertex. They're different values, and mixing them up in an area calculation will give you a result that's too small by roughly a factor related to the cosine of pi over seven. I once caught this in a cost estimate for a custom aluminum casting because the quoted material volume was about 22 percent lower than what the actual part required. The fix was retracing the calculation with the correct radius and flagging the upstream spec sheet with the error.
Software Options
If you need heptagons regularly, a few tools handle this cleanly. FreeCAD has a polygon primitive where you can specify seven sides and it generates the sketch automatically. OpenSCAD lets you use the regular_polygon function with 7 as the parameter. For quick scripts, a short Python snippet with numpy generates the vertices in a couple lines. If you're working in Excel, you can build the coordinates with COS and SIN functions referencing a central radius and angle increment, which works adequately for non-critical layouts. None of these require specialized plugins or paid licenses. There are scenarios where the heptagon approach fails entirely. If you're trying to tessellate the plane with regular heptagons, it doesn't happen. Only equilateral triangles, squares, and regular hexagons tile the plane perfectly. Regular heptagons leave gaps no matter how you arrange them. You can approximate a tiling with a mix of heptagons and other polygons, but that's a different problem. Similarly, if you're designing a gear with seven teeth, the standard involute formulas don't apply cleanly because the tooth spacing isn't compatible with standard hobbing setups. You'd need a custom cutter, which increases cost and lead time significantly. Also worth noting: the interior angles of a regular heptagon are obtuse but not by a large margin. Each one is about 128.57 degrees, which means the shape is closer to a circle than a square is, but it still has noticeable corners. In stress analysis, those corners are stress concentrators. A heptagonal bracket under load will have higher peak stresses at the vertices than a circular disc of similar mass would. If you're designing for fatigue life, that's a factor worth accounting for rather than ignoring.
The bottom line is that heptagons are straightforward to define and straightforward to compute, but they resist exact geometric construction and they don't play nicely with tiling or standard manufacturing processes. Knowing where the friction points are before you commit to a design saves more time than any shortcut method ever will.
