IP331.com | Online Tools
HomeGeometry ToolsPolygon Diagonal Calculator

Polygon Diagonal Calculator

Enter the number of sides to compute diagonals and polygon properties

Number of Sides (n)

Diagonal Formula

Total Diagonals D = n(n - 3) / 2
Diagonals per Vertex = n - 3
Total Segments = n(n - 1) / 2

A diagonal is a line segment connecting two non-adjacent vertices of a polygon. The number of diagonals grows quadratically - more sides means many more diagonals.

The formula applies to convex polygons. Concave polygons have the same count of diagonals, but some may lie outside the polygon boundary.

What Is a Polygon Diagonal?

A diagonal is any line segment connecting two non-adjacent vertices of a polygon. Triangles have no diagonals, quadrilaterals have two, and the number increases rapidly as the polygon adds more sides.

Counting Method

Each vertex connects to n-3 diagonals. Total = n(n-3)/2. Divide by 2 because each diagonal is counted from both ends.

Polygon Names

3=triangle, 4=quadrilateral, 5=pentagon, 6=hexagon, 7=heptagon, 8=octagon, 9=nonagon, 10=decagon.

Rapid Growth

n=5 has 5 diagonals, n=10 has 35, n=20 has 170, n=100 has 4850. Diagonals grow as n^2/2.

Convex vs Concave

In convex polygons, all diagonals lie inside. In concave polygons, some diagonals may lie partially outside the polygon.

Teaching Example: A hexagon (n=6). Each vertex connects to 3 diagonals. Total: 6x3/2 = 9 diagonals. Verify: hexagon ABCDEF: AC, AD, AE, BD, BE, BF, CE, CF, DF = 9 total.

Applications

Polygon Geometry Graph Theory Computer Graphics Network Design Tessellation Math Puzzles

FAQs about Polygon Diagonals

How to calculate polygon diagonals?
D = n(n-3)/2. For n=6: D = 6x3/2 = 9. For n=8: D = 8x5/2 = 20. For n=12: D = 12x9/2 = 54.
Which polygon has the most diagonals?
The more sides, the more diagonals. A 100-gon has 4850 diagonals. A circle approximation with many vertices has quadratically many diagonals.
What polygon has 0 diagonals?
A triangle (n=3) has 0 diagonals: D = 3(0)/2 = 0. This is because all vertices are adjacent to each other in a triangle.
What is the sum of interior angles?
Sum = (n-2) x 180 degrees. For a hexagon (n=6): (6-2) x 180 = 720 degrees. Each interior angle of a regular hexagon = 720/6 = 120 degrees.

More Geometry Tools

Free online calculators and tools covering mathematics, unit conversion, text processing, and daily life. Accurate, fast, mobile-friendly, and completely free to use.

© 2026 IP331.com — Free Online Tools. All rights reserved.

About · Contact · Privacy Policy · Cookie Policy · Terms of Use · Disclaimer · Sitemap