System of Linear Equations Solver
Solve a linear system by exact-rational Gaussian elimination, reporting a unique solution, no solution or free variables.
System of Linear Equations Solver
Solve a linear system by exact-rational Gaussian elimination, reporting a unique solution, no solution or free variables.
How this page computes
The page builds the augmented matrix, reduces it with exact BigInt fractions and reads the rank. It distinguishes a unique solution, an inconsistent system and a system with free variables.
The calculation runs entirely in this browser tab; nothing is uploaded.
The page solves a linear system from its augmented matrix using exact rational row reduction. Worked example: x + y = 3 and 2x - y = 0 give x = 1 and y = 2.
The arithmetic is exact, so a solution of -2/3 is printed as a fraction rather than a rounded decimal. An inconsistent system and a system with free variables are reported as such, not forced into a fake solution.
How to use the System of Linear Equations Solver
Enter one equation per line, with the coefficients followed by the right-hand side, separated by spaces or commas. Press Run to reduce the augmented matrix.
Every row must have the same number of entries, one more than the number of variables. The page names a unique solution, an inconsistent row, or the free variables when the rank is short.
Exact row reduction
Gaussian elimination selects a pivot, scales its row to a leading one and eliminates that column from every other row. Doing it over exact fractions keeps every intermediate value exact.
The rank is the number of pivot columns among the coefficients. Full rank gives a unique solution; a zero row with a non-zero right-hand side is inconsistent; a short rank leaves free variables.
What to Expect
Best for
- Solving a small linear system exactly
- Checking whether a system is consistent
- Seeing which variables are free
Not ideal for
- A non-linear system
- A least-squares fit for an overdetermined system
- A symbolic solution with parameters
What this tool keeps
- The augmented matrix, the rank and the exact solution or verdict
What may need cleanup
- Nothing: fractions are final exact values
Common errors
- Rows of unequal length are refused
- A row with only a right-hand side is refused
Example use cases
- Solve x + y = 3, 2x - y = 0
- Detect an inconsistent two-equation system
Sample input
1 1 3 2 -1 0
Sample output
unique solution of the 2 by 2 system: x1 = 1 x2 = 2
Who this is for
- Students checking a linear system
- Readers verifying a rank argument
Frequently asked questions
How many variables can I use?
As many as the row width implies: the last entry is the right-hand side and every earlier entry is a coefficient. The page names the variables x1, x2 and so on in the output.
What does an inconsistent system look like?
A row reduces to all-zero coefficients with a non-zero right-hand side, such as 0 = 5. The page reports no solution and prints that right-hand side rather than a set of numbers that does not satisfy the equations.
Why are fractions better than decimals here?
Exact fractions avoid the rounding that can turn a near-zero pivot into a false one. The page can therefore distinguish a genuinely inconsistent system from one that merely looks singular in floating point.
Is anything uploaded?
Nothing is uploaded. The row reduction runs in this browser tab with BigInt arithmetic, and reloading the page discards the matrix and the solution.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.