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.
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 instantly. Whether you are studying combinatorics, designing geometric patterns, or working with architectural shapes, this calculator delivers the numbers you need.
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.
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
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.
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
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.
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.
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.
A diagonal connects non-adjacent vertices. In a triangle, every vertex is adjacent to both others, so there are no non-adjacent pairs. The formula gives 3(3 − 3)/2 = 0.
The apothem is the perpendicular distance from the center of a regular polygon to the midpoint of a side. It is used in the area formula: Area = ½ × perimeter × apothem.
No, except for a square. In a regular pentagon, there is only one diagonal length, but in hexagons and beyond, there are diagonals of different lengths depending on how many vertices they skip.
Quadratically — proportional to n². A 10-gon has 35 diagonals, a 20-gon has 170, and a 100-gon has 4,850. The growth is roughly n²/2 for large n.
Any convex polygon can be divided into (n − 2) triangles by drawing (n − 3) non-crossing diagonals from one vertex. This triangulation is used to prove the angle sum formula.