UTILS.
Private by default
⬡

Polygon Area Calculator

Compute the area and perimeter of any polygon from its vertex coordinates.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
One x,y pair per line; values may be separated by a comma or space.

About this tool

Polygon Area Calculator measures a polygon from the coordinates of its corners. Paste or type one vertex per line as x and y values separated by a comma or whitespace, and three tiles show the area, the perimeter and the number of vertices. The starting example is a 4 by 3 rectangle, giving an area of 12 and a perimeter of 14.

The area comes from the shoelace formula: it sums x₁y₂ − x₂y₁ for each pair of consecutive vertices, wraps from the last point back to the first, then takes half the absolute value. Because of the absolute value, it does not matter whether you list the points clockwise or counter-clockwise. The perimeter is the sum of straight edges, including the closing edge from the last vertex to the first, so you do not need to repeat the first point at the end.

At least three vertices are needed, and every non-empty line needs two valid numbers; if a line has more than two values, only the first two are read. Use a decimal point rather than a decimal comma, since commas separate x from y. Blank lines are skipped, and results are rounded to six decimals. The method is reliable for simple polygons, concave ones included. For self-intersecting shapes, such as a bow-tie, the signed areas of the loops partly cancel, so the result is not the visible total. Coordinates are unitless. Everything runs in your browser and nothing is uploaded.

Frequently asked questions

What is the shoelace formula?
A method for the area of a polygon from its vertex coordinates. You multiply and subtract the coordinates of each consecutive pair, add them up and halve the absolute value. It works for any simple polygon, convex or concave.
Do I need to repeat the first point at the end?
No. The tool closes the shape automatically from the last vertex to the first. If you do repeat it, the area and perimeter stay the same, but the vertex count goes up by one.
What coordinate format is accepted?
One point per line, with x and y separated by a comma or spaces, for example 4,3 or 4 3. Use a dot for decimals. Lines that do not contain two numbers show an error.
What about shapes whose edges cross?
The result is unreliable. Overlapping loops are counted with opposite signs and can cancel, so split a self-intersecting shape into simple polygons and add their areas yourself.

More tools