Cramer’s Rule Calculator

Quick answer

The Cramer's rule calculator solves a 2 × 2 or 3 × 3 system of linear equations with determinants: each unknown equals |Wₓ| / |W|.

Solution
x = |Wx| / |W| = −33 / −11 = 3 y = |Wy| / |W| = −22 / −11 = 2
|W|
−11
|Wₓ|
−33
|W_y|
−22
x
3
y
2

Cramer’s rule gives an explicit formula for the solution of a square linear system. It is elegant for small systems and for theory, though elimination is faster for large ones.

How to use the Cramer’s Rule Calculator

  1. Number of equations
  2. a₁ (x)
  3. b₁ (y)
  4. c₁ (z)
  5. d₁ (right side)
  6. a₂ (x)
  7. b₂ (y)
  8. c₂ (z)
  9. d₂ (right side)
  10. a₃ (x)
  11. b₃ (y)
  12. c₃ (z)
  13. d₃ (right side)

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

How it works

The determinant of the coefficient matrix W is computed, then the determinants with each column replaced by the constants. If |W| = 0 the system has no unique solution.

Formula

x = |Wₓ| / |W|, y = |W_y| / |W|, z = |W_z| / |W| Wₓ: W with the x-column replaced by the right-hand sides

Worked example

Inputs — Number of equations: Two equations (x, y); a₁ (x): 2; b₁ (y): 3; d₁ (right side): 12; a₂ (x): 3; b₂ (y): -1; d₂ (right side): 7.
Results — Solution = x = |Wx| / |W| = −33 / −11 = 3
y = |Wy| / |W| = −22 / −11 = 2
; |W| = −11; |Wₓ| = −33; |W_y| = −22; x = 3; y = 2.

Key terms

Determinant
A scalar computed from a square matrix.

Frequently asked questions

When can I use Cramer's rule?

When the coefficient determinant is non-zero.

What does

W| = 0 mean? | No solution or infinitely many – Cramer's rule cannot decide which on its own.

Is Cramer's rule efficient?

For 2 × 2 and 3 × 3 systems yes; for larger systems use elimination.

Who was Cramer?

Gabriel Cramer, a Swiss mathematician who published the rule in 1750.

Sources

  1. Wolfram MathWorld – Cramer's rule
  2. MIT OpenCourseWare – 18.06 Linear Algebra (Gilbert Strang)
  3. Jim Hefferon – Linear Algebra (free textbook)

Cite this calculator

Speedy Calculator. (2026). Cramer’s Rule Calculator. Speedy Calculator. https://speedycalculator.com/calculators/math/cramers-rule/