Start with a worked example
Open the worked example for Number of diagonals. The example starts with Number of sides n = 8.
Polygon Diagonal Calculator formula
Diagonals = n(n−3)/2.
Inputs and units
| Input | Format / range | Example |
|---|---|---|
| Number of sides n | Whole number, min 3, max 1000000 | 8 |
Worked example
The values listed in Inputs and units give 20 for Number of diagonals.
- Number of diagonals
- 20
Results and assumptions
Change Number of sides n from 8 to 9 and keep the other example inputs fixed. The updated answer is 27 (Number of diagonals).
Fix an input or unexpected result
Number of sides n is required. Enter number of sides n using the format and bounds in the input table. Zero and an empty field are different: use zero only if it is allowed and represents your data.
