Linear Equations Calculator

Free linear equations calculator. Solve 2 to 6 equations with exact fractions, see the row reduced matrix, and get clear results for no solution or infinitely many solutions.

✓ Runs in your browser, nothing is uploaded

Type whole numbers, decimals or fractions such as 3/4. Use 0 for a variable that is missing from an equation.

How to use the linear equations calculator

Choose how many equations and unknowns you have, then type the coefficient of each variable and the number on the right of the equals sign. Press Solve. If the system has one answer, you see the value of every variable. If it has none, or infinitely many, the calculator says so and explains what that means for your equations.

The solution is worked out with exact fractions, so an answer such as x = 1/3 is shown as 1/3 in Fractions mode and as 0.333333 in Decimals mode, with no hidden rounding error along the way. Below the answer you can open the reduced row echelon form, which shows the elimination result and is handy for checking homework.

Linear Equations Calculator: a complete guide

What a system of linear equations is

A linear equation is one where every unknown is only multiplied by a number and added, never squared or multiplied by another unknown. 2x + 3y = 8 is linear. A system is a group of such equations that must all be true at the same time. Solving it means finding values of the unknowns that satisfy every equation together.

Systems like this appear whenever several conditions act at once: the forces in a truss joint, the currents in a circuit loop, a mixture or blending problem, the balance of a budget, or the fitting of a line through points.

Three possible outcomes

Every system falls into one of three cases, and the calculator tells you which:

  • One solution. The equations meet at exactly one point. For two unknowns, this means two lines that cross once.
  • No solution. The equations contradict each other, like two parallel lines that never meet. For example x + y = 2 and x + y = 5.
  • Infinitely many solutions. At least one equation adds nothing new, for example when one is just a multiple of another. Some unknowns can take any value, and the rest follow from them.

For infinitely many solutions the answer is written using free variables named s, t and so on. For instance x = 3 - 2t means you can pick any value for t and get a valid x.

How the calculator solves it

It writes the system as an augmented matrix, with the coefficients on the left and the constants on the right, then applies Gauss-Jordan elimination. This uses three row operations: swap two rows, multiply a row by a non-zero number, and add a multiple of one row to another. These steps never change the solutions, and they turn the matrix into reduced row echelon form, where the answer can be read straight off.

The arithmetic is done in exact fractions, not rounded decimals, so the result is right even for awkward systems. Open "Show reduced row echelon form" to see the final matrix.

A worked example

Take the system 2x + y - z = 8, -3x - y + 2z = -11 and -2x + y + 2z = -3. Press Load example to enter it. The calculator returns x = 2, y = 3 and z = -1. You can check any equation by substituting: 2 x 2 + 3 - (-1) = 8, which is correct.

With the same equations you can change one number to see how the outcome changes. Make the third equation a copy of the first, and the system loses an independent equation, so there are infinitely many solutions.

Tips

  • Line the variables up. Every equation must list the unknowns in the same order, with 0 for any that is missing.
  • Move all the unknowns to the left side and the constant to the right before typing.
  • You can have more equations than unknowns. If they are all consistent the solution is still found, and if any disagrees the calculator reports no solution.
  • Use Fractions format to get exact answers such as 7/3 instead of 2.333333.

Frequently asked questions

What kind of equations can I solve?

Systems of linear equations, where every variable appears only to the first power, for example 2x + 3y = 8 and x - y = 1. You can have up to 6 equations and up to 6 unknowns, and they do not need to be equal in number.

What does "no solution" mean?

The equations contradict each other, so no set of values can satisfy all of them at once. Graphically, the lines or planes never meet at a common point. For example x + y = 2 and x + y = 5 cannot both be true.

What does "infinitely many solutions" mean?

At least one equation is redundant, so some variables can take any value and the others follow from them. The calculator writes the answer in terms of free variables, for instance x = 3 - 2t.

What method does the calculator use?

Gauss-Jordan elimination with exact fractions. It turns the augmented matrix into reduced row echelon form, then reads off the answer. Working in fractions avoids the rounding errors you can get with decimals.

What do I do with a missing variable?

Enter 0 as its coefficient. If an equation has no y term, put 0 in the y box.

Why show the determinant?

For a square system, a determinant that is not zero means there is exactly one solution. A determinant of 0 means the system has either no solution or infinitely many.

More tools you may like