System of Equations Solver

Solve two or three linear equations exactly, see the elimination and Cramer's rule working, and find out whether the system has one, none or infinitely many solutions.

Free, no sign-upRuns in your browserUpdated November 2026
Number of equations
Equations
x+y=
x+y=

Write each equation as ax + by (+ cz) = d. Coefficients can be integers, decimals or fractions like −3/4. A blank box counts as 0.

Graph of the two lines
Solution
—
Consistency check
—
Method 1: elimination (Gauss–Jordan) step by step
—
Method 2: Cramer's rule (determinants)
—

How to use the System of Equations Solver

  1. Choose 2 × 2 for two equations in x and y, or 3 × 3 for three equations in x, y and z.
  2. Write each equation in the form ax + by (+ cz) = d and type the coefficients. Fractions like 1/3 and decimals both work.
  3. Read the exact solution at once, with a decimal value next to any fraction. The answer updates as you type.
  4. Follow the elimination steps and Cramer's rule, check the consistency tests and, for 2 × 2, see where the two lines meet on the graph.

Solving simultaneous linear equations

A system of linear equations asks for values of the unknowns that satisfy every equation at the same time. Two equations in x and y form a "pair of linear equations in two variables" (CBSE class 10, chapter 3). Three equations in x, y and z are solved with matrices and determinants in class 12. This solver uses two standard methods and works in exact fractions, so 1/3 never turns into 0.333333.

Method 1: elimination (Gauss–Jordan)

Write the system as an augmented matrix [A | B] and use three row operations: swap two rows, multiply a row by a non-zero number, and add a multiple of one row to another. None of these changes the solution. Each variable is eliminated from every other row until the matrix shows x, y and z directly. This is the matrix form of the elimination method from class 10.

Worked example (2 × 2): 2x + 3y = 13 and x − y = −1. Multiply the second equation by 2 and subtract it from the first: 5y = 15, so y = 3. Substituting back gives x = 3 − 1 = 2. The solution is (2, 3), and on the graph the two lines cross at that point.

Method 2: Cramer's rule

D = |A|, Dx = |A with column x replaced by B|, and so on x = Dx / D, y = Dy / D, z = Dz / D (only when D ≠ 0)

Worked example (3 × 3, NCERT style): x + y + z = 6, 2y + 5z = −4, 2x + 5y − z = 27. Here D = 1(−2 − 25) − 1(0 − 10) + 1(0 − 4) = −21. The other determinants are Dx = −105, Dy = −63 and Dz = 42, so x = 5, y = 3 and z = −2. Check: 5 + 3 − 2 = 6 ✓.

Consistency: one, none or infinitely many solutions

A system is consistent if it has at least one solution and inconsistent if it has none. For a 2 × 2 system written as a₁x + b₁y = c₁ and a₂x + b₂y = c₂, the class 10 ratio test decides. NCERT writes the equations as a₁x + b₁y + c₁ = 0, but the ratios and the conclusions are the same.

ConditionGraphSolutionsType
a₁/a₂ ≠ b₁/b₂Intersecting linesExactly oneConsistent
a₁/a₂ = b₁/b₂ = c₁/c₂Coincident linesInfinitely manyConsistent (dependent)
a₁/a₂ = b₁/b₂ ≠ c₁/c₂Parallel linesNoneInconsistent

For class 12 (matrix method, AX = B):

  • If |A| ≠ 0, the system is consistent with the unique solution X = A⁻¹B.
  • If |A| = 0 and (adj A)B ≠ O, the system is inconsistent.
  • If |A| = 0 and (adj A)B = O, the system may be consistent (infinitely many solutions) or inconsistent. The solver settles it by elimination and reports which.

The general rule behind all of these is the rank test (Rouché–Capelli). The system is consistent exactly when rank(A) = rank([A | B]), and the solution is unique when that rank equals the number of unknowns.

Common mistakes

  • Not writing every equation in the same order (x, y, z, then the constant). A missing variable has coefficient 0.
  • Moving a constant across the equals sign without changing its sign. 2x + 3y − 13 = 0 means 2x + 3y = 13.
  • Using Cramer's rule when D = 0. It cannot give an answer then; check Dx, Dy, Dz or use elimination.
  • Stopping at "D = 0, so no solution". D = 0 can also mean infinitely many solutions.

Exam tips

  • For "find k so that the system has no solution" questions in class 10, set a₁/a₂ = b₁/b₂, solve for k, and then check that c₁/c₂ is different.
  • In class 12 board answers, always state |A| ≠ 0 before writing X = A⁻¹B. Marks are given for that line.
  • Check the answer by substituting it into every original equation. The solver's exact fractions make this easy.
  • For larger systems or a full inverse with steps, use the matrix calculator.

Frequently asked questions

How do you know if a system of equations has no solution?
Elimination reaches an impossible row such as 0 = 5. For two equations, this happens when a₁/a₂ = b₁/b₂ ≠ c₁/c₂: the lines are parallel. In matrix terms, rank(A) is less than rank([A | B]).
What is the condition for infinitely many solutions?
For two equations: a₁/a₂ = b₁/b₂ = c₁/c₂, so both equations describe the same line. In general, the system is consistent and rank(A) = rank([A | B]) is less than the number of unknowns. The solver then gives the solution in terms of a parameter t.
How do you solve a 3×3 system using Cramer's rule?
Compute D = |A| and three more determinants Dx, Dy, Dz, each made by replacing one column of A with the constants. Then x = Dx/D, y = Dy/D and z = Dz/D. This works only when D ≠ 0.
What does consistent and inconsistent mean?
A consistent system has at least one solution (one, or infinitely many). An inconsistent system has none. On a graph, consistent pairs of lines intersect or coincide, and inconsistent pairs are parallel.
Can I enter fractions and decimals?
Yes. Type 3/4, −2.5 or 0.125. All arithmetic is exact using big-integer fractions, and every non-integer answer is shown both as a fraction and as a decimal.
What if D = 0 in Cramer's rule?
If D = 0 and any of Dx, Dy, Dz is non-zero, there is no solution. If all of them are 0, the system has either no solution or infinitely many, and you must use elimination (or the (adj A)B test) to decide.

Last reviewed November 2026. Results are estimates for information only — see our disclaimer.