JESUS CHRIST IS THE ONLY TRUE GOD
Math calculator

Polygon Diagonal Calculator

Calculate the number of diagonals in a simple n-sided polygon.

Your calculationPrivate in your browser
Report a result

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

Inputs and example values for Polygon Diagonal Calculator
InputFormat / rangeExample
Number of sides nWhole number, min 3, max 10000008

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.

See how to check a result or report an issue.