Skip to content
LoveToCalc

Theorem — what does that mean?

Cramer's rule for three equations

Replace one column of the coefficient matrix by the right-hand sides, take the determinant, and divide by the determinant of the coefficients.

In Swedish: Cramers regel för tre ekvationer

Cramer's rule for three equations

The relation

x=d₁b₁c₁d₂b₂c₂d₃b₃c₃a₁b₁c₁a₂b₂c₂a₃b₃c₃

In a system of three linear equations with the coefficient determinant D, each unknown is the determinant with its column replaced by the right-hand sides, divided by D.

x=5

x equals (the determinant with rows (6, 1, 1), (−4, 2, 5) and (27, 5, −1)) divided by (the determinant with rows (1, 1, 1), (0, 2, 5) and (2, 5, −1)), equals −105 divided by (−21), equals 5

Working3 steps

Practice questions

You are given

  • d₁=30
  • b₁=4
  • c₁=3
  • d₂=26
  • b₂=4
  • c₂=5
  • d₃=-24
  • b₃=-2
  • c₃=4
  • a₁=3
  • a₂=3
  • a₃=-1

What the theorem says

For three equations in x, y and z, D is the determinant of the coefficients. Dx is the same determinant with the x-column replaced by the right-hand sides; Dy and Dz replace the y- and z-columns, and y = Dy/D, z = Dz/D. Enter the system’s twelve numbers in the card above: it sets up Dx and D, works out both and divides.

Holds when D ≠ 0. At D = 0 there is no solution or infinitely many, and the rule cannot say which.

Worked example

x + y + z = 6, 2y + 5z = −4, 2x + 5y − z = 27. The coefficients have D = −21. Replacing the columns in turn gives Dx = −105, Dy = −63 and Dz = 42:

Substitute to check: 5 + 3 − 2 = 6, 2·3 + 5·(−2) = −4, and 10 + 15 + 2 = 27.

A second example

2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3 has D = −1, Dx = −2, Dy = −3, Dz = 1. So x = 2, y = 3 and z = −1.

Common mistakes

Frequently asked questions

Is this the best way to solve a 3×3 system? For one unknown it is short. For all three, elimination does less arithmetic, and the 2×2 case shows the same idea in smaller numbers.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
xd₁b₁c₁d₂b₂c₂d₃b₃c₃a₁b₁c₁a₂b₂c₂a₃b₃c₃611−425275−111102525−15

Last reviewed October 11, 2026 ·How pages are reviewed

Calculate it in practice

Linear algebraAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.