Geometry · Grade 10

Area of a Polygon from Its Coordinates: The Shoelace Formula

Quick answer

When a polygon's vertices are given as coordinates, its area can be found without measuring any heights. List the vertices in order around the shape, multiply each x by the next y and subtract each y times the next x, add these up, and take half the absolute value. This is the shoelace formula, named for the criss-cross pattern of the products. For the triangle (1, 1), (5, 2), (3, 6) it gives 9. The vertices must go around the polygon in order; jumping across gives a wrong answer.

What you'll learn

  • Apply the shoelace formula to triangles and quadrilaterals
  • List vertices in order around a polygon
  • Check the formula against base-times-height areas
  • Explain why the absolute value is taken

Area without heights

For a polygon with vertices (x1,y1),(x2,y2),…,(xn,yn)(x_1, y_1), (x_2, y_2), \ldots, (x_n, y_n) listed in order around it:

A=12∣ (x1y2−x2y1)+(x2y3−x3y2)+⋯+(xny1−x1yn) ∣A = \frac{1}{2}\left|\,(x_1y_2 - x_2y_1) + (x_2y_3 - x_3y_2) + \cdots + (x_ny_1 - x_1y_n)\,\right|

Each term pairs a vertex with the next one, and the last vertex pairs back with the first. This is the shoelace formula.

A triangle from its vertices The triangle with vertices (1, 1), (5, 2) and (3, 6), shaded. The shoelace formula gives its area as 9 square units. 12345671234567xy (1, 1) (5, 2) (3, 6)
A triangle from its vertices

Why the cross products measure area

Each term xiyi+1−xi+1yix_iy_{i+1} - x_{i+1}y_i is twice the signed area of the triangle formed by the origin and one side of the polygon. Going around the polygon, these triangles add over the inside and cancel over the parts outside. The total is twice the polygon’s area, with a sign that records the direction of travel. Halving and taking the absolute value gives the area. That is also why the vertices must go around in order: skipping across makes the sides cross, and the pieces no longer cancel correctly.

Worked examples

Common mistakes

Practice problems

  1. Find the area of the triangle with vertices (0,0)(0, 0), (4,0)(4, 0) and (0,3)(0, 3).

    Answer

    66

    Full solution

    Terms 00, 1212, 00: half of 1212. It matches 12⋅4⋅3\tfrac{1}{2} \cdot 4 \cdot 3.

  2. Find the area of the triangle with vertices (2,1)(2, 1), (6,3)(6, 3) and (4,7)(4, 7).

    Answer

    1010

    Full solution

    Terms 00, 3030, −10-10: half of 2020.

  3. Find the area of the triangle with vertices (1,0)(1, 0), (4,1)(4, 1) and (2,4)(2, 4).

    Answer

    5.55.5

    Full solution

    Terms 1−0=11 - 0 = 1, 16−2=1416 - 2 = 14, 0−4=−40 - 4 = -4: half of 1111.

  4. Find the area of the quadrilateral (−2,1)(-2, 1), (3,−1)(3, -1), (4,4)(4, 4), (0,5)(0, 5), in that order.

    Answer

    22.522.5

    Full solution

    Terms 2−3=−12 - 3 = -1, 12+4=1612 + 4 = 16, 20−0=2020 - 0 = 20, 0+10=100 + 10 = 10: half of 4545.

  5. Find the area of the square with vertices (0,0)(0, 0), (5,0)(5, 0), (5,5)(5, 5), (0,5)(0, 5).

    Answer

    2525

    Full solution

    Terms 00, 2525, 2525, 00: half of 5050.

  6. A triangle has vertices (0,0)(0, 0), (8,0)(8, 0) and (3,h)(3, h) with h>0h > 0, and area 2020. Find hh.

    Answer

    55

    Full solution

    The terms are 00, 8h8h, 00, so 12⋅8h=20\tfrac{1}{2} \cdot 8h = 20.

  7. Going around Example 1 clockwise gives a sum of −18-18. What is the area?

    Answer

    99

    Full solution

    The absolute value removes the sign: 12∣−18∣\tfrac{1}{2}|-18|.

  8. A student lists Example 2’s vertices as (0,0)(0, 0), (6,0)(6, 0), (1,5)(1, 5), (7,4)(7, 4) and gets 0.50.5. What is the correct area?

    Answer

    27.527.5

    Full solution

    Those vertices are out of order, so the sides cross. In order around the shape the sum is 5555.

Frequently asked questions

What is the shoelace formula?

For vertices (x₁, y₁), …, (xₙ, yₙ) in order, the area is ½|(x₁y₂ − x₂y₁) + (x₂y₃ − x₃y₂) + ⋯ + (xₙy₁ − x₁yₙ)|.

Why is it called the shoelace formula?

Writing the coordinates in two columns and joining the multiplied pairs with lines makes a criss-cross pattern like laced shoes.

Does the order of the vertices matter?

They must go around the polygon, clockwise or counterclockwise. Going around the other way only changes the sign, which the absolute value removes.

Why take the absolute value?

The sum is positive for counterclockwise order and negative for clockwise. Area is the size, so the sign is dropped.

Does it work for any polygon?

Yes, for any polygon whose sides do not cross each other, with any number of vertices.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSG.GPE.B.7Expressing Geometric Properties with EquationsUse coordinates to compute perimeters of polygons and areas of triangles and rectangles, e.g., using the distance formula.