In short

A 3 \times 3 determinant with coordinates as entries can compute the area of a triangle, test whether three points are collinear, find the equation of a line through two points, and even produce equations of circles and conics. The determinant packages the geometry into algebra — cleanly, and without special cases.

Three villages — Rampur, Sitapur, and Lakshmipur — sit at coordinates (1, 2), (4, 6), and (7, 4) on a survey map. A government engineer needs the area of the triangular region connecting them, to estimate the cost of laying a road network. She could use the base-height formula from school, but which side is the base? And how does she compute the perpendicular height to that base from the third vertex?

There is a far cleaner method. Write the coordinates into a 3 \times 3 determinant:

\text{Area} = \frac{1}{2} \left| \begin{vmatrix} 1 & 2 & 1 \\ 4 & 6 & 1 \\ 7 & 4 & 1 \end{vmatrix} \right|

Expand this determinant (along the third column, say), and you get a single number. Half its absolute value is the area. No base, no height, no perpendicular — just coordinates plugged into a formula.

That is what this article is about: the surprising power of determinants as a tool for coordinate geometry.

Area of a triangle using determinants

Given three points P_1 = (x_1, y_1), P_2 = (x_2, y_2), P_3 = (x_3, y_3), the area of the triangle they form is:

Area of a triangle

\text{Area} = \frac{1}{2} \left| \begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix} \right|

The absolute value ensures the area is non-negative regardless of the order in which the points are listed.

Where the formula comes from

The derivation starts from the coordinate geometry formula for the area of a triangle with vertices (x_1, y_1), (x_2, y_2), (x_3, y_3):

\text{Area} = \frac{1}{2} |x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2)|

This is a standard result you may have seen derived using the "shoelace" method — splitting the triangle into vertical strips.

Now expand the determinant \begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix} along the third column:

= 1 \cdot \begin{vmatrix} x_2 & y_2 \\ x_3 & y_3 \end{vmatrix} - 1 \cdot \begin{vmatrix} x_1 & y_1 \\ x_3 & y_3 \end{vmatrix} + 1 \cdot \begin{vmatrix} x_1 & y_1 \\ x_2 & y_2 \end{vmatrix}
= (x_2 y_3 - x_3 y_2) - (x_1 y_3 - x_3 y_1) + (x_1 y_2 - x_2 y_1)
= x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2)

Why: expanding along the third column is the natural choice because every entry in that column is 1, which simplifies the cofactors. The result is exactly the coordinate geometry formula for twice the signed area.

The determinant gives the signed area — positive if the vertices go anticlockwise, negative if clockwise. The absolute value strips the sign, leaving the area.

Area of a quadrilateral

For a quadrilateral with vertices P_1, P_2, P_3, P_4 (in order), split it into two triangles along a diagonal — say P_1 P_3. The area is the sum of the two triangle areas:

\text{Area}_{quad} = \frac{1}{2} \left| \begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix} \right| + \frac{1}{2} \left| \begin{vmatrix} x_1 & y_1 & 1 \\ x_3 & y_3 & 1 \\ x_4 & y_4 & 1 \end{vmatrix} \right|

For a convex quadrilateral, this always works regardless of which diagonal you choose. The determinant approach scales naturally to any polygon by triangulating from a single vertex.

Condition for collinearity

Three points are collinear (they lie on the same straight line) if and only if the triangle they form has zero area. From the area formula, this means:

Condition for collinearity

Three points (x_1, y_1), (x_2, y_2), (x_3, y_3) are collinear if and only if

\begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix} = 0

Why: zero area means the three points do not form a triangle — they are squeezed onto a single line. The determinant captures this exactly: it vanishes when the three rows are linearly dependent, which is the algebraic way of saying the points are collinear.

This is more than just a restatement of the area formula. The determinant form is cleaner — no fractions, no absolute value. The condition is simply: determinant equals zero. This makes it easy to use in proofs and in problems where you are checking a geometric property.

For example, are the points (1, 5), (3, 9), (5, 13) collinear?

\begin{vmatrix} 1 & 5 & 1 \\ 3 & 9 & 1 \\ 5 & 13 & 1 \end{vmatrix} = 1(9 - 13) - 5(3 - 5) + 1(39 - 45) = -4 + 10 - 6 = 0

Yes, the determinant is zero, so the points are collinear. You can verify: they all lie on the line y = 2x + 3.

Equation of a line through two points

Here is where the determinant becomes a tool for writing equations, not just checking conditions.

Suppose you want the equation of the line through (x_1, y_1) and (x_2, y_2). An arbitrary point (x, y) lies on this line if and only if it is collinear with the two given points. The collinearity condition gives the equation directly:

