System of Equations Calculator

Solve two or three linear equations at once, with determinants and substituted steps. Coin and age word-problem modes turn the story into equations and solve them the same way.

Solutionx = 1, y = 2

-1000000000000 – 1000000000000

-1000000000000 – 1000000000000

-1000000000000 – 1000000000000

-1000000000000 – 1000000000000

-1000000000000 – 1000000000000

-1000000000000 – 1000000000000

Solution

x = 1, y = 2

  • x1.0000000000
  • y2.0000000000
  • Determinant D-5.0000000000

Solved with Cramer's rule, which applies when the determinant is nonzero. Results are floating-point, shown to 10 significant digits.

How this was calculated

Equation 1: 2x + 3y = 8

Equation 2: 1x − 1y = -1

D = a₁b₂ − a₂b₁ = 2×(-1) − 1×3 = -5

Dx (column 1 replaced by constants) = 8×(-1) − (-1)×3 = -5

Dy (column 2 replaced by constants) = 2×(-1) − 1×8 = -10

x = Dx ÷ D = -5 ÷ -5 = 1

y = Dy ÷ D = -10 ÷ -5 = 2

Check equation 1: 2×1 + 3×2 = 8

Cramer's rule

Write the system as A·x = b. For two equations a₁x + b₁y = c₁ and a₂x + b₂y = c₂, the determinant is D = a₁b₂ − a₂b₁. Replace the x column with the constants to get Dx = c₁b₂ − c₂b₁, and the y column to get Dy = a₁c₂ − a₂c₁. Then x = Dx ÷ D and y = Dy ÷ D.

Three equations work the same way with 3×3 determinants, expanded as a(ei − fh) − b(di − fg) + c(dh − eg).

If D = 0 there is no single answer. The calculator then row-reduces the system: if the constants contradict the equations, there is no solution; if one equation is a combination of the others, there are infinitely many.

Worked example

Solve 2x + 3y = 8 and x − y = −1. D = 2 × (−1) − 1 × 3 = −5. Dx = 8 × (−1) − (−1) × 3 = −5 and Dy = 2 × (−1) − 1 × 8 = −10.

So x = −5 ÷ −5 = 1 and y = −10 ÷ −5 = 2. Check: 2(1) + 3(2) = 8.

Coin and age word problems

Coin problem: 20 dimes and quarters are worth $3.80. With x dimes and y quarters, x + y = 20 and 10x + 25y = 380 (in cents). Solving gives 8 dimes and 12 quarters. Answers that are not whole, non-negative counts are rejected.

Age problem: A is 3 times as old as B, and in 10 years A will be twice as old as B. Then A = 3B and A + 10 = 2(B + 10), so B = 10 and A = 30. Use a negative number of years for statements about the past.

Word problem set-ups
ProblemEquation 1Equation 2
Coinsx + y = total countv₁x + v₂y = total value
Ages (ratio now)A = pB + qA + N = r(B + N) + s
Ages (sum now)A + B = TA + N = r(B + N) + s

How to use the System of Equations Calculator

Choose the problem type, enter the coefficients or story numbers and read the solution.

  1. Pick the problem type

    Choose 2×2, 3×3, coin word problem or age word problem.

  2. Enter the numbers

    Type each equation's coefficients and constant, or the coin and age facts.

  3. Read the solution

    See the values with determinants, or a note when there is no unique solution.

References

Frequently asked questions

How do I know if a system has no solution?

The determinant is 0 and the equations contradict each other, such as x + y = 2 and 2x + 2y = 5. Graphically the lines are parallel. The calculator reports this and shows the ranks from elimination.

What does infinitely many solutions mean?

The equations describe the same line or plane, such as x + y = 2 and 2x + 2y = 4. Every point on it satisfies the system, so there is no single answer.

How do I set up a coin word problem?

Let x and y be the counts of each coin. One equation adds the counts to the total number of coins; the other adds count × value to the total value, in cents. Choose the coins and totals in coin mode and the calculator does the rest.

Last updated . Results are estimates for informational purposes only.