You find the area of a triangle from its three vertex coordinates with the shoelace formula: area = ½|x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|. Plug the coordinates in, subtract, multiply, take the absolute value, halve it. For A(0,0), B(4,0), C(0,3), that gives ½|0 + 12 + 0| = 6 square units. The boundary condition matters: the order of the vertices doesn't change the answer, but the order of subtraction inside each bracket does, and losing the absolute value flips the sign and produces a negative area.

What the Shoelace Formula Actually Computes Before You Halve It

The expression inside the bars, x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂), is twice the signed area of the triangle when the vertices are named in order. That factor of two is not a rounding quirk. It falls out of the cross product, where the parallelogram spanned by two edge vectors has twice the area of the triangle they enclose. A triangle is half a parallelogram, so the halving in the final formula restores the geometric truth.

Work the numbers on a non-right triangle to see the mechanism. Take P(1,2), Q(4,6), R(7,1). The first bracket is 1 × (6 − 1) = 5, the second is 4 × (1 − 2) = −4, the third is 7 × (2 − 6) = −28. Sum: −27. Absolute value 27, halved, is 13.5 square units. Nothing in the arithmetic knows the triangle is scalene or obtuse. Only the coordinates matter.

Students who have met vectors will recognize the cross-product version of the same idea: ½|u × v|, where u and v are two edge vectors from a shared vertex. For vertices along a line, the signed area is zero and the triangle is degenerate. That's not a separate formula. It's the triangle inequality failing in one direction, expressed in algebra.

A quick sanity check keeps you honest. Compute the three side lengths with the distance formula and apply Heron's formula or drop a perpendicular to a base. Both routes should land on the same number. If they don't, the coordinate ordering or the arithmetic is wrong, and the shoelace result is the one to trust.

The Three-Step Routine, in the Order That Survives Mistakes

1: Label the three vertices A, B, and C and write them as ordered pairs in a row, going around the triangle in either direction. 2: Build the expression x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂), doing the subtractions inside parentheses first. 3: Add the three products, take the absolute value, then multiply by 0.5. Report the result in square units.

The most common failure is mixing x and y inside a bracket, so the routine deliberately writes each factor in full. A second failure is halving twice or not at all. For A(0,0), B(4,0), C(0,3), the raw expression is 12 and the finished area is 6. If you get 24 or 3, you've done one of those two things.

If your vertices come with decimals or fractions, convert to decimals before subtracting, then carry four decimal places through the intermediate products. For a vertex like (2.5, 3.75) the arithmetic is tedious but not different. The sign rule and the halving rule don't change with decimals.

A Shaded Triplet: Reading a Worked Example Off the Paper

Put A(2,3), B(8,3), and C(5,9) on a grid. The base AB runs eight to two, so six units long. The apex C sits three units above the base line y = 3. The triangle is isosceles, area = ½ × 6 × 6 = 18 square units. Now run the shoelace to confirm the shortcut and to see how the terms cancel when two vertices share a y-coordinate.

First bracket: x₁(y₂ − y₃) = 2 × (3 − 9) = −12. Second: 8 × (9 − 3) = 48. Third: 5 × (3 − 3) = 0. Sum 36. Absolute value 36, halved 18. The term that vanished is the one belonging to the apex against a shared base y-value, which is exactly the algebraic mirror of the base-times-height shortcut.

Now reorder the same three vertices as C(5,9), A(2,3), B(8,3). First bracket: 5 × (3 − 3) = 0. Second: 2 × (3 − 9) = −12. Third: 8 × (9 − 3) = 48. Sum 36 again. The sum never changes when you permute the vertices, because swapping two rows of a determinant flips the sign and the absolute value absorbs it. That's the practical takeaway: don't waste effort deciding which vertex "goes first."

Run the same three points through Heron's formula and you get 18 without needing the absolute value. The shoelace beats it on speed for coordinate input, but Heron is the natural check when you already have side lengths from a drawing.

Translating a Figure Five Units Right: Why Areas Stay Fixed

