System of Equations Calculator

Solve 2–4 simultaneous linear equations with exact fractions. Follow row operations, graph two-variable systems, and check unique, infinite, or impossible solutions against the original equations.

Linear algebra workspace

Your equations

Try an example

Your system

Use 0 for absent terms. Fractions such as 2/3 are welcome.

Equation 1
Equation 2
Paste an augmented matrix

Row operations, explained

Each operation keeps the same solution set. Expand a step to inspect its exact matrix.

1.Start with the augmented matrix [A | b].
Matrix after step 1
xyRight side
115
2-11
2.R2 ← R2 − (2) × R1.
Matrix after step 2
xyRight side
115
0-3-9
3.Divide R2 by (-3).
Matrix after step 3
xyRight side
115
013
4.R1 ← R1 − (1) × R2.
Matrix after step 4
xyRight side
102
013

How to use this calculator

  1. Choose the number of equations and unknowns, from two to four each.
  2. Enter each coefficient and its equation’s right-hand side. Use 0 for a missing variable; fractions such as 2/3 are accepted.
  3. Read the exact solution or the explanation of why the equations are dependent or contradictory.
  4. For two unknowns, inspect the graph and use Zoom or Fit solution to explore the intersection.
  5. Expand row-operation steps and inspect the substitution checks, then export the complete calculation as CSV if needed.

The Formula

The mathematical logic powering this calculation is:

A × x = b
Allowed row operations: swap two rows; multiply a row by a nonzero number; add a multiple of one row to another.
rank(A) < rank([A|b]): no solution.
Equal ranks = number of unknowns: one solution.
Equal ranks < number of unknowns: infinitely many solutions, x = particular solution + linear combination of null-space basis vectors.

Worked Example

If you input:

  • Equation 1: x + y = 5
  • Equation 2: 2x − y = 1

Result:

x = 2 and y = 3. Substitution gives 2 + 3 = 5 and 2 × 2 − 3 = 1; both equations are satisfied exactly.

Frequently Asked Questions

What kinds of equations can this calculator solve?

It solves linear systems with two to four equations and two to four unknowns. Enter coefficients rather than complete expressions. Nonlinear terms such as x squared, products of unknowns, trigonometric functions and inequalities are outside its scope.

Can I enter fractions or decimals?

Yes. Entries such as -3/4, 0.125 and 1e-6 are converted to exact rational numbers before elimination. The input has length, decimal-place and magnitude limits to bound browser computation. The graph and the small approximate decimal labels are rounded; the main fraction results are exact for the entered values.

What does infinitely many solutions mean?

The equations are consistent, but there are fewer independent constraints than unknowns, leaving one or more variables free. The result shows a particular solution and one basis vector for each free parameter. Any real values for those parameters produce another solution.

Why does the solver say there is no solution?

The equations impose incompatible conditions. Row reduction exposes this as a row with all zero coefficients and a nonzero right-hand side, normalized here to 0 = 1. For two lines this often means distinct parallel lines.

Can there be more equations than unknowns?

Yes. A system with more equations than unknowns can still have a solution if the extra equations are consistent with it. Every original equation is checked. If an extra equation contradicts the others, the solver reports no solution rather than a least-squares approximation.

Why is the graph available only for two unknowns?

Two unknowns can be displayed as lines on an x–y plane. Higher-dimensional systems are explained with exact matrices, parameter vectors, elimination steps and substitution checks rather than a misleading two-dimensional projection.

Does a small determinant mean there is no solution?

No. For a square coefficient matrix, any exact nonzero determinant implies a unique solution. Exact rational arithmetic avoids treating a tiny nonzero determinant as zero solely because of a numerical tolerance. Very large solutions may be outside the graph window.

Similar Calculators