Irregular Polygon Area Calculator - Shoelace, Perimeter, Centroid

Use this irregular polygon area calculator to find the area, perimeter, and centroid of any simple polygon from ordered x,y vertex coordinates.

Updated: June 12, 2026 • Free Tool

Irregular Polygon Area Calculator

List the polygon vertices in order around the boundary. Each line is one (x, y) point; newlines, semicolons, or extra spaces are all accepted.

Results

Polygon Area
0sq units
Perimeter 0units
Centroid X 0units
Centroid Y 0units
Vertex Count 0

What Is an Irregular Polygon Area Calculator?

An irregular polygon area calculator is a coordinate-geometry tool that finds the area, perimeter, centroid, and vertex count of any simple polygon from a typed list of x,y vertex coordinates. It applies the shoelace formula (also called Gauss's area formula) so you do not have to break the shape into triangles by hand. Type the vertices in order around the boundary and the calculator handles the signed-area math, the edge-length total, and the centroid.

  • Surveying and land parcels: Compute the area of an irregular land parcel from a list of boundary coordinates recorded by GPS or a total station.
  • Concave floor plans: Find the floor area of an L-shaped or T-shaped room where the regular polygon formulas no longer apply.
  • CAD and GIS verification: Cross-check a closed polyline's area in a CAD or GIS file before exporting measurements to a report.
  • Homework and competition geometry: Solve contest problems that give only vertex coordinates and expect a fast, exact shoelace answer.

The shoelace formula works for any simple polygon, which means a closed shape whose edges do not cross each other. The vertices can be convex or concave and the side lengths can be different, which is what makes the formula more useful for real drawings than the regular-polygon area equation. The square units of the result match the square units of the input coordinates, so the same formula works in centimeters, feet, surveyor's rods, or any other length unit.

Use this irregular polygon area calculator whenever a shape is defined as a list of coordinate pairs. If the shape has only three vertices, the result still applies, but a dedicated triangle calculator is a faster shortcut for the area and angles of a single triangle.

When every side and angle happens to be equal, the regular Polygon Area Calculator returns the same area from a single side length without typing each coordinate.

How the Irregular Polygon Area Calculator Works

The calculator reads the typed vertex list, parses each line into an (x, y) pair, and then runs the shoelace formula in one pass around the polygon. The same loop tallies the edge lengths for the perimeter and accumulates the centroid sums.

A = 0.5 * | sum{i=1..n} (x_i * y{i+1} - x{i+1} * y_i) |
  • x_i, y_i: Coordinates of the i-th vertex, listed in order around the polygon (clockwise or counterclockwise both work).
  • x{i+1}, y{i+1}: Coordinates of the next vertex, with the last vertex treated as adjacent to the first.
  • A: Reported area, taken as the absolute value of the signed sum so the result is always positive.
  • C_x, C_y: Centroid coordinates, computed from the same cross-product terms (1/(6A)) * sum((x_i + x{i+1}) * cross).
  • P: Perimeter, the sum of the Euclidean distances between consecutive vertices including the closing edge.

The shoelace sum is also called Gauss's area formula or the surveyor's formula, and it works for convex and concave polygons alike. If the signed sum comes out negative, the vertices were listed clockwise; if it comes out positive, they were counterclockwise. The calculator takes the absolute value either way so the headline area is always positive.

The centroid uses the same cross-product terms. C_x = (1 / (6 * A_signed)) * sum((x_i + x{i+1}) * (x_i * y{i+1} - x{i+1} * y_i)), and C_y follows the same pattern with y. When the signed area is effectively zero (collinear points), the calculator falls back to the simple mean of the vertices so the centroid stays defined.

Worked example with an L-shaped polygon

Vertices: (0,0), (3,0), (3,2), (1,2), (1,4), (0,4)

signed sum = 0 + 6 + 4 + 2 + 4 + 0 = 16; area = 16 / 2 = 8

Area = 8 square units, perimeter = 14, centroid = (1.25, 1.5), vertex count = 6

The L-shape covers 8 square units, with the centroid at (1.25, 1.5) - pulled inward from the simple vertex mean because the upper arm is narrower than the lower arm.

According to Wikipedia, the area of a simple polygon with vertices (x_1, y_1), ..., (x_n, y_n) is 0.5 times the absolute value of the shoelace sum over consecutive vertex pairs.

When the polygon has only three vertices, Triangle Calculator returns the same area using Heron's formula or two edge lengths and the included angle, which is a useful sanity check for the smallest shoelace case.

Key Concepts Behind the Irregular Polygon Area Calculator

Four ideas hold the shoelace formula together. Knowing them makes the result easier to interpret when the polygon gets complicated.

Simple polygon

A simple polygon is a closed shape whose edges do not cross. The shoelace formula gives a meaningful, positive area for any simple polygon, but it can return misleading results for self-intersecting (complex) polygons.

Signed area and winding order

The shoelace sum carries a sign: positive for counterclockwise vertex order, negative for clockwise. The reported area takes the absolute value, but the sign is what makes the centroid formula work.

Shoelace centroid

The centroid is the balance point of the polygon. It is a weighted mean of the vertices where the weights come from the same cross-product terms used in the area, divided by 6A. For collinear input the centroid falls back to the simple mean.

Bounding box and convex hull

The minimum and maximum x and y in the vertex list form the axis-aligned bounding box. The convex hull is the smallest convex polygon that contains the shape; concave shapes have a bounding box larger than the convex hull.

The shoelace formula handles concave (non-convex) shapes by treating the inward dents correctly. The cross-product sum adds a positive contribution for a counterclockwise edge and a negative contribution for one that bends back into the polygon, so the result still equals the true enclosed area.

When the polygon turns out to be a rectangle, Length Width Area Rectangle Calculator gives the same area in one multiplication once you know the length and width.

How to Use the Irregular Polygon Area Calculator

Type the polygon vertices as (x, y) pairs in order, and the calculator returns area, perimeter, centroid, and vertex count.

  1. 1 List the vertices in order: Walk around the polygon boundary once and record each (x, y) pair. Direction (clockwise or counterclockwise) does not matter for the reported area.
  2. 2 Type the coordinates: Enter one (x, y) pair per line, separated by a comma. Semicolons or extra spaces are also accepted, so spreadsheet exports paste in cleanly.
  3. 3 Read the results: Watch the area, perimeter, centroid, and vertex count update as you type. The vertex count tells you whether all the lines were parsed.
  4. 4 Use the value in your project: Copy the area into a worksheet, CAD dimension, or assignment answer. The square units match the units used for the input coordinates.

For a 5-vertex lot drawn as (0,0), (12,0), (12,5), (8,9), (0,5), the calculator returns area = 84 square units, perimeter = 36.60, centroid = (6.19, 3.60), and vertex count = 5. That is enough to confirm the surveyor's plan and to set up a tax assessment.

When you also need the area of a different shape in the same project, Area Calculator covers common circles, rectangles, and triangles in one place.

Benefits of Using the Irregular Polygon Area Calculator

The shoelace formula runs in one pass, which keeps the calculator fast even for polygons with many vertices. The same loop also feeds the perimeter and the centroid, so you get a full description of the shape from one input.

  • Handles any simple polygon: Convex, concave, triangle, or 20-vertex plot, the same formula and the same calculator cover them all without switching tools.
  • Works in any length unit: The area is in the same square units as the input coordinates, so the calculator is unit-agnostic. Meters, feet, and surveyor's rods all work the same way.
  • Returns a full shape description: Area, perimeter, centroid, and vertex count are all in one result panel, so you do not have to chain multiple calculations together.
  • Tolerant of messy input: Newlines, semicolons, extra spaces, and parentheses are all accepted, which makes copy-pasting from a spreadsheet or a CSV file painless.
  • Concave-friendly: The shoelace sum handles inward dents and L-shapes without you having to split the shape into triangles yourself.

For surveyors and GIS analysts the main win is that the formula runs on whatever vertex list is already in the file. For students and competition participants the win is that the answer comes out in one step, with the centroid included for free.

If the polygon happens to be a regular hexagon, switching to Hexagon Calculator skips the coordinate entry because the side length alone gives the area, perimeter, and apothem in one pass.

Factors That Affect Irregular Polygon Area Results

The shoelace formula is exact, but the result still depends on the quality of the input. These are the most common sources of a wrong answer.

Vertex order

List the vertices consecutively around the boundary. If the list jumps across the polygon, the shoelace sum still runs but the result is no longer the enclosed area.

Closing the polygon

You do not need to repeat the first vertex at the end of the list. The formula treats the last vertex as adjacent to the first, so adding a duplicate is harmless but harmless lines do show up in the vertex count.

Duplicate or collinear vertices

Two identical points produce a zero-length edge in the perimeter and contribute nothing to the area. Three collinear points give an area of zero, which the calculator returns with no error.

Self-intersecting polygons

The shoelace formula is only exact for simple (non-self-intersecting) polygons. For a bow-tie shape the signed sum mixes the two lobes and the absolute value is no longer the true enclosed area.

Unit consistency

Mixing meters and feet inside the same vertex list distorts the area. Pick one unit, type every coordinate in that unit, and read the area in the matching square units.

  • Self-intersecting polygons (bow-tie shapes) are not supported. The shoelace sum still returns a number, but the absolute value no longer matches the actual enclosed area.
  • The calculator uses planar (Euclidean) geometry. Coordinates that represent points on a sphere or another curved surface need a different area formula.

If your polygon might cross itself, split it into non-overlapping parts first and add the individual shoelace results. The same advice applies if some of the vertices sit on top of one another, because the cross-product terms cancel.

According to Wolfram MathWorld, the shoelace formula gives the area of any simple polygon in the plane from its ordered list of vertex coordinates.

For a round shape that would otherwise need a long list of vertex coordinates, Circle Calculator returns the same area from a single radius input without the coordinate step.

Irregular polygon area calculator with vertex coordinate inputs and area, perimeter, and centroid outputs
Irregular polygon area calculator with vertex coordinate inputs and area, perimeter, and centroid outputs

Frequently Asked Questions

Q: What is the formula for the area of an irregular polygon?

A: Use the shoelace formula: A = 0.5 times the absolute value of the sum of (x_i times y_{i+1} minus x_{i+1} times y_i) over every consecutive pair of vertices, with the last vertex treated as adjacent to the first. The result is in the same square units as the coordinates.

Q: How do I find the area of an irregular polygon from coordinates?

A: List the vertices in order around the boundary, then apply the shoelace formula. For a 3 by 2 rectangle on a 0,0 - 3,0 - 3,2 - 0,2 grid, the result is 6 square units, which matches 3 times 2.

Q: Does the shoelace formula work for concave polygons?

A: Yes. The cross-product sum adds positive area for outward edges and subtracts the dent, so the absolute value still equals the enclosed area for L-shapes, T-shapes, and any other concave simple polygon.

Q: How do I calculate the centroid of an irregular polygon?

A: Use the shoelace-derived centroid formula. C_x is the sum of (x_i + x_{i+1}) times the cross product, divided by 6 times the signed area. C_y follows the same pattern with y. For collinear points the centroid falls back to the simple mean of the vertices.

Q: How many vertices do I need for an irregular polygon?

A: At least three. The calculator reports the vertex count and refuses to produce a non-degenerate area for fewer than three points. More than fifty is allowed but most drawings stay well under that.

Q: Does the vertex order matter in the shoelace formula?

A: Only for the sign. Clockwise and counterclockwise both produce the same positive area after the absolute value, but the sign is what makes the centroid formula work, so the list still has to follow the boundary in a single direction.