System of equations solver

One equation per line as its coefficients and constant: 2 3 -1 5 means 2x + 3y − z = 5.

Your answer

Solutionx = 2, y = 3, z = -1

Worked out in your browser. Nothing you type is sent to a server.

How we worked it out

Updated as you change the numbers.

  1. Gauss–Jordan elimination with partial pivoting: clear each column above and below its pivot, then divide.

Method and assumptions

A system has a unique solution when its coefficient matrix has a nonzero determinant. Otherwise there are no solutions or infinitely many.

Questions

Solve 2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3.

x = 2, y = 3, z = −1.

Sources

Method and figures checked on . Every worked answer on this page is covered by an automated test. Found a mistake? Tell us.

Embed this calculator on your site

Free to use. Paste this where you want the calculator; it runs in your visitors’ browsers, sets no cookies and sends nothing to us.

Related calculators