Skip to main content
ToolSmartly

System of Equations Solver: Step-by-Step Solution Online

Solve a linear system of 2 or 3 equations in 2 or 3 unknowns by substitution, Gaussian elimination, Cramer’s rule or the matrix method, with detailed steps, a check of the solution and a graph of the lines for 2×2 systems.

① x + y =
② x + y =
Examples: 2x+y=5 / x−y=1 3x+2y=12 / x−y=1 x+y=4 / 2x−y=2 ∞ solutions ∅ sans solution x=3, y=5
① x + y + z =
② x + y + z =
③ x + y + z =
Examples: Example 1 → (2,3,-1) x=3 y=5 z=7 Example 2
↵ Enter to solve
Enter the coefficients and click Solve.

How to solve a system of equations?

A system of linear equations is a set of equations sharing the same unknowns. The solution is the set of values that simultaneously satisfy all equations. Depending on the case, a system may have a unique solution, infinitely many solutions, or no solution.

Substitution method

Isolate one unknown in one equation, then substitute into the others. Simple but can become complex with fractions. Ideal for 2×2 systems with simple coefficients.

Gaussian elimination and Cramer's rule

Gaussian elimination combines equations to progressively eliminate unknowns. Cramer's rule uses determinants: x = Det(Aₓ)/Det(A), y = Det(Aᵧ)/Det(A). These methods are systematic and apply to 2×2 and 3×3 systems.

How to solve a system of equations

The tool solves linear systems of 2 equations in 2 unknowns (x, y) and 3 equations in 3 unknowns (x, y, z). You choose the method whose steps it shows: substitution, Gaussian elimination, Cramer’s rule or the matrix method. The answer is always checked by substituting it back into the equations.

How to use it

  1. Choose 2×2 or 3×3.
  2. Enter each equation’s coefficients in the form a·x + b·y = c; type 0 for a missing unknown and a negative number for a subtraction.
  3. Pick the method, then read the solution, the steps, the check and, for 2×2 systems, the graph of the two lines.

Example

System: 2x + 3y = 7 and x − y = 1. Coefficients to enter: (2, 3, 7) and (1, −1, 1).

The determinant is 2 × (−1) − 3 × 1 = −5, which is not 0, so there is a unique solution, x = 2 and y = 1. Check: 2 × 2 + 3 × 1 = 7 and 2 − 1 = 1. On the graph, it is where the two lines cross.

When there is no unique solution

If the determinant is zero, the system has either no solution (for 2×2, two parallel lines: x + y = 2 and x + y = 5) or infinitely many solutions (proportional equations, the same line twice: x + y = 2 and 2x + 2y = 4). The tool tells you which case applies.

Frequently asked questions

Which method should I use for homework?

The one your assignment asks for: every method gives the same solution. Substitution suits simple 2×2 systems; elimination and Cramer’s rule suit 3×3 systems.

Can coefficients be fractions or decimals?

Decimals, yes (with a point: 0.5). For a fraction, enter its decimal value or first multiply the whole equation to clear the denominators.

Can it solve non-linear systems, such as x² + y = 5?

No. It handles linear systems only, where each unknown appears to the power 1 and unknowns are never multiplied together. For other equations, try the math solver.