Cramer’s Rule Calculator
Solve a system of 2 to 4 linear equations with Cramer’s rule from an augmented matrix, with each determinant shown. For a system Ax = b with det A ≠ 0, xⱼ = det(Aⱼ)/det(A), where Aⱼ is A with column j replaced by b. Example: with augmented matrix, coefficients then constant 2 1 -1 8 / -3 -1 2 -11 / -2 1 2 -3, the result is Solution = x = 2 y = 3 z = -1.
Last updated · By S. Dilshan · Runs in your browser, nothing is uploaded
Step-by-Step Solution
How do you use the Cramer’s Rule Calculator?
Enter the augmented matrix, with the coefficients followed by the constant on each row: for 2x + y − z = 8 write 2 1 -1 8. The calculator computes the determinant of the coefficient matrix, replaces each column with the constants in turn and divides.
What formula does the Cramer’s Rule Calculator use?
For a system Ax = b with det A ≠ 0, xⱼ = det(Aⱼ)/det(A), where Aⱼ is A with column j replaced by b. If det A = 0 the system has no unique solution: it is either inconsistent or has infinitely many solutions.
Worked example: Augmented matrix, coefficients then constant 2 1 -1 8 / -3 -1 2 -11 / -…
The system 2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3 has det A = −1. The replaced-column determinants are −2, −3 and 1, so x = 2, y = 3 and z = −1, which satisfies all three equations.
With the default values the calculator returns Solution = x = 2 y = 3 z = -1; det A = -1; Replaced-column determinants = Dx = -2, Dy = -3, Dz = 1; Check (largest residual) = 0.
Where Is This Calculation Used?
Cramer’s rule is a neat way to solve small systems by hand and to see that a solution exists and is unique exactly when the determinant is non-zero. For larger systems, elimination is far faster, but the formula is important in theory and in symbolic work.
What are the most common mistakes with the Cramer’s Rule Calculator?
- Putting the constants in the wrong column when entering the matrix.
- Using it when det A = 0.
- Replacing a row instead of a column when computing Dⱼ.
What Is the Tested Example for the Default Values?
This example is computed by the same code that powers the calculator above, so you can compare it with your own numbers or a textbook answer.
| Input: Augmented matrix, coefficients then constant | 2 1 -1 8 / -3 -1 2 -11 / -2 1 2 -3 |
|---|---|
| Solution | x = 2 y = 3 z = -1 |
| det A | -1 |
| Replaced-column determinants | Dx = -2, Dy = -3, Dz = 1 |
| Check (largest residual) | 0 |
Where Can You Verify These Formulas?
The definitions and formulas on this page follow standard references. Check them against these sources:
Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.
Frequently Asked Questions
What is Cramer’s rule?
A formula that solves a linear system using ratios of determinants.
When does Cramer’s rule fail?
When the determinant of the coefficient matrix is zero.
How do I enter the equations?
Write each equation as its coefficients followed by the constant, one row per equation.