Calculate area, perimeter, interior angles, miter cut angles, and apothem for any regular polygon. Perfect for gazebos, bay windows, turrets, octagonal decks, and decorative layouts.
ft
YOUR RESULTS
Side Length
—
ft
Perimeter
—
ft
Area
—
sq ft
Interior Angle
—
degrees
Miter Cut Angle
—
degrees
Circumradius
—
ft
Apothem
—
ft
Exterior Angle
—
degrees
Enter the number of sides and any one known measurement: side length, total area, perimeter, circumradius (center to corner), or inradius (center to flat side). The calculator returns all other dimensions plus the miter cut angle for your saw and a scaled diagram of the shape. All values update to 4 decimal places for precise layout and cut work.
Polygon Calculations in Construction
Regular polygons appear whenever you're building a gazebo, octagonal deck, bay window, turret, decorative patio, or any symmetrical multi-sided structure. The three most useful numbers for a builder are: the interior angle (for framing corners), the miter cut angle (for trim, decking boards, and railing), and the circumradius (for staking corners on the ground).
Why the Miter Angle Isn't the Interior Angle
The most common mistake in polygon layout is setting the saw to the interior angle instead of the miter angle. The diagram below shows why they're different: the miter cut only needs to account for half of the direction change at each corner, since two boards share the turn.
Worked Example: 10 ft Hexagonal Gazebo
You're framing a regular hexagon gazebo with 10 ft sides. From this calculator: interior angle = 120°, miter cut = 30°, area = 259.8 sq ft, circumradius = 10 ft (equal to side length for a hexagon), apothem = 8.66 ft. To frame the floor: cut each of the 6 perimeter boards at 30° on both ends (opposing angles). To stake the layout: drive a center stake, measure 10 ft out in 6 directions spaced 60° apart: those are your corner stakes.
Miter Cut Angle Reference
Shape
Sides
Interior Angle
Miter Cut Angle
Saw Setting
Triangle
3
60°
60°
60° on each end, opposing
Square
4
90°
45°
Standard 45° miter
Pentagon
5
108°
36°
36° on each end, opposing
Hexagon
6
120°
30°
30° on each end, opposing
Octagon
8
135°
22.5°
22.5°: common gazebo setting
Decagon
10
144°
18°
18° on each end, opposing
Dodecagon
12
150°
15°
15° on each end, opposing
The miter cut angle is always half the exterior angle: miter = 360° ÷ (sides × 2). Set your miter saw to this angle and cut both ends of each piece with the saw tilted the same direction: the resulting pieces will join perfectly at each corner of the polygon.
Key Polygon Dimensions Explained
Term
Definition
How It's Used
Side length
Length of each edge
Cutting boards; ordering lumber
Perimeter
Total of all sides
Decking, trim, and edging quantities
Area
Total enclosed surface
Flooring, roofing, sod quantities
Circumradius
Center to each corner
Staking corners from center point on site
Apothem (inradius)
Center to midpoint of each side
Centering the layout; rafter length to wall plate
Interior angle
Angle at each corner, inside
Framing corner connections; post angles
Exterior angle
Supplement of interior (360°/n)
Layout angle between adjacent sides
Miter cut angle
Half the exterior angle
Saw setting for trim and decking
Staking a Polygon on Site
To stake out any regular polygon on a job site: drive a center stake, attach a string equal to the circumradius, and mark corners at equal angular intervals (360° ÷ number of sides). For a hexagon, mark 6 points 60° apart; for an octagon, 8 points 45° apart. A simple angle finder or builder's square helps set these angles. The circumradius equals the side length for a regular hexagon specifically, a useful shortcut that eliminates the need to calculate separately for that shape. For other polygons, use the calculator to convert side length to circumradius before staking.
Common Polygon Layout Mistakes
Confusing the circumradius with the apothem. These are two completely different measurements. The circumradius goes from the center to a corner; the apothem goes from the center to the midpoint of a side. Using the wrong one to stake corners or set rafter lengths will produce a shape that's close but wrong: and the errors compound at each corner.
Setting the miter saw to the interior angle instead of the miter cut angle. For an octagon, the interior angle is 135°: but you set the saw to 22.5°, not 135°. The miter cut angle is always half the exterior angle (exterior angle = 360 ÷ n). Cutting at the interior angle produces joints that are dramatically wrong.
Not cutting opposing angles on each board. Each board in a polygon frame needs one end cut left and the other end cut right at the miter angle: not both ends the same direction. If you cut both ends the same way, the pieces will form a parallelogram, not a polygon corner.
Measuring polygon size from the wrong reference point. "10 ft hexagon" can mean 10 ft side length, 10 ft circumradius, or 10 ft apothem: three different shapes. Always clarify which dimension defines your polygon before cutting lumber or ordering materials. This calculator accepts any of these as input.
Forgetting to account for board thickness in framing. The polygon calculations give you centerline dimensions. When framing with dimensional lumber, the actual face of each board is offset inward from the centerline by half the board thickness. For precise work, subtract the board thickness from the calculated dimensions and re-verify the corner geometry before cutting the full run.
Layout tip: For large polygons on a job site, use the 3-4-5 triangle method to verify your corner angles after staking. At each corner, measure 3 ft along one side and 4 ft along the adjacent side: the diagonal between those two points should equal 5 ft for a square corner. For non-90° corners, use the law of cosines to calculate the expected diagonal for your interior angle and check against the field measurement. A laser distance measurer makes this quick across large spans.
For a regular octagon, the miter cut angle is 22.5°. Set your miter saw to 22.5° and cut both ends of each piece at opposing 22.5° angles: one end left, one end right. The interior angle of a regular octagon is 135°, but 135° is not the saw setting. The miter cut angle is always half the exterior angle: 360 ÷ 8 ÷ 2 = 22.5°. This is the most common gazebo and bay window cut and most miter saws have a 22.5° detent for exactly this purpose.
How do I calculate the area of a hexagonal gazebo? ▾
For a regular hexagon with side length s: Area = (3√3 ÷ 2) × s² ≈ 2.598 × s². For a 10 ft side hexagon: 2.598 × 100 = 259.8 sq ft. The circumradius of a regular hexagon equals its side length: a useful fact that makes hexagons particularly easy to stake out on site. Enter your side length in this calculator to get area, perimeter, miter angle, and all other dimensions instantly.
What is the apothem of a polygon? ▾
The apothem is the perpendicular distance from the center of a polygon to the midpoint of any side: also called the inradius. It's different from the circumradius (center to corner). The apothem is particularly useful in two situations: calculating the polygon's area (Area = ½ × perimeter × apothem), and determining rafter length for a polygon roof: the apothem equals the horizontal run from the center to the wall plate midpoint.
How do I lay out a regular polygon on a job site? ▾
Drive a center stake and attach a string equal to the circumradius (from the calculator output). Mark corners by rotating the string in equal angular increments: 360° ÷ number of sides. For a hexagon: 6 points at 60° intervals. For an octagon: 8 points at 45° intervals. Use a builder's protractor or set your batter boards at the calculated angles. Connect the corner stakes and check diagonals: opposite corners of any regular polygon are equidistant from the center, so all corner-to-center measurements should be equal.
How much decking do I need for an octagonal deck? ▾
Enter your octagon's side length in this calculator to get the area in square feet. Add 15% waste for a diagonal decking pattern (which is typical on octagonal decks) or 10% for boards running parallel to one side. Octagonal decks with a 6 to 12 ft circumradius are common residential sizes, with area ranging from about 102 sq ft (6 ft circumradius) to 407 sq ft (12 ft circumradius). Use the area output directly in our decking or flooring calculator for board quantities.