Cramer's Rule Calculator
Work out the exact solution of a square linear system by determinants from coefficient matrix (rows on separate lines), right-hand side, comma separated. Xᵢ = det(Aᵢ) ÷ det(A), where Aᵢ replaces column i with b, and the page prints the substitution so the result can be checked by hand.
Cramer's Rule Calculator
Work out the exact solution of a square linear system by determinants from coefficient matrix (rows on separate lines), right-hand side, comma separated. Xᵢ = det(Aᵢ) ÷ det(A), where Aᵢ replaces column i with b, and the page prints the substitution so the result can be checked by hand.
How this page computes
Xᵢ = det(Aᵢ) ÷ det(A), where Aᵢ replaces column i with b
Cramer's rule divides by det(A). At zero the system is either inconsistent or has infinitely many solutions, and neither is a vector of numbers.
Every determinant is exact, so the solution prints as a rational vector rather than a rounded one.
The calculation runs entirely in this browser tab; nothing is uploaded.
Cramer's Rule Calculator computes the exact solution of a square linear system by determinants. Xᵢ = det(Aᵢ) ÷ det(A), where Aᵢ replaces column i with b. The page prints the rule, the numbers substituted into it and the result, so the arithmetic can be checked by hand.
Cramer's rule divides by det(A). At zero the system is either inconsistent or has infinitely many solutions, and neither is a vector of numbers. Pressed with coefficient matrix 2 1; 1 3, right-hand side, comma separated 5, 10, it answers: Determinant = 5
How to use Cramer's Rule Calculator
Enter coefficient matrix 2 1; 1 3, right-hand side, comma separated 5, 10, then press Run: the page evaluates the exact solution of a square linear system by determinants and prints every line of the working. Typed input is read exactly as written, and a blank field is refused with its name.
Read the first line as the answer and the lines below it as the substitution. If a value is out of range the page refuses it by field and reason instead of printing a number.
With coefficient matrix 2 1; 1 3, right-hand side, comma separated 5, 10, the answer is Determinant = 5.
Why it refuses a zero determinant
Cramer's rule divides by det(A). At zero the system is either inconsistent or has infinitely many solutions, and neither is a vector of numbers.
Every determinant is exact, so the solution prints as a rational vector rather than a rounded one.
What to Expect
Best for
- Working out the exact solution of a square linear system by determinants without a spreadsheet
- Checking a figure someone else quoted
- Seeing the formula behind an answer
Not ideal for
- A zero determinant is refused, because the system then has no unique solution; a non-square matrix is refused.
- A quantity the page cannot compute, which it refuses instead of estimating
- Rounding an answer that has an exact form
What this tool keeps
- Xᵢ = det(Aᵢ) ÷ det(A), where Aᵢ replaces column i with b
- Every input exactly as typed
What may need cleanup
- Nothing: the printed answer is the final output
- A unit conversion, if the inputs were entered in different units
Common errors
- A zero determinant is refused, because the system then has no unique solution; a non-square matrix is refused.
- An empty field is refused with the field's name
Example use cases
- Work out the exact solution of a square linear system by determinants for one set of inputs
- Check the result against the formula by hand
- See which input the answer is most sensitive to
Sample input
Cramer's Rule Calculator: coefficient matrix 2 1; 1 3, right-hand side, comma separated 5, 10
Sample output
Determinant = 5 — x1 = det(A1) ÷ det(A) = 5 ÷ 5 = 1
Who this is for
- Students checking a formula
- Anyone who needs the number and the working
Frequently asked questions
What formula does this page use?
Xᵢ = det(Aᵢ) ÷ det(A), where Aᵢ replaces column i with b. The page prints the substitution as well, so the answer can be checked against the rule.
What does Cramer's Rule Calculator refuse?
A zero determinant is refused, because the system then has no unique solution; a non-square matrix is refused.
What does the default example give?
Coefficient matrix 2 1; 1 3, right-hand side, comma separated 5, 10 gives Determinant = 5. Every line below that restates the same arithmetic.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.