System of equations solver

MA-19Math

Solve a system of two or three linear equations with two or three unknowns.

Number of unknowns
x
2
y
1

Last updated: October 2026 · Report a calculation error

How to solve a system of equations

School methods are substitution and elimination, and for three unknowns Cramer's rule. The calculator uses Gaussian elimination: it removes unknowns from the equations one by one until the answer is left.

Example: x + y = 3 and x − y = 1. Adding the equations gives 2x = 4, so x = 2 and then y = 1.

Types of systems

SystemSolutionsExample
consistent, independentexactly onex + y = 3, x − y = 1
inconsistentnonex + y = 3, 2x + 2y = 7
dependentinfinitely manyx + y = 3, 2x + 2y = 6

Worked example

x + y = 10 and 2x − y = 2. Adding the equations eliminates y: 3x = 12, so x = 4 and y = 6. The calculator uses Cramer’s rule: if the determinant of the coefficients is 0, the system has either no solution (parallel lines) or infinitely many (the same line).

Frequently asked questions

What if an equation lacks one unknown?

Enter 0 as its coefficient: 2x + 3z = 5 is 2, 0, 3 and 5.

How do I enter fractions?

As decimals, e.g. ½ as 0.5. Results are shown to 6 decimal places.

When does a system have no solution?

When the equations describe parallel lines or planes — the coefficients are proportional but the constants are not, e.g. x + y = 2 and 2x + 2y = 5.

Can I solve three equations with three unknowns?

Yes, choose the 3 × 3 system and enter the coefficients of x, y and z.

See alsoWhole category

  1. MA-01Percentage calculatorFind X% of a number, what percent one number is of another and percentage change.
  2. MA-02Root and exponent calculatorCalculate the n-th root or any power of a number.
  3. MA-03Fraction calculatorAdd, subtract, multiply and divide fractions with automatic simplification.
  4. MA-04Number base converterConvert numbers between decimal, binary, octal and hexadecimal.