Skip to content
SmartDailyCalculator

Systems of Equations Calculator

Enter the coefficients and constants for two linear equations in x and y.

Solution

(x, y) = (2, 1)

Determinant (ae − bd)
-3
Working
x = (ce − bf) ÷ (ae − bd) = 2; y = (af − cd) ÷ (ae − bd) = 1
Check in equation 1
5 = 5
Check in equation 2
1 = 1

How to use the Systems of Equations Calculator

  1. Enter a, b and c for ax + by = c.
  2. Enter d, e and f for dx + ey = f.
  3. Read the solution classification and, when unique, the x and y values.

Determinant method for a 2 × 2 system

D=ae−bd
x=ce−bfD
y=af−cdD

Where:

a,b,c,d,e,f
= entered equation coefficients and constants
D
= determinant of the coefficient matrix
Show as plain text

ax + by = c dx + ey = f D = ae − bd x = (ce − bf) ÷ D; y = (af − cd) ÷ D

When the determinant is nonzero, the two equations have one solution, found by determinant formulas.

When it is zero, the equations are dependent (infinitely many solutions) or inconsistent (no solution). A small floating-point tolerance is used to classify near-zero determinants.

Assumptions and limitations

  • Equations are linear and use the form ax + by = c.
  • Coefficients and constants must be between −1,000,000,000 and 1,000,000,000.
  • A small machine-precision tolerance is used for determinant and consistency checks; extremely ill-conditioned systems may be sensitive to rounding.
  • Displayed solutions are rounded to eight decimal places.

Example: Solve 2x + y = 5 and x − y = 1

  1. The determinant is (2 × −1) − (1 × 1) = −3, so there is one solution.
  2. Using the determinant formulas gives x = 2 and y = 1.
  3. Substitution checks: 2(2) + 1 = 5 and 2 − 1 = 1.

When to use the Systems of Equations Calculator

  • Solving two simultaneous linear equations.
  • Checking whether two lines intersect, are parallel, or are the same line.
  • Using the line equation calculator to construct a line from coordinate points.

Systems of Equations Calculator FAQs

What does a zero determinant mean?

A zero determinant means the equations do not have one unique intersection. They either describe the same line (infinitely many solutions) or parallel lines (no solution).

Can the calculator solve equations with more than two variables?

No. It solves a 2 × 2 system with two variables, x and y.

Why might a result be rounded?

The calculator uses JavaScript floating-point arithmetic and displays solutions to eight decimal places. Exact rational outputs are not represented.

References

How this calculator was built and tested is explained in our methodology. Spotted a problem? Let us know.