Shoelace Formula Calculator

Polygon area80.00
Perimeter34.81
Centroid x5.00
Centroid y4.08
Vertex ordercounterclockwise
How this was calculated
  1. The shoelace formula sums the cross products of consecutive vertices - x1*y2 - x2*y1, x2*y3 - x3*y2 and so on around the polygon, closing back to the first point.
  2. Your five vertices give a cross sum of 160.00, so the signed area is half of that: 80.00. The sign is positive, so the vertices run counterclockwise; the area itself is 80.00 square units.
  3. Walking the edges gives a perimeter of 34.81 units - the shoelace sum and the perimeter share the same vertex loop, which is why surveyors record both from one traverse.
  4. The centroid (centre of area) weights each edge's cross product: it falls at (5.00, 4.08), the balance point of the polygon.

The shoelace formula calculator turns a list of corner points into the area of the shape they enclose. You enter the coordinates of each vertex in order around the boundary, and the calculator returns the area in square units. The method is exact, not an estimate: a plain 4 x 4 square traced with the first point repeated comes back as exactly 16.00, because the formula closes the loop itself. A house-shaped plot 10 wide, with walls 6 and a gable peak at 10, gives an area of 80.00 square units and a perimeter of 34.81. An irregular five-sided parcel works out to 39.50 square units, with its balance point at (4.04, 4.26).

The shoelace formula is the accepted standard for this kind of calculation because it reduces any polygon, no matter how many sides, to one reliable cross sum of coordinate products. It also tells you the direction of travel: the sign of the cross sum reveals it, and all three worked plots here run counterclockwise and return positive sums. That built-in check is why surveyors, drafters and students rely on the method rather than guessing from a sketch. This page shows the formula itself, step-by-step workings for each example, the worked examples above, and the sources behind them, so you can follow every number from the first coordinate to the final area.

Worked examples

House-shaped plot: 10 wide, walls 6, gable peak 10

(0 · 0 · 10 · 0 · 10 · 6 · 5 · 10 · 0 · 6)

Polygon area80.00
Perimeter34.81
Centroid x5.00
Centroid y4.08
Vertex ordercounterclockwise

Irregular five-sided survey parcel

(1 · 1 · 8 · 2 · 7 · 7 · 3 · 8 · 0 · 4)

Polygon area39.50
Perimeter24.46
Centroid x4.04
Centroid y4.26
Vertex ordercounterclockwise

Square traced with the first point repeated at the end

(0 · 0 · 4 · 0 · 4 · 4 · 0 · 4 · 0 · 0)

Polygon area16.00
Perimeter16.00
Centroid x2.00
Centroid y2.00
Vertex ordercounterclockwise

How the shoelace formula is calculated

The shoelace formula calculator does its work by walking around the boundary of a shape and adding up a single quantity at every vertex. For each pair of neighboring points, it multiplies the x-coordinate of the first by the y-coordinate of the second, then subtracts the x-coordinate of the second times the y-coordinate of the first. Written compactly, that term is x_i × y_(i+1) − x_(i+1) × y_i. Add those terms around the whole loop and you have the cross sum. Halve it and you have the area.

The name comes from the crisscross pattern those products make when the coordinates are stacked in two columns and the diagonals are drawn in — the lines resemble the lacing of a shoe. The arithmetic itself is plain multiplication and subtraction, with no trigonometry and no square roots, which is why the method handles awkward polygons as easily as tidy ones. A house-shaped plot 10 wide, with walls 6 high and a gable peak at 10, gives a cross sum whose half is an area of 80.00 square units; the same plot has a perimeter of 34.81. An irregular five-sided parcel works out to 39.50 square units, with its balance point at (4.04, 4.26).

Two habits keep the result correct. First, list the vertices in order around the boundary — clockwise or counterclockwise, but never jumping across the shape — and return to the starting point at the end. Second, watch the sign. The sign of the cross sum tells the direction of travel: all three worked plots run counterclockwise and return positive sums. If your sum comes out negative, you traced the boundary the other way; the size of the area is unchanged, so take the absolute value. The formula also closes the loop itself, so repeating the first point at the end is harmless: even a plain 4 × 4 square traced with the first point repeated returns exactly 16.00.

When you use a shoelace formula calculator, the numbers you type in are the only input it needs. Enter each vertex as an (x, y) pair in boundary order, keep the units consistent, and read the area in square units. The cross sum is the intermediate value worth checking — if it is negative, you know the points were entered in the opposite direction, and if the area looks implausible, a misordered vertex is the usual culprit. Because the method reduces every edge to one product pair, it scales from a four-corner square to a many-sided parcel without changing procedure.

  • Multiply x_i by y_(i+1), then subtract x_(i+1) multiplied by y_i for each pair of neighboring vertices.
  • Add every term around the loop to get the cross sum, then divide by two to get the area.
  • List vertices in boundary order and repeat the first point at the end; the formula closes the loop itself.
  • A negative cross sum means the boundary was traced in the opposite direction — the area's size is unaffected.
