This calculator takes the parameters of a regular polygon and calculates its coordinates. It produces both the coordinates of the
vertices and the coordinates of the line segments making up the sides of the polygon.

It is useful to blind users and those who produce material for the sight-impaired.
The programs that emboss shapes on pages for the blind
need the coordinates of the lines that make up the shape.
This page was designed to make it easy to produce the data needed by those programs (such as SVG Draw) to 'draw' regular polygons.

Instructions

There are four headings on this page:

Instructions

Inputs

List of sides

List of vertices

The inputs are as follows:

Center X and center Y are the coordinates of the center point of the polygon. Set initially to 550, 550. Note that the y coordinate is positive downwards, to conform to the convention in most computer software. Positive x is to the right.

The number of sides. Must be greater than 2. Set initially to 5.

The radius is the distance from the center to a vertex. Set initially to 100.

Start angle is the position of the first vertex.

This angle is in degrees and is the angle starting at 3 o'clock going counter clockwise.
So for example if you want the first vertex to be at 12 o'clock, set this to 90. Set initially to blank (auto).

If you leave this blank it will be set automatically: If the number of sides is odd,
(e.g. a pentagon), the first vertex will be at 12 o'clock.
If even, e.g. an octagon, the top and bottom sides will be horizontal on the page.

Click the 'Calculate' button to refresh the results.
Note that the y coordinates are positive downwards, to conform to the convention in most computer software. Positive x is to the right.

The sides output is a table containing the start and end x,y coordinates of each side of the polygon,
going counter clockwise from the first one. Below that is the same data in CSV format.

The vertex output is a table containing the x and y coordinates of each vertex of the polygon, going counter clockwise from the first one.
Below that is the same data in CSV format.

Inputs

Center x: Center y:

Number of sides

Radius

Start angle (degrees)

Sides

As a table

As CSV

Vertices

As a table

As CSV

While you are here..

... I have a small favor to ask. Over the years we have used advertising to support the site so it can remain free for everyone.
However, advertising revenue is falling and I have always hated the ads. So, would you go to Patreon and become a patron of the site?
When we reach the goal I will remove all advertising from the site.

It only takes a minute and any amount would be greatly appreciated.
Thank you for considering it! – John Page