The Basics
An octagon is a polygon with exactly eight sides. The prefix "octa-" comes from Greek and means eight, same as in "octopus" or "octave." If you are asking How Many Sides Does A Octagon Have, the answer is eight. That is the definition. Eight sides. Period. But here is where people complicate things unnecessarily. A regular octagon has all eight sides equal in length and all interior angles equal at 135 degrees. An irregular octagon still has eight sides, but the lengths and angles can vary. Both are octagons. The side count does not change based on regularity.
What Actually Matters in Practice
When I first started working with floor plans and structural layouts, a contractor handed me a blueprint for what he called an "octagonal room." I counted the edges. There were nine. He had included the doorway opening as a separate side on his measurements. The room was a nonagon disguised as an octagon because someone at the drafting table decided to split one edge for a door swing annotation. That happens more often than you would think. So the practical answer to how many sides an octagon has is: eight, but always verify by actually tracing the perimeter yourself rather than trusting a label. Labels get lazy.
Useful Calculations
Knowing it has eight sides lets you run a few standard formulas. The sum of interior angles in any octagon is 1080 degrees. For a regular octagon, each interior angle is 135 degrees. The exterior angle at each vertex is 45 degrees. If you need the area of a regular octagon with side length s, the formula is 2(1 + 2)s². This is accurate within standard tolerances for construction and design work. I use this when estimating materials for octagonal decks or patios. It saves time compared to breaking the shape into triangles manually, which used to take me about twenty minutes for a single layout. Now it takes maybe three if I am feeling diligent about double-checking. Perimeter is straightforward. Multiply the side length by eight. For a regular octagon with sides of 3 feet, the perimeter is 24 feet. Nothing tricky there.
Get the Full Details

Common Mistakes
People often confuse octagons with hexagons because stop signs are familiar and they vaguely remember six sides. A stop sign is an octagon. It has eight sides. The confusion usually comes from people who have only seen them and never actually counted. It is an easy mistake to make and even easier to avoid if you just count out loud once. Another issue is assuming all eight-sided shapes in the real world are regular octagons. They rarely are. Building columns, garden beds, and furniture pieces labeled as octagonal often have slightly skewed dimensions due to construction tolerances. The side count is still eight. The measurements are not perfect. Both facts can be true at the same time.
When Eight Sides Is Not Enough
There are edge cases where the simple definition breaks down. A concave octagon still has eight sides, but some of the interior angles point inward. This matters if you are doing CNC routing or laser cutting because the tool path behavior changes significantly compared to a convex octagon. I once had a program crash mid-cut because the tool path optimizer assumed all vertices were convex. It recalculated after switching to a concave-safe algorithm, but it cost me about forty-five minutes of scrap material. Worth noting if you are working with automated machinery. Self-intersecting octagons exist in geometry as well, though they come up rarely outside of math class. They have eight sides but the edges cross over each other. Standard area and perimeter formulas do not apply to them without modification. Do not try to use the regular octagon area formula on a self-intersecting shape. It will give you a number that makes no physical sense.
Summary
An octagon has eight sides. Regular or irregular, convex or concave, the side count is the defining feature. Use the formulas that match your specific shape. Verify labels before trusting them. And if you are running automated tool paths, check whether the octagon is concave first.