The house plot's cross sum, halved, gives an area of 80.00 square units — and its perimeter is 34.81.

Why vertex order matters

The shoelace formula does not just add up the coordinates you feed it — it depends on the order you feed them in. The vertices have to walk the boundary of the shape in sequence, each one connected to the next, with the last connected back to the first. Treated that way, the shoelace formula calculator is simply summing cross products of neighboring vertex pairs, and that sum only makes sense when neighbors really are neighbors on the outline. List the corners in any other sequence and the arithmetic still runs, but it is no longer measuring your plot.

The sign of the cross sum is the formula's way of reporting direction. For all three worked plots on this page, the vertices run counterclockwise and the sum comes back positive. That is not a coincidence of these examples; it is the convention this page uses, and it is why a positive result is the expected reading here. Trace the same boundary clockwise and the magnitude stays the same while the sign flips. So the sign is not an error to be corrected away — it is information about which way you walked the outline.

Order is not a cosmetic detail. Take the irregular five-sided parcel that works out to 39.50 square units with its balance point at (4.04, 4.26). Those figures come from visiting its five corners in boundary order. Scramble that order — swap two non-adjacent vertices, say — and the formula will happily return a number, but the number will not describe the parcel. The cross terms now pair points that are not joined by an edge, so the 39.50 result is corrupted. The same caution applies to the house-shaped plot, 10 wide with walls 6 and a gable peak at 10, whose area is 80.00 square units and perimeter 34.81: those values assume the corners are listed as you would walk the outline, not in the order they happen to appear in a table.

One convenience is built in. You do not need to repeat the first point at the end of your list. Even a plain 4 x 4 square traced with the first point repeated returns exactly 16.00 — the formula closes the loop itself. Repeating the starting vertex is harmless, but it is redundant, and it is not what keeps your result correct. The order of the vertices is.

  • Walk the vertices in boundary order, each connected to the next and the last back to the first.
  • A positive cross sum means the vertices run counterclockwise, as in all three worked plots here.
  • A clockwise trace gives the same magnitude with the opposite sign — the sign reports direction.
  • Scrambling vertex order breaks the 39.50 parcel result, because the formula then pairs points that are not joined by an edge.
  • Repeating the first point is unnecessary: a 4 x 4 square with the first point repeated still returns exactly 16.00.
Vertex order is not a formatting choice: the shoelace formula measures the polygon you describe by the sequence of its corners, so keep them in boundary order and read the sign as direction.

Perimeter and centroid from the same loop

The same walk around a boundary that gives you area also gives you two other measurements at no extra cost: the perimeter and the centroid. A shoelace formula calculator that reports only the area is leaving useful results on the table, because the coordinates you type in already contain everything needed to compute all three. The perimeter comes from the distances between consecutive vertices, and the centroid — the balance point surveyors report alongside the area — comes from a weighted average of those same vertices.

Take the house-shaped plot: 10 wide, walls 6 high, with the gable peak at 10. Tracing its outline once and summing the straight-line distances between neighboring points gives a perimeter of 34.81. The area for that same plot is 80.00 square units. The centroid, the point where the shape would balance if it were cut from a sheet of uniform material, lands at (5.00, 4.08). Notice that the x-coordinate sits at 5.00, exactly half of the 10-unit width — what you would expect from a symmetric house profile — while the y-coordinate of 4.08 sits above the midpoint of the walls, pulled upward by the gable.

The irregular five-sided parcel shows the same idea on a shape with no symmetry to lean on. Its area works out to 39.50 square units, and its balance point falls at (4.04, 4.26). Neither number is obvious from looking at the coordinates, which is exactly why running the loop through a shoelace formula calculator is worth the effort: the arithmetic handles the weighting that the eye cannot.

The method is also self-checking. Even a plain 4 x 4 square traced with the first point repeated at the end returns exactly 16.00 — the formula closes the loop itself, so the repeated point does not inflate the result. And the sign of the cross sum tells you the direction of travel: all three worked plots run counterclockwise and return positive sums. If your own traverse comes back negative, you traced the boundary clockwise; the magnitude of the area is unchanged.

One caution: the centroid and perimeter describe the boundary you actually entered, so a mis-ordered vertex will distort all three results together. Check the sign first, confirm the repeated closing point, and the area, perimeter and balance point should agree with your sketch.

  • House plot (10 wide, walls 6, gable peak at 10): area 80.00, perimeter 34.81, centroid (5.00, 4.08).
  • Irregular five-sided parcel: area 39.50, balance point (4.04, 4.26).
  • 4 x 4 square with the first point repeated: returns exactly 16.00.
  • All three worked plots run counterclockwise and return positive cross sums.
