MathorynMathematical Formula Database

Analytic Geometry

Triangle Area from Coordinates (Shoelace)

The shoelace formula gives the area of a triangle from its vertex coordinates; a result of zero means the points are collinear.

A=12∣x1(y2−y3)+x2(y3−y1)+x3(y1−y2)∣A=\frac{1}{2}\left|x_1(y_2-y_3)+x_2(y_3-y_1)+x_3(y_1-y_2)\right|
LaTeXA=\frac{1}{2}\left|x_1(y_2-y_3)+x_2(y_3-y_1)+x_3(y_1-y_2)\right|

Variables

(xi,yi)(x_i,y_i)
the three vertices

Example

Vertices (0,0), (4,0), (0,3)(0,0),\ (4,0),\ (0,3).

  1. 12∣0+4⋅3+0∣\frac12|0+4\cdot3+0|.

Answer: A=6A=6.

Related formulas