Cramer's Rule for x (2×2 System)

x=c1b2−b1c2a1b2−b1a2x = \frac{c_1 b_2 - b_1 c_2}{a_1 b_2 - b_1 a_2}

Units aren’t used in this calculation: every value is a plain number.

sig figs

Worked example: 2x + 3y = 12, x − y = 1 → x = 3. Press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value.

See also

Cramer's Rule for y (2×2 System): Both use linear system x coefficient and linear system y coefficient.
Learning zone

Cramer's Rule for x (2×2 System) explained

x =c1b1c2b2a1b1a2b2

Cramer's rule solves a system of two linear equations by determinants alone, with no elimination and no substitution. Write the system as a₁x + b₁y = c₁ and a₂x + b₂y = c₂; the denominator is the coefficient determinant D = a₁b₂ − b₁a₂, and the numerator is the same determinant with the x-column replaced by the right-hand sides. Worked example: 2x + 3y = 12 and x − y = 1 give D = 2(−1) − 3(1) = −5 and numerator 12(−1) − 3(1) = −15, so x = −15/−5 = 3, and substituting back, 2(3) + 3y = 12 puts y at 2, which satisfies 3 − 2 = 1.

Gabriel Cramer published the rule in an appendix to his 1750 treatise on algebraic curves, though Colin Maclaurin had written essentially the same thing in a manuscript of the 1720s printed posthumously in 1748. Its appeal is that it gives a formula for the answer rather than a procedure, which is why it survives in physics derivations and in symbolic algebra even though Gaussian elimination beats it badly for speed on anything larger than 3×3. The trap is a zero denominator: D = 0 means the two lines are parallel, so the system has either no solution or infinitely many, and the rule simply cannot distinguish the two cases. Keep the columns straight, too: swapping which column you replace gives you y instead of x.

Cramer's Rule for x (2×2 System) formula

x=c1b2−b1c2a1b2−b1a2x = \frac{c_1 b_2 - b_1 c_2}{a_1 b_2 - b_1 a_2}
Where
  • xx= Value of x
  • a1a_1= x-coefficient, equation 1
  • b1b_1= y-coefficient, equation 1
  • c1c_1= Right-hand side, equation 1
  • a2a_2= x-coefficient, equation 2
  • b2b_2= y-coefficient, equation 2
  • c2c_2= Right-hand side, equation 2
Revised 31 October 2026
Cite this page

formula.expert. (2026, October 31). Cramer's Rule for x (2×2 System) Formula & Calculator. https://formula.expert/solvers/cramers-rule-2x2-x