The sign of the cross sum is your direction check: counterclockwise traces return positive sums, and a negative result means you walked the boundary clockwise.

Reading your result

The number at the end of a shoelace formula calculator run is the area, but it is not the first thing worth checking. Start with the vertex order line. The shoelace method adds and subtracts cross products in the exact sequence the points are listed, so if one vertex sits out of order, the arithmetic still produces a number — just the wrong one. A surprising vertex order line is your warning that a point was entered out of sequence, and the area shown should not be trusted until the list is corrected.

The sign of the cross sum is the quickest sanity check on direction. The formula returns a positive sum when the vertices run counterclockwise and a negative one when they run clockwise. All three worked plots in this calculator run counterclockwise and return positive sums, so a negative result on a plot you expected to trace the same way is a signal to recheck the order rather than a reason to flip a sign by hand. The magnitude is the area either way; the sign only tells you which way the boundary was walked.

After the order and sign, read the area against the shape you pictured. A house-shaped plot 10 wide, with walls 6 and a gable peak at 10, returns 80.00 square units and a perimeter of 34.81. An irregular five-sided parcel works out to 39.50 square units, with its balance point at (4.04, 4.26). Even a plain 4 x 4 square traced with the first point repeated returns exactly 16.00 — the formula closes the loop itself, so repeating the starting vertex does no harm and is a reasonable habit. If your result is far from a rough estimate you can make from the coordinates, the vertex order line is the first place to look.

The perimeter and balance point fields answer different questions from the area, and they should be read on their own terms. The perimeter follows the path from point to point, including the closing segment back to the start, which is why the house plot comes to 34.81 rather than a simple sum of the wall lengths. The balance point is the centroid of the enclosed region, given as an (x, y) pair — for the five-sided parcel, (4.04, 4.26). Neither value rescues a wrong vertex order, so confirm the sequence and the positive cross sum before you rely on any of the three outputs.

  • Check the vertex order line before the area — an out-of-sequence point still yields a number, but the wrong one.
  • A positive cross sum means counterclockwise vertices; all three worked plots run counterclockwise and return positive sums.
  • House-shaped plot (10 wide, walls 6, gable peak at 10): 80.00 square units, perimeter 34.81.
  • Irregular five-sided parcel: 39.50 square units, balance point at (4.04, 4.26).
  • A 4 x 4 square traced with the first point repeated returns exactly 16.00 — the formula closes the loop itself.
Read the vertex order line first. If it surprises you, a point was entered out of sequence and the area is wrong even though a number appeared.

FAQs

What is the shoelace formula?

The shoelace formula finds a polygon's area from its vertex coordinates alone. You cross-multiply consecutive coordinate pairs, sum those products, and halve the total. Applied to the house-shaped plot, this method returns an area of 80.00. No side lengths or angles are needed, which makes it convenient when you already have surveyed coordinates.

Do the points have to be in order?

Yes. You must walk the boundary in sequence, connecting each vertex to the next around the shape. Out-of-order points break the sum, so the calculation no longer reflects the true boundary. For example, the irregular parcel's correct sequence produced 39.50, and scrambled points would not reproduce that result.

What does the sign of the result mean?

The sign tells you the direction the vertices run. A positive result means they go counterclockwise, and a negative result means clockwise. The area itself is the absolute value of the result, so direction does not change the size. For the square, the area is 16.00 regardless of which way you traverse it.

Can I use it for land surveying?

Yes. The shoelace formula is the standard coordinate method for parcel area. From a single traverse of the boundary, it returns both the enclosed area and the centroid. For the house-shaped plot, that means an area of 80.00 along with the centroid coordinates, all from the same set of vertex points.

What is the centroid it reports?

The centroid is the polygon's balance point, the average position of its area. It is reported as a coordinate pair alongside the area. For the house-shaped plot the centroid is (5.00, 4.08), and for the square it is (2.00, 2.00). This point is useful for labeling or placing a marker on a parcel.

Does it work for shapes with more sides?

Yes. The same loop extends to any number of vertices, so the formula is not limited to triangles or quadrilaterals. This calculator handles five vertices, which is the commonest case for survey parcels. You simply add each consecutive pair to the running sum and halve the final total as usual.

Sources

Related calculators

Regular Polygon Area Calculator
Area, perimeter, apothem and circumradius of a regular polygon from its side count and side length.
Brahmagupta's Formula Calculator
Area of a cyclic quadrilateral from its four sides with Brahmagupta's formula, plus circumradius and both diagonals (Ptolemy-checked).
Distance Formula Calculator
Distance between two points on the coordinate plane, with the midpoint and both axis changes — Pythagoras, done for you.