System of Equations Calculator
Enter the coefficients of two or three linear equations to solve for x, y (and z), with the determinants and a check that the answer satisfies every equation.
How to use the calculator
Rewrite each equation in the form ax + by (+ cz) = d, moving all variables to the left and constants to the right. Enter the coefficients row by row, using 0 for a missing variable and negative numbers for subtraction. For 2x − y = 9, enter 2, −1 and 9.
Solving with Cramer's rule
For a 2 × 2 system:
| x | y | = | |
|---|---|---|---|
| Equation 1 | a | b | e |
| Equation 2 | c | d | f |
- D = ad − bc (the determinant of the coefficients)
- Dₓ = ed − bf (replace the x column with the constants)
- D_y = af − ec (replace the y column)
- x = Dₓ ÷ D, y = D_y ÷ D
Example: x + y = 6 and 2x − y = 9. D = (1)(−1) − (1)(2) = −3. Dₓ = (6)(−1) − (1)(9) = −15. D_y = (1)(9) − (6)(2) = −3. So x = 5, y = 1. Check: 5 + 1 = 6 ✓, 10 − 1 = 9 ✓.
3 × 3 systems work the same way with 3 × 3 determinants.
Three possible outcomes
| Determinant | Result | Picture (2 × 2) |
|---|---|---|
| D ≠ 0 | Exactly one solution | Lines cross at one point |
| D = 0, consistent | Infinitely many solutions | Same line twice |
| D = 0, inconsistent | No solution | Parallel lines |
Other methods
- Substitution: solve one equation for a variable and plug it into the other. Good when a coefficient is 1.
- Elimination: add or subtract multiples of the equations to cancel a variable. Usually fastest by hand.
- Matrices (Gaussian elimination): scales to larger systems; it's what spreadsheets and graphing calculators use.
All methods give the same answer. Cramer's rule is tidy for 2 × 2 and 3 × 3 systems and shows clearly when there's no unique solution.
Word problem example
Adult tickets cost $12 and child tickets $8; 50 tickets sold for $520. With a adults and c children: a + c = 50 and 12a + 8c = 520. Solving gives a = 30, c = 20.
Frequently asked questions
How do I solve a system of two equations?
Use substitution, elimination or Cramer's rule. With Cramer's rule, x = Dₓ ÷ D and y = D_y ÷ D, where D is the determinant of the coefficients.
What does it mean if the determinant is zero?
The system has no unique solution: either no solution (parallel lines or planes) or infinitely many (the same line or plane).
Can it solve equations with fractions or decimals?
Yes. Enter decimals directly; the calculator also shows answers as fractions when they're exact.
How do I check my answer?
Substitute the values back into every original equation; each side should match. The calculator does this for you.