Life goals

System of Equations Calculator

How do I solve a system of equations?

Type the numbers in front of x, y (and z) and the number after the = sign for each equation. You get the values that make every equation true.

Free, no sign-upPrivate — runs in your browserUpdated November 2026
Answers as you type
More
System size
Solution
x = 2, y = 3
One unique solution
x
2
y
3
Determinant D
−5
Step-by-step solution
  1. Write the system in standard form: 2x + 3y = 13; x − y = −1.
  2. Find the determinant of the coefficients: D = 2×(−1) − 3×1 = −2 − 3 = −5.
  3. Replace the x column with the right-hand numbers: Dx = 13×(−1) − 3×(−1) = −13 − (−3) = −10.
  4. Replace the y column with the right-hand numbers: Dy = 2×(−1) − 13×1 = −2 − 13 = −15.
  5. Cramer's rule: x = Dx ÷ D = −10 ÷ (−5) = 2; y = Dy ÷ D = −15 ÷ (−5) = 3.
  6. Check by substituting the solution back into every equation — see the table below.

Check: substitute the solution

EquationLeft sideRight sideOK
2x + 3y = 132×2 + 3×3 = 1313✓
x − y = −11×2 + (−1)×3 = −1−1✓

What can I do with my answer?

  1. If a variable is missing from an equation, type 0 as its coefficient.
  2. Move every term to the left and the plain number to the right before typing: 2x = 13 − 3y becomes 2x + 3y = 13.
  3. Always plug the answer back into each original equation to check it — the table does this for you.

People also use

Learn more

At a glance

Enter the coefficients of two equations in x and y, or three equations in x, y and z. You get the exact solution, the determinants behind it, and a check — or a clear explanation when there is no solution or infinitely many.

FormulaD = a₁b₂ − b₁a₂   Dx = c₁b₂ − b₁c₂   Dy = a₁c₂ − c₁a₂  →  x = Dx/D,  y = Dy/D
Also searched assystem of equations solver · simultaneous equations calculator · cramer's rule calculator · solve linear equations · 3 variable system of equations · two equations two unknowns

What is a system of linear equations?

A system of equations is a set of two or more equations that must all be true at the same time. In a linear system every variable appears only to the first power, so each equation in two variables draws a straight line, and each equation in three variables draws a flat plane. Solving the system means finding the point where all of them meet. Systems like this show up whenever two or three unknowns are linked — mixing solutions in chemistry, comparing phone plans, balancing a budget, or finding the prices of items from two receipts.

How to use the calculator

  1. Choose 2 equations (unknowns x and y) or 3 equations (x, y and z).
  2. Rewrite each equation in standard form, with the variables on the left and the plain number on the right: ax + by + cz = k.
  3. Type each coefficient. Use a negative number for a minus sign, 1 for a variable with no number in front, and 0 when a variable is missing.

The answer shows the solution (as exact fractions when your inputs are whole numbers), the determinants used, and a table that substitutes the answer back into every equation so you can see it works.

Cramer's rule

For a 2 × 2 system a₁x + b₁y = c₁ and a₂x + b₂y = c₂, Cramer's rule uses three determinants:

D = a₁b₂ − b₁a₂   Dx = c₁b₂ − b₁c₂   Dy = a₁c₂ − c₁a₂  →  x = Dx/D,  y = Dy/D

Dx is the coefficient determinant with the x column replaced by the right-hand numbers, and Dy replaces the y column. The 3 × 3 version works the same way with 3 × 3 determinants, which are expanded along the first row: a(ei − fh) − b(di − fg) + c(dh − eg). The matrix calculator computes these determinants on their own.

Worked example (the default inputs)

Solve 2x + 3y = 13 and x − y = −1.

  • D = 2 × (−1) − 3 × 1 = −2 − 3 = −5
  • Dx = 13 × (−1) − 3 × (−1) = −13 + 3 = −10
  • Dy = 2 × (−1) − 13 × 1 = −2 − 13 = −15
  • x = −10 ÷ −5 = 2, and y = −15 ÷ −5 = 3

Check: 2(2) + 3(3) = 13 ✓ and 2 − 3 = −1 ✓. Switch to three equations and the default system 2x + 3y + 4z = 13, x − y − 3z = −1, 3x − 2y + z = 8 has D = −40 and the solution x = 3, y = 1, z = 1.

Elimination: the same answer by hand

Elimination is often quicker on paper. Multiply equations so that one variable has matching coefficients, then add or subtract to cancel it. In the example, multiply the second equation by 3 to get 3x − 3y = −3, then add it to 2x + 3y = 13: the y terms cancel, leaving 5x = 10, so x = 2. Substituting into x − y = −1 gives y = 3. Cramer's rule and elimination always agree; the calculator uses elimination to decide what happens when D = 0.

No solution or infinitely many

When the determinant D is 0, there is no single answer. Two things can happen:

  • No solution (inconsistent): the lines are parallel, as in x + y = 2 and x + y = 3. Elimination produces a false statement such as 0 = 1.
  • Infinitely many solutions (dependent): one equation is a multiple of another, as in x + y = 2 and 2x + 2y = 4. Every point on the shared line works, and the calculator gives a general solution such as x = t, y = 2 − t.

The calculator tells these apart by comparing the rank of the coefficient matrix with the rank of the matrix that includes the right-hand side — the standard test from linear algebra.

Common mistakes

  • Not lining up the variables — every equation must list x, then y, then z, with the constant alone on the right.
  • Dropping a negative sign when moving a term across the = sign.
  • Leaving a box empty instead of typing 0 for a missing variable.
  • Rounding too early — keep fractions until the end. For quadratic rather than linear equations, use the quadratic formula calculator; to see one line's steepness, try the slope calculator.

Sources: Cramer's rule, determinant expansion and the rank test for consistency (Rouché–Capelli theorem) are standard results found in introductory linear algebra texts, such as Gilbert Strang's Introduction to Linear Algebra, and in OpenStax College Algebra, chapter 7.

Checked by the Calcivia team using our checking rules · Last updated .
Cite or link to this page

Using this system of equations calculator in an article, report or homework? Copy a citation or a ready-made link:

APACalcivia. (2026). System of Equations Calculator. Retrieved November 11, 2026, from https://www.calcivia.com/system-of-equations-calculator/
MLA"System of Equations Calculator." Calcivia, 2026, https://www.calcivia.com/system-of-equations-calculator/. Accessed 11 Nov. 2026.
HTML link<a href="https://www.calcivia.com/system-of-equations-calculator/">System of Equations Calculator</a> by Calcivia
Did this help you?

Questions people ask

What is Cramer's rule?

It solves a linear system using determinants: each variable equals the determinant with that variable's column replaced by the constants, divided by the determinant of the coefficients. It only works when that main determinant is not zero.

How do I know if a system has no solution?

If the determinant is 0 and elimination leads to a false statement such as 0 = 5, the system has no solution. For two equations, this means the lines are parallel.

What does infinitely many solutions mean?

The equations describe the same line (or plane), so every point on it satisfies all of them. One equation is just a multiple or combination of the others.

Which method is best: substitution, elimination or Cramer's rule?

They always give the same answer. Substitution is easy when a variable already has coefficient 1, elimination is fastest by hand in most cases, and Cramer's rule gives a direct formula that is easy to check.

Can I solve equations with fractions or decimals?

Yes. Type decimals directly, such as 0.5 for one half. With whole-number inputs the calculator also shows the exact fractional answer.