System of Equations Calculator (2×2)

A system of two linear equations has one pair (x, y) that satisfies both. For 2x + 3y = 13 and x − y = −1 the solution is x = 2 and y = 3, found with the determinant D = −5 using Cramer’s rule.

Last updated · By · Runs in your browser, nothing is uploaded

Result

Step-by-Step Solution

Enter your values above to see the full working.

What Is a System of Linear Equations?

A system of equations is a set of equations that must all be true at the same time. With two unknowns, x and y, you need two equations, and each equation is a straight line on a graph. The solution is the point where the lines cross, because that point lies on both.

Systems model situations with two linked unknowns: the price of two different items from combined bills, the speeds of two vehicles, the quantities of two ingredients in a mixture. If you can write one equation per unknown, you can solve for all of them.

How Two Lines Can Meet

CaseDeterminant DPictureSolutions
Lines crossD ≠ 0Two lines meeting at one pointExactly one (x, y)
Parallel linesD = 0, inconsistentNever meetNone
Same lineD = 0, consistentLines lie on top of each otherInfinitely many

Cramer’s Rule for Two Equations

For the system a₁x + b₁y = c₁ and a₂x + b₂y = c₂:

D = a₁b₂ − a₂b₁ Dx = c₁b₂ − c₂b₁ x = Dx ÷ D Dy = a₁c₂ − a₂c₁ y = Dy ÷ D
  • D is the determinant of the coefficient matrix. If it is zero, the lines are parallel or identical.
  • Dx and Dy replace the x or y coefficients by the right-hand constants.
  • The same results come from elimination (adding multiples of the equations to cancel a variable) or substitution (solving one equation for a variable and inserting it into the other).

Determinants are covered further in the matrix determinant calculator and the Cramer’s rule calculator.

How Is It Calculated? Worked Examples

2x + 3y = 13 and x − y = −1

  1. Coefficients: a₁ = 2, b₁ = 3, c₁ = 13, a₂ = 1, b₂ = −1, c₂ = −1.
  2. D = 2(−1) − 1(3) = −2 − 3 = −5.
  3. Dx = 13(−1) − (−1)(3) = −13 + 3 = −10, so x = −10 ÷ −5 = 2.
  4. Dy = 2(−1) − 13(1) = −2 − 13 = −15, so y = −15 ÷ −5 = 3.
  5. Check: 2(2) + 3(3) = 13 ✓ and 2 − 3 = −1 ✓.

The Same System by Substitution

From x − y = −1, write x = y − 1. Substituting into the first equation: 2(y − 1) + 3y = 13, so 5y = 15 and y = 3, then x = 2.

Special Cases

SystemDResult
x + y = 2 and x + y = 50No solution (parallel lines)
x + y = 2 and 2x + 2y = 40Infinitely many (same line)
3x + 2y = 16 and x − y = 2−5x = 4, y = 2

A Word Problem

Two notebooks and three pens cost $13, and a notebook costs $1 less than a pen. With x for a notebook and y for a pen, 2x + 3y = 13 and x − y = −1, so a notebook is $2 and a pen is $3.

How to Use This System of Equations Calculator

  1. Write each equation in the form ax + by = c.
  2. Enter a₁, b₁, c₁ for the first equation and a₂, b₂, c₂ for the second.
  3. Read x, y and the determinant, or the message if the system has no unique solution.
  4. Open the steps to see Cramer’s rule applied.

Rearrange first if needed: y = 2x + 1 becomes −2x + y = 1, so a = −2, b = 1, c = 1.

Where Systems of Equations Are Used

  • Business: finding the break-even point where cost and revenue lines cross.
  • Chemistry: balancing equations and mixing solutions of different concentrations.
  • Physics and engineering: circuit analysis with Kirchhoff’s laws gives systems of equations.
  • Economics: supply and demand equilibrium.
  • Computer graphics and data science: large linear systems underlie regression and transformations.

What Are the Most Common Mistakes With the System of Equations Calculator (2×2)?

  • Not writing in standard form. Both equations must be rearranged to ax + by = c before you read the coefficients.
  • Losing minus signs. A coefficient of −1 for y matters.
  • Mistaking D = 0 for a calculation error. It signals parallel or identical lines.
  • Solving only for x. You need both x and y.
  • Skipping the check. Always substitute both values into both equations.
  • Limited to two unknowns. Larger systems need matrix methods.

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

How do you solve a system of two equations?

Use elimination, substitution or Cramer’s rule. With Cramer’s rule, x = Dx ÷ D and y = Dy ÷ D, where D = a₁b₂ − a₂b₁.

What does it mean if the determinant is zero?

The two lines are either parallel (no solution) or the same line (infinitely many solutions).

What is the difference between substitution and elimination?

Substitution solves one equation for a variable and inserts it in the other. Elimination adds or subtracts multiples of the equations to cancel one variable.

How can I tell whether the system has no solution or infinitely many?

If the equations are multiples of each other including the constant, there are infinitely many solutions. If only the left sides are multiples, there is no solution.

How do I check my answer?

Substitute x and y into both original equations. Both must hold.

What is the graphical meaning of the solution?

It is the point where the two lines intersect. For the default system the lines cross at (2, 3).