Calculateus

System of Equations Solver

Solve a system of two linear equations with two unknowns using Cramer's rule.

Result

x =
3.285714
y =
3.142857

Solves a₁x + b₁y = c₁ and a₂x + b₂y = c₂ using Cramer's rule.

About the System of Equations

Two linear equations with two unknowns can be solved by hand through substitution or elimination, but Cramer's rule offers a direct formula that skips the multi-step algebra entirely. Our System of Equations Solver applies it instantly to find both x and y.

How It Works

You enter the coefficients and right-hand side of two equations in the form a₁x + b₁y = c₁ and a₂x + b₂y = c₂. The calculator computes the determinant of the coefficient matrix and uses Cramer's rule to solve directly for x and y.

Determinant: D = a₁b₂ − a₂b₁ x = (c₁b₂ − c₂b₁) ÷ D y = (a₁c₂ − a₂c₁) ÷ D

Formula & Methodology

Cramer's rule solves a system of linear equations using determinants instead of step-by-step elimination. The main determinant D comes from the coefficients of x and y across both equations; if D is zero, the two lines described by the equations are either parallel (no intersection, no solution) or identical (infinitely many intersections, infinitely many solutions), and Cramer's rule can't isolate a single answer either way. When D is nonzero, x is found by replacing the x-coefficients in D with the right-hand-side constants and dividing by D, and y is found the same way using the y-coefficients. This gives a direct formula equivalent to solving the system by elimination, without needing to manually combine the equations.

Step-by-Step: Calculating It By Hand

  1. 1Write the system as a₁x + b₁y = c₁ and a₂x + b₂y = c₂.
  2. 2Compute the determinant D = a₁b₂ − a₂b₁.
  3. 3If D is zero, the system has no unique solution; stop here.
  4. 4Otherwise, compute x = (c₁b₂ − c₂b₁) ÷ D and y = (a₁c₂ − a₂c₁) ÷ D.

Examples

Unique solution

For 2x + 3y = 16 and 4x − y = 10: the determinant is −14, giving x = 3.14 and y = 3.24 (rounded).

No unique solution

For x + y = 5 and 2x + 2y = 10, the determinant is zero since the second equation is just double the first, meaning infinitely many (x, y) pairs work.

Advantages

  • Solves for both unknowns directly, without manual substitution or elimination
  • Clearly flags systems with no unique solution instead of returning a misleading answer
  • Works for any pair of linear equations in standard form
  • Much faster than working through elimination by hand

Common Mistakes

  • Entering coefficients in the wrong order and mismatching them with the equation they belong to
  • Not checking whether the determinant is zero before trusting the x and y results
  • Confusing a system with no solution (parallel lines) with one that has infinite solutions (identical lines)
  • Rounding intermediate determinant values before the final division, which compounds error

Edge Cases to Watch For

  • A zero determinant means the two lines are parallel (no solution) or identical (infinite solutions), and this calculator can't distinguish between the two automatically.
  • Very small nonzero determinants can make x and y sensitive to small input changes, since dividing by a near-zero number amplifies error.
  • Solutions are not restricted to whole numbers; fractional x and y values are common and valid.

Common Use Cases

  • Algebra coursework on systems of linear equations
  • Business problems involving two constraints, like break-even or mixture problems
  • Quick verification of systems solved by hand using substitution or elimination
  • Engineering and physics problems that reduce to two equations and two unknowns
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

Why does the calculator say there's no unique solution?

When the determinant (a₁b₂ − a₂b₁) is zero, the two lines are either parallel (no solution) or the same line (infinitely many solutions) - either way, Cramer's rule can't isolate a single x, y pair.

Conclusion

Cramer's rule turns a multi-step elimination process into a couple of determinant calculations, which is especially handy for double-checking work done by hand. If your system only has one unknown, our Linear Equation Solver handles that simpler case directly.