Cramer's Rule Calculator

Solve linear systems with determinants.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter a coefficient matrix and the constants to solve by determinants. For 2x + y = 5 and x + 3y = 6, det A = 5, so x = 1.8 and y = 1.4.

How to use

1
Step 1
Type the coefficient matrix, one row per line.
2
Step 2
Type the constants on one line.
3
Step 3
Press Calculate.

How it works

Each unknown is a ratio of determinants: xᵢ = det(Aᵢ) ÷ det(A), where Aᵢ is A with column i swapped for the constants. It fails when det(A) = 0, because the system is then dependent or inconsistent.

xᵢ = det(Aᵢ) ÷ det(A)

Worked example

Three unknowns

Input
[1 1 1; 2 −1 1; 1 2 −1], constants 6 3 2
Output
x₁ = 1, x₂ = 2, x₃ = 3
Walkthrough
Check row by row: 1+2+3 = 6, 2−2+3 = 3 and 1+4−3 = 2.

Limitations

  • The matrix must be square.
  • If det A = 0 the tool says there is no unique solution.

Questions

Solve 2x + y = 5, x + 3y = 6 by Cramer's rule.
x = 1.8, y = 1.4, from det A = 5.
What if the determinant is zero?
Cramer's rule cannot be used; the system has none or infinitely many solutions.
Is it practical for large systems?
No, for more than about 3 unknowns elimination is faster; Cramer's rule is for small systems and theory.

Features

  • 2×2 and 3×3 systems
  • Determinant shown
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Solving an equation with variables on both sides

    Khan Academy

    Classic linear solve pattern for algebra calculators.

    Watch on YouTube
  • Solving a consecutive integer problem

    Khan Academy

    Word-problem setup that feeds equation tools.

    Watch on YouTube
  • Solving Equations

    Math is Fun

    Balance-scale approach for linear equation tools.

  • Polynomials

    Math is Fun

    Vocabulary for polynomial simplify and factor tools.