Skip to content

Simultaneous Equations Solver

Solved, then checked by substitution.

Solved, then checked by substitution. States the assumption instead of hiding it.

Written and maintained by Mohit PatelLast checked August 4, 2026How we build these

Solution

x = 2, y = 3, z = -1

Verified by substitution — largest residual 8.9e-16

x2
y3
z-1
Determinant-1
Largest residual8.88e-16
VerdictA unique solution, verified by substituting it back into the original equations.

Solved by Gaussian elimination with partial pivoting, then checked by substituting the answer back into the original equations. The largest leftover error is the residual, and it is reported because a system can be solvable in principle and badly behaved in practice. Pivoting is not an optimisation. Without it, a small leading coefficient becomes a divisor and amplifies rounding error through every subsequent row — which is how naive elimination produces confident nonsense on perfectly ordinary systems. This is a better route than computing the inverse and multiplying, both in speed and in accuracy. The inverse is needed far less often than it is used.

How the Simultaneous Equations Solver works

Solves a 2×2 or 3×3 linear system by Gaussian elimination with partial pivoting, then substitutes the answer back and reports the largest leftover error. A system can be solvable in principle and badly behaved in practice.

Also known as: solve two equations two unknowns · three variable system solver · x y z equation solver · gaussian elimination calculator

Frequently asked questions

What if the determinant is zero?

There is no unique solution. Either the equations describe the same relationship more than once — infinitely many solutions — or they contradict each other and there are none. Telling the two apart needs the rank of the augmented matrix.

What does the residual mean?

How far the returned solution is from actually satisfying the original equations. It should be essentially zero; a large residual signals a badly conditioned system whose answer should not be trusted.

What is partial pivoting?

Reordering rows so the largest available coefficient becomes each pivot. Without it, a small pivot amplifies rounding error through the rest of the elimination and produces confident nonsense on ordinary systems.

What does a 3×3 system mean geometrically?

Each equation is a plane, and the solution is where all three meet. A unique solution is a single point; a zero determinant means they meet along a line, coincide, or form a prism with no common point.

Is this better than using the inverse?

Yes, on both speed and accuracy. Computing an inverse in order to multiply by it does more arithmetic and accumulates more error than solving the system directly.

Put this calculator on your own site

Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.

The one-line version
<iframe src="https://www.thecalclibrary.com/embed/simultaneous-equations-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Simultaneous Equations Solver"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/simultaneous-equations-calculator" style="color:#64748b">Simultaneous Equations Solver</a> from The Calc Library</p>

The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.

Related calculators