Cramer's Rule Calculator

Solve a system with determinants and Cramer's rule.

Size

Choose how many equations to solve.

The x coefficient in the first equation.

The y coefficient in the first equation.

The z coefficient in the first equation.

The constant on the right of the first equation.

The x coefficient in the second equation.

The y coefficient in the second equation.

The z coefficient in the second equation.

The constant on the right of the second equation.

The x coefficient in the third equation.

The y coefficient in the third equation.

The z coefficient in the third equation.

The constant on the right of the third equation.

Try

Result

You entered2x+3y=13,x−y=−12x + 3y = 13,\quad x - y = -1

x=2, y=3\displaystyle x = 2,\ y = 3

Check

2(2)+3(3)=13,1(2)+−1(3)=−1\displaystyle 2\left(2\right) + 3\left(3\right) = 13,\quad 1\left(2\right) + -1\left(3\right) = -1

Intersection point

(2,3)\displaystyle \left(2, 3\right)
Show the work
  1. Determinant of the coefficients

    Write the coefficients of xx and yy as a 2-by-2 determinant DD. Here a1=2a_1 = 2, b1=3b_1 = 3, a2=1a_2 = 1 and b2=−1b_2 = -1. Since D≠0D \ne 0, there is exactly one solution.

    Using D=a1b2−a2b1D = a_1 b_2 - a_2 b_1

    D=∣231−1∣=2⋅(−1)−1⋅3=−2−3=−5D = \begin{vmatrix} 2 & 3 \\ 1 & -1 \end{vmatrix} = 2\cdot \left(-1\right) - 1\cdot 3 = -2 - 3 = -5
  2. Replace the x column

    For DxD_x, replace the xx column with the constants d1=13d_1 = 13 and d2=−1d_2 = -1, then work the determinant out in the same way.

    Using Dx=d1b2−d2b1D_x = d_1 b_2 - d_2 b_1

    Dx=∣133−1−1∣=13⋅(−1)−(−1)⋅3=−13+3=−10D_x = \begin{vmatrix} 13 & 3 \\ -1 & -1 \end{vmatrix} = 13\cdot \left(-1\right) - \left(-1\right)\cdot 3 = -13 + 3 = -10
  3. Replace the y column

    For DyD_y, replace the yy column with the constants instead, and keep the xx column of coefficients.

    Using Dy=a1d2−a2d1D_y = a_1 d_2 - a_2 d_1

    Dy=∣2131−1∣=2⋅(−1)−1⋅13=−2−13=−15D_y = \begin{vmatrix} 2 & 13 \\ 1 & -1 \end{vmatrix} = 2\cdot \left(-1\right) - 1\cdot 13 = -2 - 13 = -15
  4. Cramer's rule

    Divide each of DxD_x and DyD_y by D=−5D = -5 to get the two unknowns.

    Using x=DxD,y=DyDx = \frac{D_x}{D},\quad y = \frac{D_y}{D}

    x=−10−5=2y=−15−5=3\begin{gathered} x = \frac{-10}{-5} = 2 \\ y = \frac{-15}{-5} = 3 \end{gathered}
  5. Result

    So the solution is x=2, y=3x = 2,\ y = 3.

Worked examples