Simultaneous equations calculator

Solve 2 or 3 linear equations with Cramer's rule. Enter your values and see the formula, your numbers plugged in and every step of the working. Free, no sign-up, SI and imperial units.

Formula

x_i = det(A_i) / det(A),  A_i = A with column i replaced by the constants

Inputs

  • Equation 1: coefficient of x (a₁)
  • Equation 1: coefficient of y (b₁)
  • Equation 1: coefficient of z (c₁)
  • Equation 1: right-hand side (d₁)
  • Equation 2: coefficient of x (a₂)
  • Equation 2: coefficient of y (b₂)
  • Equation 2: coefficient of z (c₂)
  • Equation 2: right-hand side (d₂)
  • Equation 3: coefficient of x (a₃)
  • Equation 3: coefficient of y (b₃)
  • Equation 3: coefficient of z (c₃)
  • Equation 3: right-hand side (d₃)

Worked example: 2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3

  • Equation 1: coefficient of x a₁ = 2
  • Equation 1: coefficient of y b₁ = 1
  • Equation 1: coefficient of z c₁ = -1
  • Equation 1: right-hand side d₁ = 8
  • Equation 2: coefficient of x a₂ = -3
  • Equation 2: coefficient of y b₂ = -1
  • Equation 2: coefficient of z c₂ = 2
  • Equation 2: right-hand side d₂ = -11
  • Equation 3: coefficient of x a₃ = -2
  • Equation 3: coefficient of y b₃ = 1
  • Equation 3: coefficient of z c₃ = 2
  • Equation 3: right-hand side d₃ = -3
  1. det A = -1
  2. x = det(A_x) ÷ det A = -2 ÷ -1 = 2
  3. y = det(A_y) ÷ det A = -3 ÷ -1 = 3
  4. z = det(A_z) ÷ det A = 1 ÷ -1 = -1
  5. Check equation 1: 2×2 + 1×3 + -1×-1 = 8 ✓

Answer: Solution x x = 2 ; Solution y y = 3 ; Solution z z = -1

More engineering maths calculators

Engineering Maths formula sheet · All calculators · Practice problems