Polygon Diagonals Calculator — Count, Angles & Area

Calculate the number of diagonals in any polygon using n(n−3)/2. Also computes interior angle, exterior angle, and area of regular polygons. Includes a comparison table for 3–20 sides.

3 to 100
Optional — for area & perimeter of a regular polygon
Planning notes, formulas, and examples

About the Polygon Diagonals Calculator — Count, Angles & Area

A diagonal of a polygon is a line segment connecting two non-adjacent vertices. The number of diagonals in an n-sided polygon is given by the formula n(n − 3)/2. A triangle has zero diagonals, a quadrilateral has 2, a pentagon has 5, a hexagon has 9, and the count grows quadratically as n increases.

This formula comes from combinatorics: each vertex can connect to n − 3 other vertices (excluding itself and its two neighbors), giving n(n − 3) potential diagonals, but each diagonal is counted twice (once from each end), so we divide by 2.

Beyond counting diagonals, this calculator computes the full suite of properties for regular polygons. Enter the number of sides and optionally the side length, and get the number of diagonals, each interior angle, each exterior angle, the angle sum, the perimeter, the apothem (distance from center to side midpoint), and the area. The area of a regular n-gon with side length s is (n × s² / 4) × cot(π/n).

A comprehensive table compares all these properties for polygons from 3 to 20 sides, making it easy to see how diagonals, angles, and area scale. Presets load common polygons quickly. Whether you are studying combinatorics, designing geometric patterns, or working with architectural shapes, this calculator delivers the numbers you need.

When This Page Helps

Polygon Diagonals — Count, Angles & Area problems often require several dependent steps, and a small arithmetic slip can propagate through every derived value. This calculator is tailored to that workflow: you enter number of sides (n), side length (value), unit, and it returns polygon, number of diagonals, each interior angle, each exterior angle in one consistent pass. It is useful for homework checks, worksheet generation, tutoring walkthroughs, and fast field/design estimates where you need reliable geometry results without rebuilding the full derivation each time.

How to Use the Inputs

  1. Enter the number of sides (3 to 100) for your polygon.
  2. Optionally enter a side length to compute area and perimeter of a regular polygon.
  3. Select a unit of measurement for dimensions (mm, cm, in, m, or ft).
  4. Or click a preset to load a common polygon (triangle, pentagon, hexagon, etc.).
  5. View the diagonal count, angles, perimeter, apothem, and area.
  6. Check the comparison table for polygons 3 through 20 sides.
  7. Use the visual bars to see how diagonal count scales with side count.
Formula used
Number of diagonals: D = n(n − 3) / 2 Interior angle (regular): (n − 2) × 180° / n Exterior angle (regular): 360° / n Angle sum: (n − 2) × 180° Perimeter: P = n × s Apothem: a = s / (2 × tan(π/n)) Area (regular): A = (n × s² / 4) × cot(π/n) = ½ × P × apothem

Example Calculation

Result: Diagonals = 9, Interior angle = 120°, Area ≈ 259.81

A hexagon has 6 sides. Diagonals = 6(6 − 3)/2 = 6 × 3/2 = 9. Interior angle = (6 − 2) × 180°/6 = 120°. Exterior angle = 60°. Apothem = 10/(2 × tan 30°) ≈ 8.66. Area = ½ × 60 × 8.66 ≈ 259.81.

Tips & Best Practices

  • A triangle (n = 3) has 0 diagonals, a quadrilateral has 2, a pentagon has 5, a hexagon has 9 — the count grows quadratically.
  • The formula n(n − 3)/2 is closely related to the combination formula C(n, 2) − n (all vertex pairs minus the n sides).
  • For a regular polygon, the apothem equals s / (2 tan(π/n)) and is the key to computing the area easily.
  • As n increases, a regular polygon approaches a circle: area → π r² and perimeter → 2π r.
  • Diagonals of a convex polygon never extend outside the shape, but concave polygons can have external diagonals.

How Polygon Diagonals — Count, Angles & Area Calculations Work

This polygon diagonals — count, angles & area tool links the entered values (number of sides (n), side length (value), unit) to the target geometry relationships used in class and practice problems. Instead of solving each intermediate step manually, you can validate setup and arithmetic quickly while still tracing which measurements drive the final result.

Formula focus: the calculator formula

Practical Uses for Polygon Diagonals — Count, Angles & Area

Polygon Diagonals — Count, Angles & Area shows up in school geometry, technical drafting, construction layout checks, and early engineering design estimates. When values are changed repeatedly, the calculator helps you compare scenarios quickly and see how sensitive the shape is to each dimension.

Interpreting the Results Correctly

Start with the primary outputs (polygon, number of diagonals, each interior angle, each exterior angle) and then use the remaining cards/tables to confirm consistency with your diagram. Keep units consistent across inputs, and round only at the end if your assignment or project specifies a fixed precision.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Use the formula D = n(n − 3)/2, where n is the number of sides. For a decagon (10 sides): 10 × 7/2 = 35 diagonals.