Enter matrices and reduce them with clear pivoting. View steps, ranks, determinants, and solution status. Download reports and graphs for classes, revision, and sharing.
Choose the system size, fill the coefficient matrix and constants, then solve using matrix elimination with partial pivoting.
For a linear system A x = b, the calculator builds the augmented matrix [A|b] and applies row elimination until it reaches upper triangular form.
Row operation: Rj = Rj - (aj,i / ai,i) Ri
Determinant after elimination: det(A) = (-1)s × Π uii, where s is the number of row swaps.
Back substitution: xi = (ui,n+1 - Σ uijxj) / uii
Consistency test: compare rank(A) and rank([A|b]). Equal full ranks give a unique solution. Equal lower ranks give infinitely many solutions. Different ranks mean no solution.
This example corresponds to the default 3 × 3 sample system.
| Equation | Coefficient row | Constant |
|---|---|---|
| 2x + y - z = 8 | [2, 1, -1] | 8 |
| -3x - y + 2z = -11 | [-3, -1, 2] | -11 |
| -2x + y + 2z = -3 | [-2, 1, 2] | -3 |
| Expected solution | [x, y, z] | [2, 3, -1] |
It solves square systems of simultaneous linear equations by converting the augmented matrix into an upper triangular form, then applying back substitution when a unique solution exists.
Partial pivoting swaps rows to place a larger pivot in position. That reduces division by tiny numbers, improves numerical stability, and helps the elimination process stay reliable.
Rank shows how many independent rows remain after elimination. It helps classify the system as uniquely solvable, inconsistent, or having infinitely many solutions.
A zero determinant means the coefficient matrix is singular. In that case, the system cannot have a single unique solution, and it may instead be inconsistent or underdetermined.
Residuals compare the computed left-hand side, Ax, with the original constants b. Small residuals show that the solution satisfies the equations closely.
Yes. The input fields accept integers, decimals, and negative numbers. That makes the tool suitable for classroom examples, engineering-style systems, and homework practice.
That means some equations depend on others, so the system has free variables. The rows reduce to a dependent form rather than giving one fixed answer set.
Exports make it easier to save solved systems, document teaching examples, compare results, and share a clean summary with students, classmates, or colleagues.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.