🏆 US-Registered Digital Marketing Agency Trusted by 200+ brands · USA · UK · Canada · AUS
Advertisement
Advertisement
ALGEBRA

System of Equations Calculator — 2×2 and 3×3, solved step by step

Solve two or three simultaneous linear equations, with full elimination working and an explicit answer when the system has no solution or infinitely many.

Enter every coefficient, including zeros for missing terms.
Solution
 
 
0
x
0
y
0
z
0
Determinant
Elimination steps:  
Advertisement

The system of equations calculator above solves two or three simultaneous linear equations at once, showing the Gaussian elimination working row by row rather than just printing an answer. It handles the two awkward cases most free solvers get wrong: systems with no solution, and systems with infinitely many. Both return an honest verdict here instead of a division-by-zero artefact or a string of NaNs.

Arb Digital publishes this alongside the rest of its free maths tools because a linear system is the first place students meet the idea that an equation set can be inconsistent. Getting a clear message that says why is worth more than a number that happens to be wrong.

What This System of Equations Calculator Does

Choose a 2×2 or 3×3 system, type in the coefficients and the constants, and the calculator runs Gaussian elimination with partial pivoting on the augmented matrix. It reports the values of x, y and z, the determinant of the coefficient matrix, and a classification of the system: consistent with a unique solution, consistent but dependent with infinitely many solutions, or inconsistent with none at all.

The working panel lists each elimination step with your own numbers substituted, so you can follow the same route by hand and see exactly where a row became all zeros or where a contradiction like 0 = 5 appeared.

How to Use It

  1. Pick the system size. Two equations in x and y, or three in x, y and z. The z fields disappear for a 2×2 system.
  2. Rearrange each equation into standard form first: all variables on the left in the same order, the constant alone on the right.
  3. Enter every coefficient including zeros. An equation like 2x + 5 = z becomes 2x + 0y − z = −5.
  4. Press Solve to see the values, the determinant, and the classification.
  5. Check the working panel to see which row operations were performed and whether any row collapsed.

The Method: Gaussian Elimination With Partial Pivoting

The calculator writes your system as an augmented matrix — the coefficients on the left, the constants in an extra column on the right — and then applies three legal row operations: swapping two rows, multiplying a row by a non-zero number, and adding a multiple of one row to another. None of these changes the solution set, which is the whole reason elimination is valid.

The goal is row echelon form, where each row starts with more leading zeros than the one above it. Once you reach it, the last row gives one variable directly and you back-substitute upward. Partial pivoting means that at each step the calculator swaps in the row with the largest absolute value in the current column before eliminating. Mathematically this changes nothing; numerically it matters enormously, because dividing by a tiny pivot magnifies rounding error into a wrong answer. The stability argument is set out in Wolfram MathWorld's entry on Gaussian elimination.

Advertisement

Reading the Determinant Before You Read the Answer

The determinant of the coefficient matrix is the fastest single test of whether a unique solution exists. If it is non-zero, there is exactly one solution and Cramer's rule or elimination will find it. If it is zero, the system is singular: the equations are not independent, and the answer is either no solution or infinitely many — never exactly one.

For a 2×2 system with coefficients a, b in the first equation and c, d in the second, the determinant is simply ad − bc. For 3×3 it expands along the top row as a(ei − fh) − b(di − fg) + c(dh − eg). Geometrically, a zero determinant in two dimensions means the two lines are parallel; in three dimensions it means the three planes share a line or an entire plane, rather than meeting at a single point.

No Solution vs. Infinitely Many: How to Tell Them Apart

Both cases have a zero determinant, so the determinant alone cannot separate them. The distinction lives in the constants column. During elimination, watch for a row that reduces to all zeros on the left:

  • If that row reads 0 = 0, the equation carried no new information. The system is dependent and has infinitely many solutions, describable as a line or plane of answers rather than a point.
  • If it reads 0 = k for some non-zero k, you have derived a false statement from true premises. The system is inconsistent and has no solution at all.

In formal terms, compare the rank of the coefficient matrix with the rank of the augmented matrix. Equal ranks mean the system is consistent; if that shared rank is also equal to the number of unknowns, the solution is unique. If the augmented rank exceeds the coefficient rank, there is no solution. The calculator performs exactly this comparison and states the verdict in words rather than leaving you to interpret a row of zeros.

A Fully Worked 3×3 Example

Take the default system: 2x + y − z = 8, −3x − y + 2z = −11, and −2x + y + 2z = −3.

Add 1.5 times equation 1 to equation 2 to clear x: (−3 + 3)x + (−1 + 1.5)y + (2 − 1.5)z = −11 + 12, giving 0.5y + 0.5z = 1. Add equation 1 to equation 3 to clear x there too: 0x + 2y + z = 5. Now eliminate y from the second of those: multiply 0.5y + 0.5z = 1 by 4 to get 2y + 2z = 4, and subtract it from 2y + z = 5, leaving −z = 1, so z = −1.

