Last verified · v1.0
Calculator · math
Cramer's Rule Calculator (2×2 System)
Solve a 2×2 linear system using Cramer's Rule. Enter coefficients a₁, b₁, c₁, a₂, b₂, c₂ and get exact values of x and y via determinants.
Inputs
Solution Value
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
What Is Cramer's Rule?
Cramer's Rule is a mathematical theorem that provides an explicit formula for solving a system of linear equations using determinants. Named after Swiss mathematician Gabriel Cramer (1704–1752), who published the method in 1750, it expresses each unknown as the ratio of two determinants derived from the system's coefficient matrix. For a 2×2 linear system, Cramer's Rule delivers a direct, closed-form path to exact solutions — no elimination or back-substitution required.
The 2×2 System and Its Variables
A standard 2×2 linear system takes the form: a₁x + b₁y = c₁ (Equation 1) and a₂x + b₂y = c₂ (Equation 2). Each variable plays a defined role in the determinant calculations:
- a₁, a₂ — Coefficients of x in equations 1 and 2
- b₁, b₂ — Coefficients of y in equations 1 and 2
- c₁, c₂ — Constant (right-hand side) values of equations 1 and 2
The Cramer's Rule Formulas
Three determinants drive the solution. The main determinant D is computed from the coefficient matrix: D = a₁b₂ − a₂b₁. When D ≠ 0, the system has exactly one unique solution. To isolate x, replace the x-coefficient column with the constants to form Dx = c₁b₂ − c₂b₁. To isolate y, replace the y-coefficient column with the constants to form Dy = a₁c₂ − a₂c₁. The final solutions are: x = Dx / D and y = Dy / D. This derivation follows directly from the theory of matrix determinants, as documented in Richland College MAT 116 lecture materials on solving systems with Cramer's Rule.
Worked Step-by-Step Example
Solve: 3x + 2y = 8 and x − y = 1. Here a₁ = 3, b₁ = 2, c₁ = 8, a₂ = 1, b₂ = −1, c₂ = 1.
- Compute D: D = (3)(−1) − (1)(2) = −3 − 2 = −5
- Compute Dx: Dx = (8)(−1) − (1)(2) = −8 − 2 = −10
- Compute Dy: Dy = (3)(1) − (1)(8) = 3 − 8 = −5
- Solve: x = (−10)/(−5) = 2 and y = (−5)/(−5) = 1
Verification: 3(2) + 2(1) = 8 ✓ and 2 − 1 = 1 ✓. Both equations are satisfied, confirming the solution is correct.
When Cramer's Rule Does Not Apply
When D = 0, Cramer's Rule cannot produce a solution because division by zero is undefined. A zero determinant signals that the two equations describe either parallel lines (inconsistent system — no solution) or coincident lines (dependent system — infinitely many solutions). In both cases, row reduction or geometric analysis must be used instead. Always compute D first before applying the formulas.
Real-World Applications
Cramer's Rule has practical uses across many disciplines:
- Electrical engineering: Solving mesh current equations in two-loop circuit analysis
- Economics: Finding market equilibrium price and quantity from supply-and-demand equations
- Physics: Resolving two-body force balance and tension problems
- Computer graphics: Computing the intersection coordinates of two line segments
Research published by the University of North Dakota's engineering department on Cramer's Method calculation confirms that determinant-based solvers are preferred in embedded systems and circuit simulators, where closed-form solutions outperform iterative numerical methods in speed and predictability.
Advantages and Limitations
For a 2×2 system, Cramer's Rule requires just 6 multiplications and 4 subtractions to produce both unknowns. Unlike Gaussian elimination, each variable can be computed independently: if only x is needed, only D and Dx need to be evaluated — saving significant effort. However, for larger systems (n ≥ 4), determinant computation grows factorially with system size, making Cramer's Rule impractical compared to LU decomposition or iterative numerical solvers. For the 2×2 case specifically, it remains one of the most efficient and transparent closed-form methods available.
Reference