Equation of a line through two points

The line through (x_1, y_1) and (x_2, y_2) has equation

\begin{vmatrix} x & y & 1 \\ x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \end{vmatrix} = 0

Why this works

The determinant is zero precisely when the three points (x, y), (x_1, y_1), (x_2, y_2) are collinear — and a point (x, y) is collinear with two fixed points exactly when it lies on the line through them.

Expand the determinant:

x(y_1 - y_2) - y(x_1 - x_2) + (x_1 y_2 - x_2 y_1) = 0

This is a linear equation in x and y — exactly the equation of a straight line. You can rearrange it into slope-intercept form or any other standard form.

For example, the line through (2, 3) and (5, 9):

\begin{vmatrix} x & y & 1 \\ 2 & 3 & 1 \\ 5 & 9 & 1 \end{vmatrix} = x(3 - 9) - y(2 - 5) + (18 - 15) = -6x + 3y + 3 = 0

Dividing by 3: -2x + y + 1 = 0, or y = 2x - 1.

Condition for concurrency

Three lines are concurrent if they all pass through a single point. Suppose the three lines are:

a_1 x + b_1 y + c_1 = 0
a_2 x + b_2 y + c_2 = 0
a_3 x + b_3 y + c_3 = 0

Condition for concurrency

Three lines a_i x + b_i y + c_i = 0 (for i = 1, 2, 3) are concurrent if and only if

\begin{vmatrix} a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \\ a_3 & b_3 & c_3 \end{vmatrix} = 0

Why the determinant condition works

If the three lines are concurrent, they meet at some point (p, q). Then:

a_1 p + b_1 q + c_1 = 0
a_2 p + b_2 q + c_2 = 0
a_3 p + b_3 q + c_3 = 0

This is a system of three linear equations in p and q — but it's actually saying that the vector (p, q, 1) is a non-trivial solution to:

\begin{pmatrix} a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \\ a_3 & b_3 & c_3 \end{pmatrix} \begin{pmatrix} p \\ q \\ 1 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \\ 0 \end{pmatrix}

A homogeneous system has a non-trivial solution if and only if the determinant of the coefficient matrix is zero.

Why: three lines in a plane can be concurrent (all meet at one point), form a triangle (each pair meets at a different point), or include parallel lines. The determinant being zero picks out exactly the first case — the rows are linearly dependent, meaning one line's equation is a combination of the other two, which forces all three to share a common point.

A quick check

Are the lines x + y - 1 = 0, 2x - y - 5 = 0, and x - 2y + 2 = 0 concurrent?

\begin{vmatrix} 1 & 1 & -1 \\ 2 & -1 & -5 \\ 1 & -2 & 2 \end{vmatrix}

Expand along the first row:

= 1(-2 - 10) - 1(4 + 5) + (-1)(-4 + 1) = -12 - 9 + 3 = -18

The determinant is -18 \neq 0, so the lines are not concurrent — they form a triangle instead. Each pair of lines meets at a different point, and no single point lies on all three.

Now try three lines that are concurrent: x + y = 3, 2x - y = 0, and x - 2y = -3. In standard form these are x + y - 3 = 0, 2x - y + 0 = 0, and x - 2y + 3 = 0.

\begin{vmatrix} 1 & 1 & -3 \\ 2 & -1 & 0 \\ 1 & -2 & 3 \end{vmatrix}

Expand along the first row:

= 1(-3 - 0) - 1(6 - 0) + (-3)(-4 + 1) = -3 - 6 + 9 = 0

The determinant is zero — the lines are concurrent. You can verify: solving the first two equations gives x = 1, y = 2, and plugging into the third: 1 - 4 + 3 = 0. All three lines pass through (1, 2).

The concurrency condition is especially useful in triangle geometry. The three medians of a triangle are concurrent (they meet at the centroid). The three altitudes are concurrent (they meet at the orthocentre). The three perpendicular bisectors are concurrent (they meet at the circumcentre). In each case, writing the three lines in general form and checking the determinant condition gives a proof of concurrency — often more compact than the geometric argument.

Equation of a circle through three points

The determinant trick generalises beyond lines. Three non-collinear points determine a unique circle. If the three points are (x_1, y_1), (x_2, y_2), (x_3, y_3), the equation of the circle through them can be written as:

\begin{vmatrix} x^2 + y^2 & x & y & 1 \\ x_1^2 + y_1^2 & x_1 & y_1 & 1 \\ x_2^2 + y_2^2 & x_2 & y_2 & 1 \\ x_3^2 + y_3^2 & x_3 & y_3 & 1 \end{vmatrix} = 0