Back-substitute: 0.5y + 0.5(−1) = 1 gives y = 3. Then 2x + 3 − (−1) = 8 gives 2x = 4 and x = 2. The solution is (2, 3, −1). Check it in the third original equation: −2(2) + 3 + 2(−1) = −4 + 3 − 2 = −3, which matches. The determinant of the coefficient matrix is −1, non-zero, confirming the unique solution the elimination produced.

Substitution, Elimination and Cramer's Rule Compared

Substitution — solving one equation for one variable and pushing it into the others — is fine for a 2×2 system with a coefficient of 1 sitting somewhere convenient. It becomes painful at 3×3 because the fractions compound quickly.

Elimination scales far better and is what every computer implementation uses. Cramer's rule, which expresses each variable as a ratio of two determinants, is elegant and worth knowing for exams, but it requires computing n + 1 determinants and collapses entirely when the determinant is zero — which is precisely the interesting case. It also gives you no diagnostic information: a zero denominator tells you something went wrong but not whether the system is inconsistent or dependent. Elimination tells you which, because you can read the offending row directly.

What a Solution Means Geometrically

Each linear equation in two variables is a line; each equation in three variables is a plane. A unique solution to a 2×2 system is the single point where two lines cross. Parallel lines never cross, giving no solution; identical lines overlap everywhere, giving infinitely many.

Three planes offer more ways to fail. They can meet at one point, which is the unique solution. They can intersect along a common line, giving a one-parameter family of answers. They can coincide entirely, giving a two-parameter family. Or they can form a triangular prism arrangement where every pair of planes meets but no point lies on all three — a system that looks perfectly reasonable equation by equation yet has no solution. That last configuration is the one worth picturing, because it explains how three individually consistent equations can still be jointly impossible. The rank test that separates these configurations is developed carefully in MIT OpenCourseWare's 18.06 Linear Algebra course. If you are working with lines directly, the slope calculator will tell you when two of them are parallel before you start eliminating.

Want tools like this built for your own audience?

Arb Digital designs and builds fast, self-contained interactive calculators that earn links and rankings. Browse what we have published, or tell us what you need.

Browse Free Tools Talk To Us

Common Mistakes to Avoid

  • Not writing the equations in standard form first. Variables must appear in the same order in every row, with the constant alone on the right.
  • Skipping zero coefficients. An equation missing a y term still needs a 0 typed in that slot, or the whole matrix shifts.
  • Treating a zero determinant as an error. It is a meaningful result, telling you the equations are not independent.
  • Reporting a single answer for a dependent system. If there are infinitely many solutions, the honest answer is a parametric family, not one arbitrary point from it.
  • Rounding mid-calculation. Rounding a pivot to two decimals early can flip a determinant from zero to non-zero and change the classification entirely.

Related Free Tools From Arb Digital

For single-variable equations, the quadratic equation solver and the scientific calculator cover the non-linear and arithmetic-heavy cases. Use the slope calculator to check whether two lines are parallel, the fraction calculator to keep exact values through elimination, and the percentage calculator for mixture and concentration word problems that become linear systems. Everything else lives in the free online tools hub.

Frequently Asked Questions

What does it mean when a system has no solution?

The equations contradict each other. During elimination a row reduces to zero on the left with a non-zero constant on the right, which is a false statement, so no set of values can satisfy all the equations at once.

What does infinitely many solutions mean?

At least one equation carries no information the others did not already give. A row reduces to zero equals zero, leaving fewer independent equations than unknowns, so the answers form a line or plane rather than a single point.

Can I use this for two equations instead of three?

Yes. Select the 2 by 2 option and the z fields are hidden. The same elimination and classification logic runs on the smaller matrix.

What is the determinant used for here?

It is a quick test for uniqueness. A non-zero determinant guarantees exactly one solution. A determinant of zero means the system is singular, so the answer is either none or infinitely many.

Is elimination better than substitution?

For anything larger than two equations, yes. Substitution multiplies fractions together and gets messy fast, while elimination follows a fixed procedure that scales and is easy to check step by step.

Why does the calculator swap rows?

That is partial pivoting. Using the row with the largest leading coefficient avoids dividing by a very small number, which would amplify rounding error and can produce a visibly wrong answer.

What is Cramer's rule?

It expresses each unknown as the ratio of two determinants. It is compact for small systems but fails when the determinant is zero, and it does not tell you whether the system is inconsistent or dependent.

This calculator is provided for study and reference. Values are computed in floating point, so substitute the answers back into your original equations to confirm them before relying on the result.

Advertisement
Advertisement

Take it further

Arb Digital assistant

👋 Hey! Want to grow your business? Ask me anything — a free marketing proposal is on the table!