Algebra & Calculus

Unique Linear System & Residual Calculator

Solve a square real linear system and inspect its determinant and equation residual.

How the calculation works

Scaled partial-pivot Gaussian elimination reduces A to upper triangular form, then back substitution solves Ax=b. Determinant is the signed product of elimination pivots. The reported residual is max over rows of |A-row · solution − b-row|. Pivots at or below 10^−12 of their original row scale are rejected.

Worked example

Example inputs — Number of equations and unknowns n: 2; Matrix A in row-major order, n² entries: 1 2 3 4; Right-hand side b, n entries: 5 11. Expected results — Solution vector in unknown order: 1, 2; Determinant of A: -2; Maximum absolute equation residual: 0.

Assumptions and limits

Numerical educational calculation with finite real inputs. Rounding, ill-conditioning and the stated model domain can limit accuracy; this does not manipulate arbitrary symbolic expressions. One to twelve equations, unique-solution mode. Singular and numerically near-singular systems are rejected; inconsistent/infinite-solution classification and exact rational elimination are not claimed. A small residual alone does not prove a well-conditioned solution.

Reference and further reading

Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.

Related calculators

Browse all 1000 calculators →

Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.