How to find the area of a polygon from its vertices

The area of a polygon can be calculated from its vertex coordinates using the shoelace formula (also known as Surveyor's formula).

This method applies to any non-self-intersecting polygon, whether convex or concave, as long as the vertices are ordered sequentially along the perimeter.

The setup

Let the vertices of the polygon be (x1,y1),(x2,y2),,(xn,yn)(x_1, y_1), (x_2, y_2), \dots, (x_n, y_n), listed in consecutive order around the perimeter (either clockwise or counterclockwise). To use the formula, you must append the first vertex to the end of the list, creating an n+1n+1 sequence: (xn+1,yn+1)=(x1,y1)(x_{n+1}, y_{n+1}) = (x_1, y_1).

The steps

  1. Write down the xx and yy coordinates in two columns, ending with the first coordinate pair repeated.
  2. Multiply each xix_i by the following yi+1y_{i+1} (diagonally down-right) and sum these products: S1=(x1y2+x2y3++xny1)S_1 = (x_1 y_2 + x_2 y_3 + \dots + x_n y_1).
  3. Multiply each yiy_i by the following xi+1x_{i+1} (diagonally up-right) and sum these products: S2=(y1x2+y2x3++ynx1)S_2 = (y_1 x_2 + y_2 x_3 + \dots + y_n x_1).
  4. Subtract S2S_2 from S1S_1.
  5. Take the absolute value of the difference and divide by 2 to find the area: A=12S1S2A = \frac{1}{2} |S_1 - S_2|.

Checking the result

Verify that the area is strictly positive unless the polygon is degenerate. For simple shapes like triangles or rectangles, verify the result using basic geometric area formulas. Ensure you have not skipped any vertices and that the first vertex is repeated at the end.

Common errors

The most common error is listing the vertices out of order (e.g., zig-zagging across the polygon). Vertices must trace the perimeter. Another frequent error is forgetting to repeat the first vertex at the end of the calculation, which fails to close the polygon.

Worked example

Find the area of the quadrilateral with vertices at (1,1)(1, 1), (4,2)(4, 2), (3,5)(3, 5), and (1,4)(-1, 4).

First, list the vertices in order and repeat the first vertex at the end: (1,1)(1, 1), (4,2)(4, 2), (3,5)(3, 5), (1,4)(-1, 4), (1,1)(1, 1)

Calculate S1S_1 (down-right products): S1=(1)(2)+(4)(5)+(3)(4)+(1)(1)S_1 = (1)(2) + (4)(5) + (3)(4) + (-1)(1) S1=2+20+121=33S_1 = 2 + 20 + 12 - 1 = 33

Calculate S2S_2 (up-right products): S2=(1)(4)+(2)(3)+(5)(1)+(4)(1)S_2 = (1)(4) + (2)(3) + (5)(-1) + (4)(1) S2=4+65+4=9S_2 = 4 + 6 - 5 + 4 = 9

Subtract S2S_2 from S1S_1: S1S2=339=24S_1 - S_2 = 33 - 9 = 24

Multiply by 12\frac{1}{2} and take the absolute value: A=1224=12A = \frac{1}{2} |24| = 12

The area of the quadrilateral is 1212.

FAQ

Run your own problem

References: Khan Academy: High School Geometry, Analytic Geometry · Stewart Calculus, 8th Edition · OpenStax Algebra and Trigonometry

See also