Cramers Rule Page

Cramer's Rule Calculator

Solve 2×2 and 3×3 systems of linear equations using Cramer's Rule. Compute the coefficient determinant and the solution values instantly.

2026-05-24T22:58:31.514Z
=
=
Solution will appear here...

Common Cramer's Rule Examples

SystemSolution
2x + y = 5, x - y = 1x = 2, y = 1
3x + 2y = 16, x - y = 2x = 4, y = 2
x + y = 7, 2x - y = 5x = 4, y = 3

What Is Cramer's Rule?

Cramer's Rule is a method for solving a square system of linear equations using determinants. It works when the coefficient matrix is square and its determinant is not zero.

Instead of using elimination, Cramer's Rule computes one determinant for the coefficient matrix and additional determinants for matrices where one column at a time is replaced by the constants column.

This makes it especially useful for small systems like 2×2 and 3×3 problems, where determinant formulas are manageable and easy to verify.

How to Use Cramer's Rule

Step 1: Build the coefficient matrix

Write the coefficients of the variables into a square matrix A and place the constants on the right-hand side.

Step 2: Compute det(A)

Find the determinant of the coefficient matrix. If det(A) = 0, Cramer's Rule does not give a unique solution.

Step 3: Replace columns one at a time

To find x, replace the x-column with the constants column and compute det(X). Repeat for y and z if needed.

Step 4: Divide by det(A)

Use x = det(X) ÷ det(A), y = det(Y) ÷ det(A), and z = det(Z) ÷ det(A).

How to Use the Cramer's Rule Calculator

  1. Select whether you want to solve a 2×2 or 3×3 system.
  2. Enter the coefficients and constants in the augmented layout.
  3. Click Solve Using Cramer's Rule.
  4. Read det(A), the replacement determinants, and the variable values.

Worked Example

Solving a 2×2 system

Given:
2x + y = 5 and x − y = 1
det(A):
det(A) = (2)(-1) - (1)(1) = -3
det(X), det(Y):
det(X) = -6, det(Y) = -3
Result:
x = 2, y = 1

Frequently Asked Questions

When can I use Cramer’s Rule?

You can use it for square systems where the coefficient determinant is not zero.

What if det(A) = 0?

Then the system does not have a unique solution by Cramer’s Rule. It may have no solution or infinitely many solutions.

Is Cramer’s Rule good for large systems?

It is usually best for small systems such as 2×2 and 3×3 because determinant calculations become expensive for larger matrices.

Why are determinants used?

Determinants measure whether the coefficient matrix is invertible and allow each variable to be isolated through replacement determinants.

Does this calculator allow decimals and negatives?

Yes. It accepts valid decimal values, zero, and negative numbers.

What is the difference between det(A) and det(X)?

det(A) is the determinant of the coefficient matrix. det(X) is the determinant after replacing the x-column with the constants column.

Related Tools