Skip to main content
KalkuNet

Linear System Solver, 2 and 3 Unknowns (Cramer's Rule)

Linear systems in two or three unknowns by Cramer's rule.

Calculated in your browserMath
x
2
y
3
Determinant D
-5

Working

  1. 1.D = 2×-1 − 3×1 = -5
  2. 2.Dx = 13×-1 − 3×-1 = -10
  3. 3.Dy = 2×-1 − 13×1 = -15
  4. 4.x = Dx/D = 2, y = Dy/D = 3

Formula and sources

Cramer's rule: x = Dx ÷ D, y = Dy ÷ D (, z = Dz ÷ D) D = determinant of the coefficients; Dx, Dy, Dz = the determinant with that variable's column replaced by the right-hand side D = 0: no unique solution

  • Linear systems and determinants — secondary mathematics

When to use the Linear Systems (2–3 Unknowns)

  • Price word problems

    Two pencils and three books cost $13 and a pencil is $1 cheaper than a book: problems like this become two equations in two unknowns that solve at once.

  • Determinants as the working

    Cramer's rule computes D, Dx, Dy and, for three unknowns, Dz. They are shown so you can check an elimination or substitution done by hand.

  • Three unknowns without the hassle

    Three-unknown systems that take many elimination steps are solved in one go. Choose three unknowns, then fill in the coefficients of all three equations.

  • Spotting systems with no solution

    When the determinant D is zero, the lines are parallel or the same. The calculator says whether there is no solution or infinitely many.

Frequently asked questions

How do I check the answer?

Substitute x, y and z back into each original equation. If every left side equals its right side, the answer is correct.

How does this differ from elimination?

The result is the same. Elimination and substitution remove unknowns one at a time, while Cramer's rule uses determinants and is more compact for two or three unknowns.

Can coefficients be decimals?

Yes. Decimal and negative coefficients are accepted; results are shown to eight decimal places.

How do I solve by elimination?

Make the coefficients of one unknown equal by multiplying the equations, then add or subtract them so that unknown disappears. Solve for the remaining one, then substitute it into one of the original equations.

Does Cramer's rule work for four unknowns?

In theory yes, but large determinants become very long to compute. Bigger systems are usually solved with Gaussian elimination or matrix software.

Related calculators