Free Construction Tool

Polygon Calculator – Area, Angles & Miter Cuts

Reviewed and updated: August 2026

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.

OCTAGON CORNER: INTERIOR vs. MITER ANGLE 135° interior angle 22.5° saw angle (each board) Each board is cut 22.5° from the miter line. Two 22.5° cuts meeting at the joint together produce the 135° interior angle, not one board cut at 135°.

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

ShapeSidesInterior AngleMiter Cut AngleSaw Setting
Triangle360°60°60° on each end, opposing
Square490°45°Standard 45° miter
Pentagon5108°36°36° on each end, opposing
Hexagon6120°30°30° on each end, opposing
Octagon8135°22.5°22.5°: common gazebo setting
Decagon10144°18°18° on each end, opposing
Dodecagon12150°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

TermDefinitionHow It's Used
Side lengthLength of each edgeCutting boards; ordering lumber
PerimeterTotal of all sidesDecking, trim, and edging quantities
AreaTotal enclosed surfaceFlooring, roofing, sod quantities
CircumradiusCenter to each cornerStaking corners from center point on site
Apothem (inradius)Center to midpoint of each sideCentering the layout; rafter length to wall plate
Interior angleAngle at each corner, insideFraming corner connections; post angles
Exterior angleSupplement of interior (360°/n)Layout angle between adjacent sides
Miter cut angleHalf the exterior angleSaw 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

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.

Planning a related project? See our square footage calculator and crown molding calculator for another common miter-cut application.

Frequently Asked Questions
What angle do I cut for an octagon? ▾
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.