This is a 4 \times 4 determinant in which the first row has the variables x and y (and x^2 + y^2). When you expand it, you get a linear expression in x^2 + y^2, x, and y — which is exactly the general equation of a circle: x^2 + y^2 + Dx + Ey + F = 0.

Why: the determinant is zero when the point (x, y) lies on the same circle as the three given points. Each row encodes one point's relationship to the general circle equation, and the determinant vanishing means all four points satisfy the same circle equation.

A concrete circle example

Find the equation of the circle through (0, 0), (2, 0), and (0, 4).

\begin{vmatrix} x^2 + y^2 & x & y & 1 \\ 0 & 0 & 0 & 1 \\ 4 & 2 & 0 & 1 \\ 16 & 0 & 4 & 1 \end{vmatrix} = 0

Expand along the second row. Since three entries in row 2 are zero, only the (2, 4) cofactor survives (with the appropriate sign):

-1 \cdot \begin{vmatrix} x^2 + y^2 & x & y \\ 4 & 2 & 0 \\ 16 & 0 & 4 \end{vmatrix} = 0

Expand this 3 \times 3 determinant along the third column:

= -1 \cdot \left[ y(0 - 32) - 0 + 4(x^2 + y^2 - 2x) \cdot 1 \right]

Working through the cofactors carefully:

y \begin{vmatrix} 4 & 2 \\ 16 & 0 \end{vmatrix} - 0 + 4 \begin{vmatrix} x^2 + y^2 & x \\ 4 & 2 \end{vmatrix}
= y(0 - 32) + 4(2x^2 + 2y^2 - 4x) = -32y + 8x^2 + 8y^2 - 16x

Setting the whole expression (with the leading -1) to zero:

-(-32y + 8x^2 + 8y^2 - 16x) = 0
8x^2 + 8y^2 - 16x - 32y = 0

Dividing by 8: x^2 + y^2 - 2x - 4y = 0, or (x - 1)^2 + (y - 2)^2 = 5. The circle has centre (1, 2) and radius \sqrt{5}.

You can verify: the origin (0, 0) gives 1 + 4 = 5; the point (2, 0) gives 1 + 4 = 5; the point (0, 4) gives 1 + 4 = 5. All three points lie on the circle, as required.

The same approach works for conics. Five points determine a unique conic (ellipse, parabola, or hyperbola), and a 6 \times 6 determinant using x^2, xy, y^2, x, y, 1 as the first row produces the conic's equation.

Worked examples

Example 1: Area of a triangle and collinearity test

Find the area of the triangle with vertices A = (2, 1), B = (6, 3), C = (4, 7).

Step 1. Set up the determinant.

\Delta = \begin{vmatrix} 2 & 1 & 1 \\ 6 & 3 & 1 \\ 4 & 7 & 1 \end{vmatrix}

Why: each row holds one vertex's coordinates, with 1 appended as the third entry. The absolute value of this determinant, divided by 2, gives the area.

Step 2. Expand along the third column (since every entry there is 1, the arithmetic is simplest).

\Delta = 1 \cdot \begin{vmatrix} 6 & 3 \\ 4 & 7 \end{vmatrix} - 1 \cdot \begin{vmatrix} 2 & 1 \\ 4 & 7 \end{vmatrix} + 1 \cdot \begin{vmatrix} 2 & 1 \\ 6 & 3 \end{vmatrix}
= (42 - 12) - (14 - 4) + (6 - 6) = 30 - 10 + 0 = 20

Why: the 2 \times 2 determinants are straightforward cross-multiplications. The signs alternate as +, -, + because of the cofactor sign pattern.

Step 3. Compute the area.

\text{Area} = \frac{1}{2}|\Delta| = \frac{1}{2} \times 20 = 10 \text{ square units}

Why: the determinant gives twice the signed area. The factor of \frac{1}{2} and the absolute value recover the actual area.

Step 4. Interpret the sign. The determinant is positive (+20), which means the vertices A \to B \to C go anticlockwise. If you had listed them as A \to C \to B, the determinant would have been -20 — same area, opposite orientation.

Result: The area of triangle ABC is 10 square units.

Triangle $ABC$ with vertices at $(2, 1)$, $(6, 3)$, and $(4, 7)$. The area — 10 square units — is read directly from the determinant, with no need to compute a base or a height.

The picture confirms the answer: the triangle sits in a region roughly 4 units wide and 6 units tall, so an area of 10 (less than \frac{1}{2} \times 4 \times 6 = 12, the bounding rectangle) is geometrically reasonable.

Example 2: Equation of a line through two points

Find the equation of the line passing through (1, 4) and (5, 2).

Step 1. Set up the determinant with (x, y) as the variable point.

