Journal of Integer Sequences, Vol. 1 (1998), Article 98.1.5

The Number of Triangles Formed by Intersecting Diagonals of a Regular Polygon

Steven E. Sommars
Lucent Technologies
Indian Hill, IL
Email address:
Tim Sommars
Wheaton North High School
Wheaton, IL
Email address:

(Affliliation for identification only, the paper is not officially endorsed by either organization.)

Abstract: We consider the number of triangles formed by the intersecting diagonals of a regular polygon. Basic geometry provides a slight overcount, which is corrected by applying a result of Poonen and Rubinstein [1]. The number of triangles is 1, 8, 35, 110, 287, 632, 1302, 2400, 4257, 6956 for polygons with 3 through 12 sides.


If we connect all vertices of a regular N-sided polygon we obtain a figure with = N (N - 1) / 2 lines. For N=8, the figure is:

Careful counting shows that there are 632 triangles in this eight sided figure.


All triangles are formed by the intersection of three diagonals at three different points. There are five arrangements of three diagonals to consider. We classify them based on the number of distinct diagonal endpoints. We will directly count the number of triangles with 3, 4 and 5 endpoints (top three figures). We will count the number of potential triangles with 6 endpoints, then correct for the false triangles. In each of the following five figures, a sample triangle is highlighted.

Three, Four and Five Diagonal Endpoints



3 diagonal endpoints. There are 56 such triangles in the figure at left.


The number of triangles formed by diagonals with a total of three endpoints is simply.



4 diagonal endpoints. There are 280 such triangles in the figure at left.


There are combinations of the four diagonal endpoints. For each set of four endpoints, there are four triangle configurations. Thus there are triangles formed.



5 diagonal endpoints There are 280 such triangles in the figure at left.

For each of the N vertices of the polygon, there are four other diagonal endpoints which can be placed on the N-1 remaining locations. Thus there are triangles formed. This is equal to .

Six diagonal endpoints

The number of potential triangles formed by 6 line segments is , since there are 6 segment endpoints to be chosen from a pool of N. Often potential triangles are not created by three overlapping line segments because the line segments intersect at a single point. counts both of the following two situations.



6 diagonal endpoints, resulting in triangle. There are 16 such triangles in the figure at left.



6 diagonal endpoints, false triangle. There are 9 interior intersection points in the figure at left where such false triangles can be formed.

We use a result of [1] to count these false triangles. As in that paper, for a regular N-sided polygon, let am(N) denote the number of interior points other than the center where m diagonals intersect. Surprisingly, only the values m = 2, 3, 4, 5, 6 or 7 may occur. The requisite formulae from [1] are reproduced here:


where if , 0 otherwise.

If there are K line segments that intersect at one common point, where K>2, there are false triangles corresponding to that point. Thus the correction term for false triangles is

where the last term represents the contribution of the center point for even N. The correction is 0 for odd N. The number of triangles formed by line segments with six endpoints on the polygon is then:



The table below summaries the results for . These values were checked through use of a computer program performing an exhaustive search.

N Triangles with 3 diagonal endpointsTriangles with 4 diagonal endpointsTriangles with 5 diagonal endpointsTriangles with 6 diagonal endpointsTotal Number of Triangles
3 10001
4 44008
5 10205035
6 2060300110
7 351401057287
8 5628028016632
9 84504630841302
10 12084012601802400
11 165132023104624257
12 220198039607966956
13 286 28606435171611297
14 364400410010285617234
15 455546015015500525935
16 560728021840774437424
17 6809520309401237653516
18 81612240428401750873404
19 969155045814027132101745
20 1140193807752038160136200

The sequence formed by the total number of triangles was studied by the late Victor Meally in the 1960's, although it appears he did not find our formula for the N-th term. This is sequence A006600 in the On-Line Encyclopedia of Integer Sequences.

To summarize the final result, the number of triangles generated by intersecting diagonals of an N-regular polygon is:



[1] Bjorn Poonen, Michael Rubinstein, The Number of Intersection Points Made by the Diagonals of a Regular Polygon, SIAM J. Disc. Math. 11 (1998), 133-156. Note that Theorem 1 has a typographical error: in the second line: 232 should be replaced by 262.

Received February 24 1998; published in Journal of Integer Sequences, April 26 1998.

Return to Journal of Integer Sequences home page