System of Equations Calculator

A system of equations is two equations that have to be true at the same time, like 12x + 3y = 15 and 2x − 3y = 13. Solving it means finding the x and y that work in both: here, x = 2 and y = −3. Type the numbers in front of x and y, and the number after the equals sign, for each equation. The answer is exact (fractions, not 0.3333…), and the steps show the working with your numbers.

Equation 1: a1x + b1y = c1
x
y
Equation 2: a2x + b2y = c2
x
y

For 2x − 3y = 13, type −3 in the y box. Leave a letter out with 0.

Solution (x, y)
(2, −3) One solution

The lines cross at (2, −3): x is 2 and y is −3, which makes both equations true.

x as a decimal 2
y as a decimal −3
The lines Cross at one point

How to solve a system of equations

This calculator uses Cramer’s rule. Work out three numbers called determinants, D, Dx and Dy, each a cross-multiplication of four of your numbers. Then x is Dx ÷ D and y is Dy ÷ D. Here it is with your equations:

Cramer's rule: D = a₁b₂ − b₁a₂, then x = Dx ÷ D and y = Dy ÷ D, where Dx = c₁b₂ − b₁c₂ and Dy = a₁c₂ − c₁a₂

Here it is with your numbers:

  1. D = 12 × (−3) − 3 × 2, which is −42
  2. Dx = 15 × (−3) − 3 × 13, which is −84
  3. Dy = 12 × 13 − 15 × 2, which is 126
  4. x = Dx ÷ D: −84 ÷ (−42), which is 2
  5. y = Dy ÷ D: 126 ÷ (−42), which is −3
  6. Check in the first equation: 12 × 2 + 3 × (−3) is 15, and in the second, 2 × 2 + (−3) × (−3) is 13.

It means (2, −3) is the one point that is on both lines.

Source OpenStax College Algebra 2e · 7.8 Solving Systems with Cramer's Rule (Example 2) ↗

One solution, no solution or infinitely many

Each equation is a straight line, and a solution is a point on both lines. Two lines can meet in three ways:

  • They cross once: exactly one solution (an independent system). D is not 0.
  • They are parallel: no solution (inconsistent). D is 0, and Dx or Dy is not.
  • They are the same line: infinitely many solutions (dependent). D, Dx and Dy are all 0.

Source OpenStax College Algebra 2e · 7.1 Systems of Linear Equations: Two Variables (one, no or infinitely many solutions; substitution and addition) ↗

FAQs

What are the four ways to solve a system of equations?

Graphing, substitution, addition (also called elimination) and Cramer’s rule. Graphing finds where the two lines cross; substitution solves one equation for x or y and puts that into the other; addition multiplies the equations so one letter cancels when you add them; Cramer’s rule uses determinants, as in the steps above.

Source OpenStax College Algebra 2e · 7.1 Systems of Linear Equations: Two Variables (one, no or infinitely many solutions; substitution and addition) ↗

What is the fastest way to solve a system of equations?

It depends on the equations. If one is already “y = …” or “x = …”, substitution is quickest. If the same letter has matching or opposite numbers in front, addition cancels it in one step. Cramer’s rule always works the same way, which is why calculators use it.

Can a system of equations have no solution?

Yes, when the lines are parallel. x + 2y = 9 and x + 2y = 13 can’t both be true, so the system has no solution (it is called inconsistent). If the two equations are the same line, like x + 3y = 2 and 3x + 9y = 6, there are infinitely many solutions (dependent).

Sources

Related calculators