Polygon Area Calculator from Coordinates (Shoelace)

The shoelace formula gives the area of any simple polygon from the coordinates of its vertices: A = ½ |Σ (xᵢ·yᵢ₊₁ − xᵢ₊₁·yᵢ)|. For the rectangle (0,0), (4,0), (4,3), (0,3) the area is 12, the perimeter 14 and the centroid (2, 1.5).

Last updated · By · Runs in your browser, nothing is uploaded

Result

Step-by-Step Solution

Enter your values above to see the full working.

How Do You Find the Area of a Polygon from Its Coordinates?

If you know the coordinates of a polygon’s corners, you can find its area with the shoelace formula (also called Gauss’s area formula or the surveyor’s formula). It works for any simple polygon, convex or concave, however irregular, as long as the vertices are listed in order around the boundary. The name comes from the criss-cross pattern of multiplications, which resembles lacing a shoe.

This makes it a favourite of surveyors and map makers: walk around a plot of land, record the corner coordinates, and compute the area without ever dividing the shape into triangles. The same calculation also gives the polygon’s centroid, its centre of mass, and the direction in which the vertices were listed.

Results for a Few Polygons

PolygonVerticesAreaPerimeter
Rectangle(0,0) (4,0) (4,3) (0,3)1214
Right triangle(0,0) (4,0) (0,3)612
House-shaped pentagon(0,0) (6,0) (6,4) (3,6) (0,4)3021.21

The Shoelace Formula

A = ½ | Σᵢ ( xᵢ · yᵢ₊₁ − xᵢ₊₁ · yᵢ ) | (the last vertex connects back to the first) Centroid: C = ( Σ (xᵢ + xᵢ₊₁)(xᵢyᵢ₊₁ − xᵢ₊₁yᵢ) ÷ 6A , Σ (yᵢ + yᵢ₊₁)(xᵢyᵢ₊₁ − xᵢ₊₁yᵢ) ÷ 6A )
  • (xᵢ, yᵢ) are the vertex coordinates, listed in order around the polygon, either clockwise or counter-clockwise.
  • The sign of the sum before taking the absolute value tells you the orientation: positive for counter-clockwise, negative for clockwise.
  • The perimeter is the sum of the distances between consecutive vertices.
  • For regular polygons, a direct formula is quicker. See the regular polygon calculator.

How Is It Calculated? Worked Examples

Rectangle (0,0), (4,0), (4,3), (0,3)

  1. Pair each vertex with the next: (0·0 − 4·0) = 0; (4·3 − 4·0) = 12; (4·3 − 0·3) = 12; (0·0 − 0·3) = 0.
  2. Sum: 0 + 12 + 12 + 0 = 24.
  3. Area = ½ × 24 = 12, as expected from 4 × 3.
  4. Perimeter = 4 + 3 + 4 + 3 = 14, and the centroid is (2, 1.5).

An Irregular Pentagon (0,0), (6,0), (6,4), (3,6), (0,4)

  1. Terms: 0, 24, 24, 12, 0, which add to 60.
  2. Area = ½ × 60 = 30.
  3. Check by splitting: a 6 × 4 rectangle (24) plus a triangle with base 6 and height 2 (6) gives 30 ✓.
  4. Perimeter = 6 + 4 + 3.606 + 3.606 + 4 = 21.21.

Vertex Order Matters

Listing the rectangle as (0,0), (0,3), (4,3), (4,0), clockwise, gives the same area of 12, but the calculator reports the order as clockwise. If the vertices are listed out of order, so that edges cross, the result is meaningless.

A Land Parcel

A plot has corners at (0, 0), (50, 0), (60, 30) and (10, 40), in metres. The four terms are 0, 1,500, 2,100 and 0, which add to 3,600, so the area is ½ × 3,600 = 1,800 m².

A Quick Check with Pick’s Theorem

For polygons whose corners lie on whole-number grid points, Pick’s theorem gives A = I + B ÷ 2 − 1, where I is the number of interior grid points and B the number on the boundary. The 4 × 3 rectangle has B = 14 and I = 6, so A = 6 + 7 − 1 = 12, confirming the shoelace result.

How to Use This Polygon Area Calculator

  1. Type the vertices in order around the polygon as (x,y) pairs, separated by spaces: (0,0) (4,0) (4,3) (0,3).
  2. You need at least three vertices, and the last point automatically joins back to the first.
  3. Read the area, perimeter, centroid, vertex order and vertex count.

Where the Polygon Area Formula Is Used

  • Surveying and GIS: areas of land parcels, lakes and regions from boundary coordinates.
  • Architecture and CAD: floor areas and irregular plot sizes.
  • Computer graphics and games: polygon meshes, collision shapes and orientation tests.
  • Robotics and mapping: covered areas of rooms and fields.
  • Mathematics: area from coordinates, and Pick’s theorem for lattice polygons.

What Are the Most Common Mistakes With the Polygon Area Calculator from Coordinates (Shoelace)?

  • Listing vertices out of order. They must follow the boundary, not jump across the shape.
  • Self-intersecting polygons. A bow-tie shape gives a confusing result because parts cancel.
  • Forgetting the closing edge. The last vertex connects back to the first. Do not repeat the first point.
  • Mixing units. All coordinates must use the same unit.
  • Using latitude and longitude directly. For large areas on the Earth’s surface, convert to a projected coordinate system first.
  • Dropping the absolute value. The sign only shows the vertex direction.

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

What is the shoelace formula?

A = ½ |Σ (xᵢyᵢ₊₁ − xᵢ₊₁yᵢ)|, which gives the area of a simple polygon from its vertex coordinates.

Do the vertices have to be in order?

Yes. They must be listed in sequence around the boundary, clockwise or counter-clockwise.

Does it work for concave polygons?

Yes. The formula works for any simple (non-self-intersecting) polygon.

How do I find the centroid?

The centroid comes from the same sums, weighted by the vertex coordinates and divided by 6A. For the 4 × 3 rectangle it is (2, 1.5).

How can I tell whether the vertices run clockwise?

If the signed sum is negative, the vertices are clockwise. A positive sum means counter-clockwise.

What is the area of the polygon (0,0), (4,0), (4,3), (0,3)?

12 square units, since it is a 4 by 3 rectangle.