Suppose a worksheet moves A(2,3), B(8,3), C(5,9) five units right, giving A(7,3), B(13,3), C(10,9). The new area is still 18. Work it: 7 × (3 − 9) = −42; 13 × (9 − 3) = 78; 10 × (3 − 3) = 0. Sum 36, halved 18. The individual brackets changed, but the sum didn't, because translation adds a constant to every x-coordinate and the y-subtractions sum to zero. That's why a triangle's area doesn't depend on where it sits relative to the origin.

Rotate the same figure 90° counterclockwise about the origin instead, sending (x, y) to (−y, x). The vertices become (−3,2), (−3,8), (−9,5). First bracket: −3 × (8 − 5) = −9. Second: −3 × (5 − 2) = −9. Third: −9 × (2 − 8) = 54. Sum 36, halved 18, as the invariance predicts.

Now shear it with a transformation like (x, y) → (x + ky, y), and the signed area is preserved when the determinant of the transformation is 1. If you shear by k = 2 on the y-axis with the same vertices, the area changes by the determinant of the matrix, doubled here since the determinant is 2. The formula tracks the transformation exactly, because both the determinant of the coordinate matrix and the triangle area scale by the same factor.

A reflection flips the sign. Mirror A(2,3), B(8,3), C(5,9) across the x-axis to get A'(2,−3), B'(8,−3), C'(5,−9). First bracket: 2 × (−3 − (−9)) = 12. Second: 8 × (−9 − (−3)) = −48. Third: 5 × (−3 + 3) = 0. Sum −36. Halved with the sign included, that's −18, and the absolute value restores 18. The lesson is to take the absolute value once, at the end, not inside each bracket.

Vertices in Three Dimensions Need the Cross Product

When the three points carry a z-coordinate, the shoelace formula no longer applies in one line. The right tool is the vector cross product: take two edge vectors from a shared vertex, compute their cross product, and halve the length of the result. For A(1,0,0), B(0,1,0), and C(0,0,1), the vectors AB = (−1,1,0) and AC = (−1,0,1) have cross product (1,1,1), whose length is √3. The area is √3 / 2 ≈ 0.866 square units.

A second, less familiar route compresses the same calculation into a single determinant: area = ½ × the magnitude of the 3×3 determinant whose rows are the three vertex vectors. For A(1,0,0), B(0,1,0), C(0,0,1), that determinant is 1, and the area is ½ · |1| = 0.5. The two answers disagree because I used a unit tetrahedron here, where the cross-product vector has length √3, and the determinant magnitude gives √3, not 1. Let me correct that: the determinant of the matrix with rows (1,0,0), (0,1,0), (0,0,1) is 1, while the cross-product magnitude for the same three points from origin is √3. These aren't the same measure. The safe procedure is the cross product; use the determinant only when the three points all lie in a plane through the origin, and verify against a second method.

For points in 3D that don't sit at the origin, subtract one vertex from the other two before taking the cross product. That's the general rule and the one to codify. A degenerate triangle in 3D, with all three points collinear in space, gives a cross-product length of zero and area zero.

Reading the Answer Off a Graphics Calculator and a Spreadsheet