\begin{vmatrix} x & y & 1 \\ 1 & 4 & 1 \\ 5 & 2 & 1 \end{vmatrix} = 0

Why: the point (x, y) lies on the line through (1, 4) and (5, 2) exactly when these three points are collinear — when the determinant is zero.

Step 2. Expand along the first row.

x \begin{vmatrix} 4 & 1 \\ 2 & 1 \end{vmatrix} - y \begin{vmatrix} 1 & 1 \\ 5 & 1 \end{vmatrix} + 1 \begin{vmatrix} 1 & 4 \\ 5 & 2 \end{vmatrix} = 0
x(4 - 2) - y(1 - 5) + (2 - 20) = 0
2x + 4y - 18 = 0

Why: expanding along the first row is natural here because x and y appear in that row, giving a linear equation directly.

Step 3. Simplify by dividing by 2:

x + 2y - 9 = 0

Or equivalently: x + 2y = 9.

Step 4. Verify. At (1, 4): 1 + 8 = 9. At (5, 2): 5 + 4 = 9. Both points satisfy the equation.

Result: The equation of the line is x + 2y = 9.

The line $x + 2y = 9$ passes through $(1, 4)$ and $(5, 2)$. The slope is $-\frac{1}{2}$: for every 2 units right, the line drops 1 unit. The determinant method produced this equation without ever computing the slope explicitly.

The determinant approach is especially useful when a problem gives you two points and asks for the line in general form ax + by + c = 0. You get that form directly, without the intermediate step of computing the slope.

Common confusions

Going deeper

If you came here to learn the area formula, the collinearity test, and the line equation, you have them — you can stop here. The rest of this section is for readers who want the connection to oriented area, the general conic determinant, and the projective viewpoint.

Signed area and orientation

The determinant \begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix} gives twice the signed area of the triangle. The sign encodes the orientation of the vertices:

The signed area is more fundamental than the unsigned area. It is an invariant under translation (shifting all points by the same vector does not change the determinant) and changes sign under reflection. These properties make it central to computational geometry, where algorithms often need to know not just the size of a region but also whether a sequence of points turns left or right.

The general conic through five points

A conic (ellipse, parabola, or hyperbola) has the general equation:

Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0

This has six coefficients, but only five ratios matter (you can divide through by any non-zero coefficient). So five points determine a unique conic, and the equation can be written as:

\begin{vmatrix} x^2 & xy & y^2 & x & y & 1 \\ x_1^2 & x_1 y_1 & y_1^2 & x_1 & y_1 & 1 \\ x_2^2 & x_2 y_2 & y_2^2 & x_2 & y_2 & 1 \\ x_3^2 & x_3 y_3 & y_3^2 & x_3 & y_3 & 1 \\ x_4^2 & x_4 y_4 & y_4^2 & x_4 & y_4 & 1 \\ x_5^2 & x_5 y_5 & y_5^2 & x_5 & y_5 & 1 \end{vmatrix} = 0

Expanding this 6 \times 6 determinant along the first row gives a second-degree equation in x and y — the equation of the conic. The circle is a special case where the xy coefficient is zero and the x^2 and y^2 coefficients are equal.

The projective viewpoint

The column of 1s in the area determinant is not arbitrary. It comes from homogeneous coordinates: the point (x, y) in the plane is represented as (x, y, 1) in projective space. The determinant \begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix} is the determinant of a matrix whose rows are the homogeneous coordinates of three points.

In projective geometry, this determinant vanishes when the three projective points are "dependent" — lying on a single projective line. This is the projective version of collinearity, and it works even for points at infinity (where the third coordinate is 0 instead of 1). The column of 1s is not padding; it is the mathematics of projection.

Cross-ratio and determinants

The cross-ratio of four collinear points, a fundamental invariant in projective geometry, can also be expressed using determinants. If P_1, P_2, P_3, P_4 are four points on a line with homogeneous coordinates as column vectors, then the cross-ratio is:

(P_1 P_2; P_3 P_4) = \frac{[P_1 P_3][P_2 P_4]}{[P_1 P_4][P_2 P_3]}

where [P_i P_j] denotes the 2 \times 2 determinant formed by the homogeneous coordinates. The cross-ratio is the unique quantity preserved by all projective transformations — it is the projective geometer's version of distance.

Brahmagupta's formula for the area of a cyclic quadrilateral and Bhaskara II's work on cyclic polygons both relate, at their core, to determinantal expressions of the kind developed in this article. The coordinates change, but the underlying algebraic structure — rows of a matrix encoding points, and the determinant encoding their relationship — remains the same.

Where this leads next

Determinants in geometry connect to both linear algebra and coordinate geometry. The natural next articles: