Simultaneous Equation Solver

This calculator solves systems of two or three simultaneous linear equations, working out the exact values of x, y and z (or x and y) that satisfy every equation at once. Choose the 2-variable or 3-variable tab, then type in the coefficients and constants for each equation, using negative numbers for subtraction and decimals where needed. For 2x2 systems the solver applies Cramer's rule, calculating the determinant and using it to work out each variable directly. For 3x3 systems it uses Gaussian elimination with partial pivoting, reducing the equations to row echelon form and then back-substituting to find z, then y, then x. Results update live as you type, showing the solution values, a status message confirming whether the system has one unique solution, no solution, meaning the equations describe parallel lines or planes that never meet, or infinitely many solutions, meaning the equations are dependent, and a full step-by-step breakdown of the working, including a check that substitutes the answer back into each original equation. This makes it useful for checking homework, working through NCEA algebra problems, or solving equations that come up in trade, engineering or business calculations without doing the arithmetic by hand. Results are shown to 8 significant figures, so for equations with very large or very small coefficients, always verify the answer by substituting it back into your original equations.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner: Premium Homes
Standard method  Cramer's rule (2x2) and Gaussian elimination (3x3). Results are exact for integer and decimal inputs.

Enter Coefficients

Enter each coefficient and constant. Use negative numbers for subtraction (e.g. -3). Decimals are accepted.

x
+
y
=
x
+
y
=
Enter your coefficients above.

How Simultaneous Equations Work

A system of simultaneous linear equations is a set of two or more equations that share the same variables and must all be true at the same time. The solution is the set of variable values that satisfies every equation simultaneously. Geometrically, for a 2-variable system, each equation represents a straight line and the solution is the point where those lines intersect.

Methods for Solving

MethodBest forHow it works
SubstitutionSmall systems, one variable easily isolatedRearrange one equation to express one variable in terms of the others, then substitute into the remaining equations
Elimination2x2 and 3x3 systemsMultiply equations by constants and add or subtract to eliminate variables one at a time
Cramer's rule2x2 and 3x3 systemsExpress each variable as a ratio of determinants
Gaussian eliminationAny size systemUse row operations to reduce the matrix to row echelon form, then back-substitute
Matrix inverseSystems where the matrix is well-conditionedExpress as Ax = b and compute x = A⁻¹b

Cramer's Rule for 2x2 Systems

For the system:

The determinant D = a11 × a22 - a12 × a21.

If D is not zero, the unique solution is:

If D = 0, the system either has no solution (inconsistent, parallel lines) or infinitely many solutions (dependent, coincident lines).

Gaussian Elimination for 3x3 Systems

Gaussian elimination converts the augmented matrix [A|b] to row echelon form using three types of elementary row operations: swapping two rows, multiplying a row by a non-zero constant, and adding a multiple of one row to another. Once in row echelon form, the system is solved by back substitution, starting from the last equation and working upward. This solver uses partial pivoting (choosing the row with the largest leading coefficient at each step) to improve numerical stability.

Worked Example (2x2 default)

System: 2x + y = 5 and x + 3y = 10.

Determinant D = (2)(3) - (1)(1) = 6 - 1 = 5.

x = (5 × 3 - 1 × 10) / 5 = (15 - 10) / 5 = 5 / 5 = 1.

y = (2 × 10 - 5 × 1) / 5 = (20 - 5) / 5 = 15 / 5 = 3.

Check: 2(1) + 3 = 5 ✓ and 1 + 3(3) = 10 ✓.

Worked Example (3x3 default)

System: 2x + y - z = 8, -3x - y + 2z = -11, -2x + y + 2z = -3.

Using Gaussian elimination: x = 2, y = 3, z = -1.

Check: 2(2)+3-(-1) = 8 ✓, -3(2)-3+2(-1) = -11 ✓, -2(2)+3+2(-1) = -3 ✓.

Related Calculators

Sources and method: Cramer's rule and Gaussian elimination with partial pivoting. Standard linear algebra as presented in: Anton, H. and Rorres, C., Elementary Linear Algebra, Wiley; and Stewart, J., Calculus, Cengage. Consistent with NCEA Level 2 and Level 3 Mathematics (algebra strand).

This solver handles systems with exact rational and decimal coefficients. Results are displayed to 8 significant figures. For very large or very small coefficients, floating-point precision may affect the last few decimal places. Always verify solutions by substituting back into the original equations.

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-19 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.