On a TI-84 Plus CE, the built-in area( command under the [2nd] [DRAW] menu computes the area inside a triangle you've drawn, but it doesn't read coordinates. The workable route is to enter the three x-values in L1 and the three y-values in L2, run a list-based shoelace in the [2nd] [STAT] menu, and store the result. On a Casio fx-9860GII, the same setup lives under [MENU] → STAT with two lists and a short program. Neither calculator has a single keystroke for the formula.

Spreadsheets make the formula auditable. In Excel or Google Sheets, put the three x-values in A1:A3 and the y-values in B1:B3. The expression =ABS(A1*(B2-B3)+A2*(B3-B1)+A3*(B1-B2))/2 typed into any empty cell returns the area. For A(0,0), B(4,0), C(0,3) that cell shows 6. For decimal vertices, format the output cell to three decimal places and the answer is legible.

A common spreadsheet trap is reusing the Sub Total or Sum function on a range that contains text labels pasted from a worksheet. Remove labels from the numeric range before computing. A second trap is an accidental sign flip from a cell reference shifting by one row, so freeze the formula to the three specific cells rather than a relative range.

Python users have a one-line helper in the standard library. The math module has no built-in triangle-area function, but the expression 0.5 * abs(x1*(y2-y3) + x2*(y3-y1) + x3*(y1-y2)) is exact and survives any float input. For very large coordinates the float representation can lose precision, which matters in survey work; use the fractions module or Decimal for those inputs.

When the Input Is Three Sides, Not Three Coordinates

If a problem hands you side lengths of 6, 8, and 10 rather than vertices, the shoelace formula doesn't apply and Heron's formula replaces it. First compute the semiperimeter s = (6 + 8 + 10)/2 = 12. Then area = √(s(s−a)(s−b)(s−c)) = √(12 · 6 · 4 · 2) = √576 = 24 square units. A 6-8-10 triangle is a right triangle with legs 6 and 8, so the ½ × 6 × 8 = 24 check passes.

The conversion between the two methods is worth knowing. Any set of three side lengths that satisfies the triangle inequality corresponds to a family of triangles with the same area but different vertex placements. If you also have the midpoint of one side and its orientation, you can reconstruct coordinates and then use the shoelace formula.

The degenerate case is a side set like 3, 4, and 7. The semiperimeter is 7, and the product 7 · 4 · 3 · 0 is zero, so the area is zero. That's a flat triangle, and the shoelace formula would return zero for the corresponding degenerate coordinates too. A side set like 2, 3, and 7 isn't a triangle at all, since 2 + 3 < 7, and Heron's formula gives an imaginary result if you push it through. Catch that violation before feeding numbers to a program.

Failures the Formula Will Not Catch For You

The shoelace formula returns a number for any three non-collinear points, and it fails silently in three routine ways. One is using the wrong square unit prefix: a survey measurement in feet gives area in square feet, not acres, and the conversion is 43,560 square feet per acre. A plot with three vertices at (0,0), (100,0), and (0,100) has area 5,000 square feet, which is 0.1148 acres, not 5,000 acres. The unit is part of the answer.

The second failure is treating a projected coordinate pair like a geographic one. Latitude and longitude in degrees are not interchangeable with meters on a grid, and a straight shoelace on degrees gives an answer in "square degrees" that doesn't correspond to real land area. Surveyors reproject to a local coordinate system before applying the formula. A parcel measured in degrees is wrong by an amount that varies with latitude.

The third failure is a self-intersecting ordering. The shoelace formula assumes a simple polygon; a triangle can't self-intersect in the plane with three vertices, but a wrongly copied vertex pattern that duplicates one point and omits another produces a false triangle. For A(0,0), B(4,0), and a mistyped B again instead of C(0,3), the arithmetic returns zero and the mistake looks like a degenerate triangle. Check that the three vertices are distinct before you trust the result.

A fourth, rarer failure is coordinate overflow in floating-point arithmetic. Coordinates above 10¹⁰ starting-dollars-scale values can lose low-order bits when multiplied, and the result drifts. Use a language or tool with exact arithmetic for those inputs; JavaScript's Number type is safe to about 2⁵³, while BigInt handles exact integer arithmetic and the fractions module handles rational values.

Checks That Catch a Wrong Area in Under a Minute

Bounding-box cross-check. Draw the smallest axis-aligned rectangle enclosing the three vertices; its area is (max x − min x)(max y − min y), and the triangle's area must be strictly less than that rectangle. For A(2,3), B(8,3), C(5,9), the box is 6 × 6 = 36, so any answer above 36 or equal to 36 is wrong. The actual 18 is exactly half the box, which is a common outcome for symmetric triangles.

Heron cross-check. Compute the three side lengths from the distance formula and run Heron's formula. For A(2,3), B(8,3), C(5,9), the sides are 6, 6, and √36, so it's an isosceles triangle with sides 6, 6, 6 and area 6√3 ≈ 10.392 in the degenerate alternate case. Careful: the earlier result was 18, and the distance formula gives side lengths of 6 (base), √(3² + 6²) ≈ 6.708 (two equal sides), and the semiperimeter 9.354 leads to the same 18 if you compute it exactly. The quick check is that the three lengths satisfy 6 + 6.708 > 6.708.

Retrace check. Recompute the same three vertices in a fresh order, and if the second run gives a different absolute value, a term was dropped or a sign flipped. This catches about every typo except mislabeling a coordinate.

A one-way reference table gathers the comparisons:

Test Reference value What a wrong answer signals
Bounding box on A(2,3), B(8,3), C(5,9) 36 square units Answer > 36 or = 36
Base–height shortcut on same points 18 square units Any answer ≠ 18
Translation by 5 units right unchanged at 18 Answer ≠ 18
Unit square A(0,0), B(1,0), C(0,1) 0.5 square units Answer not 0.5

FAQ

What is the area formula for a triangle given vertices if the coordinates are all integers?

The formula is ½|x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|, and with integer coordinates the result is either an integer or a half-integer, so it lands on .0 or .5 in decimal notation. A triangle with vertices (0,0), (1,0), (0,1) has area 0.5 exactly, and no rounding is needed. The half-integer behavior comes from the factor of ½ acting on an integer sum, and the absolute value ensures the answer is never negative.

Do the vertex order and the direction I go around the triangle change the area?

No. Any permutation of the three vertices yields the same absolute value in the shoelace formula, because swapping two vertices swaps two rows of a determinant and flips its sign, which the absolute value absorbs. What does change the sign is rewriting each bracket as x₁(y₁ − y₂) instead of x₁(y₂ − y₃), so keep the inside-of-bracket order consistent. The absolute value at the end is the safety net for that slip.

What if the three points lie on a straight line?

The area is zero, and the shoelace expression evaluates to zero exactly when the points are collinear, because the determinant of a matrix with three collinear rows is zero. Take A(0,0), B(1,1), C(2,2): the sum is 0 × (1 − 2) + 1 × (2 − 0) + 2 × (0 − 1) = 0 − 2 + 2 = 0. A zero result is a valid answer here, not a computation error, though it should trigger a check when the worksheet expected a positive area.

Is there a difference between the shoelace formula and the cross-product formula?

They're the same computation written two ways. The shoelace is the cross product expanded into coordinate form in the plane, and the ½|u × v| version in three dimensions is its direct generalization. For the two-dimensional case, the cross-product magnitude equals the absolute value of the shoelace sum, so a question phrased either way gets the same number. The choice is about notation comfort, not about a different algorithm.

How do I compute the area if the vertices are given in latitude and longitude?

Don't apply the shoelace formula directly to degrees. Reproject the three points to a local planar coordinate system first, then use the shoelace in meters, and convert square meters to hectares by dividing by 10,000. A triangle spanning one thousandth of a degree in both directions near 45° latitude covers a different real area than the same span at the equator, so the naive square-degree product is wrong by a latitude-dependent factor.

Can the shoelace formula handle triangles with decimal or fractional vertices?

Yes, and the intermediate arithmetic just carries more digits. Convert fractions to decimals first, work to four or five decimal places through the three brackets, take the absolute value, then halve. A triangle A(0.5, 1.25), B(3.5, 1.25), C(2.0, 4.75) has a base of 3.0 units and a height of 3.5 units, so the area is 5.25 square units, and the shoelace confirms it when the decimals are carried through correctly.

What is the fastest way to catch a sign error in the final answer?

Take the absolute value at the very end, once, after summing the three brackets. If you take the absolute value of each product separately before summing, the calculation is no longer the shoelace formula and the result can be too large. A negative intermediate sum is normal and correct; it just means the vertex order ran clockwise, and the final area is the positive number.

Does the order of the three subtractions affect the answer if I keep the absolute value?

Within a single bracket, the subtraction x₁(y₂ − y₃) must keep the y-coordinates in that named order, but reversing the whole routine to x₁(y₃ − y₂) flips every sign and the absolute value recovers the same area. What breaks things is mixing the two conventions across brackets, which produces a sum that isn't a determinant and isn't zero on collinear points either. Pick one convention, write it down, and stick to it through the three brackets.