Solve linear systems with up to 6 unknowns by Gaussian elimination and Cramer's rule, with step-by-step work, classification and exact fraction arithmetic.
This calculator solves linear systems with up to 6 unknowns two different ways at once: Gaussian elimination with partial pivoting, showing every named row operation and the resulting matrix, and Cramer's rule, with the determinant of every substituted matrix visible. You can type the equations the way you'd write them on paper ("2x + 3y = 8", one per line, with an implicit coefficient, a negative sign, a variable on both sides, or a variable missing from one of the lines) or enter a coefficient grid directly. All the internal arithmetic uses exact fractions instead of floating point, so a solution like 5/7 shows up as 5/7, not as a truncated decimal like 0.7142857142857143. The result also states clearly whether the system is consistent and independent (a single solution), consistent and dependent (infinitely many solutions, with the solution set parametrized in terms of the free variables), or inconsistent (with the row that proves it). For matrix operations that don't involve solving a linear system, such as inverting, multiplying or transposing, see the matrix calculator.
How to use it
From equation to solution in a few steps
Choose between typing the equations as text (one per line, the way you'd write them on paper) or filling in a coefficient grid, where the last column is the constant term.
The calculator identifies the variables automatically, builds the augmented matrix and solves it both ways side by side: click to expand every row operation of the Gaussian elimination, and see the determinants behind Cramer's rule.
Check the system's classification, the solution (or the parametrization, or the row that proves it is inconsistent) and the substitution check, which plugs the values found back into the original equations to show they hold.
Embed
Use this tool on your site
Paste the code into your HTML and the tool shows up on your page, without J-Kit's navigation and ads. It still runs in the browser of whoever visits your site.
<iframesrc="https://jkit.tools/embed/en-US/linear-equation-solver"width="100%"height="600"style="border:0"loading="lazy"referrerpolicy="no-referrer-when-downgrade"title="Linear Equation System Solver"></iframe><p style="font-size:12px;margin:6px 0 0">Tool by <a href="https://jkit.tools/en/tools/linear-equation-solver">J-Kit</a></p>
Cite
Cite or link to this tool
Using it in a paper, class or post? Copy the link or a ready-made reference. The access date is today's.
<a href="https://jkit.tools/en/tools/linear-equation-solver">Linear Equation System Solver</a>
References
Sources and references for this tool
These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.
One equation per line, with an equals sign separating the two sides, for example "2x + 3y = 8" or "x - y = -1". The calculator accepts an implicit coefficient ("x" means the same as "1x"), a negative sign, unknowns with any name, a variable appearing on both sides of the equals sign ("2x + 1 = x + 4"), and a variable that simply doesn't appear in one of the equations, it is treated as a zero coefficient automatically.