Skip to content
100% local

Linear equation system solver

Solve a system of linear equations with Gaussian elimination and see the rank, determinant and full solution.

Input
Output

Linear equation system solver

Paste a system of linear equations, one per line, and this tool builds the matrix, runs Gaussian elimination and prints the solution. It works equally well as an augmented-matrix solver: switch "Input as" to matrix mode and type rows of coefficients with the constant as the last value on each line, and skip writing out variable names entirely.

Every equation is written with the variables on the left and a plain number on the right, like "2x + 3y = 5" — any letters work as variable names, including things like x1 and x2, and a lone number on the left (such as "2x + 3 = 5") is moved across the equals sign automatically. Toggle "Output as" between exact fractions and fixed decimals, and set how many decimal places to show. Turn on "Show elimination steps" to see the augmented matrix after every pivot, and "Show rank and determinant" to see the rank of the coefficient matrix, the rank of the augmented matrix, and — for a square system — the determinant.

Not every system has exactly one answer. When the equations contradict each other the tool reports that plainly, along with the two ranks that prove it. When there are more unknowns than independent equations, it reports infinitely many solutions and, with "Parametric solution" turned on, writes the pivot variables in terms of the free ones so you can see the whole solution set rather than just one point in it. Systems are capped at 50 equations and 50 unknowns to keep the page responsive; larger systems should be split into smaller blocks.

Everything runs in your browser using exact fraction arithmetic, so results never drift the way floating-point elimination can on an ill-conditioned system. Nothing you type is uploaded anywhere. Copy the result, download it as a .txt file, or send the output back into the input to keep refining the system.

FAQ

How do I write the equations?
One equation per line, variables on the left and a number on the right, like "2x + 3y = 5". Any letters work as variable names, and a constant on the left (like the 3 in "2x + 3 = 5") is moved to the right automatically.
What does "infinitely many solutions" mean, and what is the parametric form?
It means the system has more unknowns than independent equations. With "Parametric solution" on, the tool expresses the constrained variables in terms of the free ones — for example x = 6 − z, y = 1 + z, with z free — which describes every solution at once.
Why does it say there is no solution?
The equations contradict each other — no combination of values satisfies all of them at once. The rank of the coefficient matrix is lower than the rank of the augmented matrix, which the output shows alongside the message.
Can I enter the system as a matrix instead of equations?
Yes. Switch "Input as" to "Augmented matrix" and type one row per line: the coefficients followed by the constant, separated by spaces or commas — for example "2 1 5" for 2x + y = 5. Variables are then labeled x1, x2 and so on.
Is my system uploaded anywhere?
No. Parsing, elimination and formatting all happen in your browser — nothing you type ever leaves your device.