FLXCode System of Equations Calculator

FLXCode apps

Appearance

System of Equations Calculator

Type your equations as you write them, one per line, and get the solution with every row operation shown.

Example

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

Exactly one solution (3 equations, 3 unknowns).

Solution

  • x = 2
  • y = 3
  • z = −1
  • Every unknown has a pivot, so this is the only solution.

Check: put the answer back into each equation

  • Equation 1: 2·2 + 1·3 − 1·(−1) = 8 ✓
  • Equation 2: −3·2 − 1·3 + 2·(−1) = −11 ✓
  • Equation 3: −2·2 + 1·3 + 2·(−1) = −3 ✓

Your system in standard form (unknowns in the order x, y, z)

  • 1. 2x + y − z = 8
  • 2. −3x − y + 2z = −11
  • 3. −2x + y + 2z = −3

Reduced row echelon form of [A | b]

[ 1  0  0  |  2 ]
[ 0  1  0  |  3 ]
[ 0  0  1  | -1 ]

Augmented matrix [A | b] (3 × 4), before reducing

[  2   1  -1  |   8 ]
[ -3  -1   2  | -11 ]
[ -2   1   2  |  -3 ]

Row operations

  1. R1 ← R1 / 2 (make the pivot 1)
  2. R2 ← R2 − (-3)·R1
  3. R3 ← R3 − (-2)·R1
  4. R2 ← R2 / (1/2) (make the pivot 1)
  5. R1 ← R1 − (1/2)·R2
  6. R3 ← R3 − 2·R2
  7. R3 ← R3 / (-1) (make the pivot 1)
  8. R1 ← R1 − (-1)·R3
  9. R2 ← R2 − R3

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.

Problem or idea? Email us

Quick start

  1. Type one equation per line, like 2x + 3y = 5. Letters can be on both sides.
  2. The answer is the headline. Below it you get the check, your system in standard form and the row operations.
  3. For a matrix you already have, use the matrix calculator and choose "Solve A x = b".

Worked examples

CaseEquationsResultNote
Two equations2x + 3y = 5; x − y = 1x = 8/5, y = 3/5Substitution gives the same answer. The tool shows fractions, not rounded decimals.
Three equations2x + y − z = 8; −3x − y + 2z = −11; −2x + y + 2z = −3x = 2, y = 3, z = −1Three pivots, so one solution. Put it back into every equation to check.
Letters on both sides3x + 2y = z + 1; x − y + 2z = 3 − y; 2x = 4 − zx = 5/3, y = −5/3, z = 2/3The tool moves everything to the left first. Unknowns are ordered x, y, z by first appearance.
Fractionsx/2 + y/3 = 1; x − y = 1/6x = 19/15, y = 11/10Fractions and decimals are exact, so 19/15 stays 19/15.
More equations than unknownsx + y = 3; x − y = 1; 2x + y = 5x = 2, y = 1The third equation agrees with the first two, so there is still one solution.
Same line twicex + y = 2; 2x + 2y = 4Infinitely many solutionsThe second equation says the same as the first. One free unknown.
Fewer equations than unknownsx + y + z = 6; y + 2z = 5Infinitely many solutionsThree unknowns, two equations: z is free and the others follow from it.
Parallel linesx + y = 2; x + y = 3No solutionThe row reduces to 0 0 | 1, which says 0 = 1.

Three kinds of answer

A linear system has one solution, no solution, or infinitely many. There is no case with exactly two. After row reduction, a pivot in every unknown's column means one solution. A row that reads 0 0 … | c with c not zero means none. Any unknown without a pivot is free, and that means infinitely many.

How the tool turns text into a matrix

Each equation is moved so the unknowns are on the left and the number is on the right. Terms with the same letter are added together, so x + 2x = 6 reads as 3x = 6. The coefficients become a row of A and the number becomes the matching entry of b. Then the shared solver reduces [A | b] on exact fractions.

Numbers this uses

  • Unknowns is 2 to 6, single letters. Ordered by first appearance in the text.
  • Equations is 1 to 8, not necessarily as many as unknowns. Over- and under-determined systems are handled.
  • Numbers is whole, decimal or fraction, up to 40 digits. Stored as exact BigInt fractions, so 0.1 is exactly 1/10.
  • Steps is at most 60 row operations listed. The rest are counted.

Limits

Only linear equations work: no brackets, powers, products of unknowns or functions. A system with one unknown is refused (just divide). The tool does not draw the lines. If your equations have a parameter you want to keep symbolic, like a or k, a computer algebra system does that better than this page.

FAQ

Which letters can I use?

Any single letters, and the unknowns are listed in the order they first appear. So a + b = 1 with a - b = 3 gives a first and b second. Two letters next to each other, like xy, would be a product of unknowns, and that makes the equation non-linear, so the tool refuses it.

Why does it refuse brackets?

Brackets need to be multiplied out first, and the tool does not do algebra on them yet. 3(x + 1) = 2y becomes 3x + 3 = 2y. The message says so when it sees one. A line with a power, like x², is refused for the same reason: only straight-line (linear) equations work here.

What does "infinitely many solutions" mean?

The equations do not pin every unknown down. Some unknowns are free: any number works for them, and the rest follow. For x + y + z = 6 and y + 2z = 5, z is free (z = t), y = 5 − 2t and x = 1 + t. The tool names the free unknowns and shows one example.

What does "no solution" mean?

Two or more equations contradict each other, like x + y = 2 and x + y = 3. After row reduction one row reads 0 = 1, and the tool quotes it. On a graph, two lines like that are parallel and never meet.

Can there be more equations than unknowns?

Yes, up to 8 equations. If the extra ones agree with the answer, you still get one solution. If one disagrees, there is no solution. With fewer equations than unknowns there is usually a free unknown. The tool handles all of these, not only square systems.

How does it solve the system?

It writes the equations as an augmented matrix [A | b] and row-reduces it with exact fractions (Gauss-Jordan). The same solver runs on the matrix calculator page. Each row operation is listed, so you can follow it by hand. Nothing is rounded along the way.

More from FLXCode

  • Matrix CalculatorAdd, multiply, transpose, determinant, inverse, rank and RREF up to 6 × 6, exact fractions, row-operation steps.
  • Quadratic Formula CalculatorSolve ax² + bx + c = 0 with exact roots, complex roots, discriminant, vertex form, steps and a small graph.
  • Fraction CalculatorAdd, subtract, multiply and divide fractions and mixed numbers. Simplified answer with the steps in words.
  • Eigenvalue CalculatorEigenvalues and eigenvectors up to 6 × 6: exact for 2 × 2 and rational roots, numeric otherwise.

Share System of Equations Calculator