📐 System of Equations Calculator
By Shihab Mia · Updated 2026-08-03
Solve two linear equations in two unknowns: a1x + b1y = c1 and a2x + b2y = c2.
Enter both equations to solve the system.
This system of equations calculator solves two linear equations in two unknowns, written as a1x + b1y = c1 and a2x + b2y = c2, and returns the exact values of x and y the moment you finish typing. Enter the six coefficients, and the calculator applies Cramer’s rule to compute the determinant D and both solution values, then plugs x and y back into each equation so you can see the check balance in front of you. If the two lines are parallel it says so plainly, distinguishing a system with no solution from one with infinitely many solutions instead of just throwing a division error.
What is the System of Equations Calculator?
A system of equations is simply two or more equations that share the same variables and are meant to be true at the same time. For two linear equations in x and y, each equation on its own describes a straight line on a graph, and solving the system of equations means finding the single point, if one exists, where both lines cross. That point is the pair (x, y) that satisfies both equations simultaneously, which is why the same task is often called solving simultaneous equations.
There are three ways to solve a 2x2 system of equations by hand: substitution, elimination, and Cramer’s rule. Substitution isolates one variable in one equation and substitutes that expression into the other. Elimination adds or subtracts multiples of the two equations so one variable cancels out. Cramer’s rule, which this calculator uses, is the most systematic of the three because it turns the whole problem into a formula. Write the system as a1x + b1y = c1 and a2x + b2y = c2. The determinant of the coefficient matrix is D = a1b2 - a2b1. As long as D is not zero, the unique solution is x = (c1b2 - c2b1) / D and y = (a1c2 - a2c1) / D. Because it is a formula rather than a sequence of algebraic moves, Cramer’s rule is easy to check and easy to automate, which is exactly what happens behind the scenes in this system of equations calculator.
The determinant D tells you the geometric relationship between the two lines before you even compute x and y. If D is not zero, the two lines have different slopes, so they cross at exactly one point and the system has a unique solution. If D equals zero, the two lines are parallel, meaning they have the same slope, and dividing by D would be dividing by zero, which is undefined. In that parallel case there are only two possibilities: either the lines are distinct and never touch, so the system of equations has no solution and is called inconsistent, or the two equations actually describe the same line stacked on top of itself, in which case every point on that line is a solution and the system is called dependent, with infinitely many solutions. This calculator tells the two apart automatically by checking whether the constants c1 and c2 are consistent with a shared line.
Once a solver returns x and y, it is worth confirming the answer by substitution: plug both values back into the original two equations and check that each one still balances. This calculator does that check for you automatically whenever D is not zero, showing the left-hand side of each equation next to the target constant so a mismatch is obvious at a glance. That habit of verifying a system of equations after solving it catches sign errors and arithmetic slips before they carry into a homework grade or a real calculation.
When to use it
- Checking algebra homework on systems of linear equations before handing it in.
- Finding the break-even point where two cost or revenue lines intersect in a business or economics problem.
- Solving mixture, rate, or age word problems that translate into two equations with two unknowns.
- Verifying a solution found by hand using substitution or elimination against an independent calculation.
- Working through physics or engineering problems, such as two intersecting force or circuit equations, that reduce to a 2x2 linear system.
- Teaching the connection between a system of equations and the determinant, since D = 0 versus D ≠ 0 is easy to see instantly here.
How to use the System of Equations Calculator
- Write your two equations in the standard form a1x + b1y = c1 and a2x + b2y = c2, moving all x and y terms to the left side.
- Enter the six coefficients: a1, b1, c1 for the first equation and a2, b2, c2 for the second.
- Read the solution for x and y as it updates automatically, along with the determinant D and the substitution check.
- If the calculator reports that D is 0, check whether it says the system has no solution (inconsistent) or infinitely many solutions (dependent), and try a sample or your own values to compare.
Formula & method
Worked examples
Solve 2x + y = 5 and x − y = 1 (a1=2, b1=1, c1=5, a2=1, b2=−1, c2=1), the calculator’s default example.
- Determinant D = a1b2 − a2b1 = 2(−1) − 1(1) = −2 − 1 = −3
- D is not zero, so there is exactly one solution.
- x = (c1b2 − c2b1) ÷ D = (5(−1) − 1(1)) ÷ (−3) = (−5 − 1) ÷ (−3) = −6 ÷ −3 = 2
- y = (a1c2 − a2c1) ÷ D = (2(1) − 1(5)) ÷ (−3) = (2 − 5) ÷ (−3) = −3 ÷ −3 = 1
- Check: 2(2) + 1 = 5 correct, and 2 − 1 = 1 correct.
Result: x = 2, y = 1
Solve 2x + 3y = 13 and x − 2y = −4 (a1=2, b1=3, c1=13, a2=1, b2=−2, c2=−4).
- Determinant D = a1b2 − a2b1 = 2(−2) − 1(3) = −4 − 3 = −7
- D is not zero, so there is exactly one solution.
- x = (c1b2 − c2b1) ÷ D = (13(−2) − (−4)(3)) ÷ (−7) = (−26 + 12) ÷ (−7) = −14 ÷ −7 = 2
- y = (a1c2 − a2c1) ÷ D = (2(−4) − 1(13)) ÷ (−7) = (−8 − 13) ÷ (−7) = −21 ÷ −7 = 3
- Check: 2(2) + 3(3) = 4 + 9 = 13 correct, and 2 − 2(3) = 2 − 6 = −4 correct.
Result: x = 2, y = 3
What the determinant D = a1b2 − a2b1 tells you about the system
| Determinant | Meaning | Number of solutions |
|---|---|---|
| D ≠ 0 | The two lines have different slopes and cross at one point | Exactly one solution |
| D = 0, lines distinct | The lines are parallel and never meet (inconsistent) | No solution |
| D = 0, lines identical | Both equations describe the same line (dependent) | Infinitely many solutions |
Sample systems and their solutions
| Equation 1 | Equation 2 | D | Solution |
|---|---|---|---|
| 2x + y = 5 | x − y = 1 | −3 | x = 2, y = 1 |
| 2x + 3y = 13 | x − 2y = −4 | −7 | x = 2, y = 3 |
| 3x + 2y = 12 | x − y = 1 | −5 | x = 2.8, y = 1.8 |
| x + y = 4 | 2x + 2y = 8 | 0 | Infinitely many solutions (dependent) |
| x + y = 4 | 2x + 2y = 10 | 0 | No solution (inconsistent) |
Common mistakes to avoid
- Not writing the equation in standard form first. The formula assumes both equations are arranged as ax + by = c. If your equation looks like y = 3x + 2, rearrange it to −3x + y = 2 before reading off a, b and c, or the coefficients you enter will not match the equation you meant.
- Mixing up which equation is which. a1, b1, c1 must all come from the same equation, and a2, b2, c2 from the other. Swapping a single coefficient between the two rows quietly changes the system into a different problem with a different answer.
- Assuming D = 0 always means no solution. A zero determinant only means the two lines are parallel. That splits into two cases: no solution if the lines are distinct, or infinitely many solutions if the two equations describe the same line. Check the constants, not just the determinant, before concluding there is no answer.
- Forgetting to verify by substitution. A small sign error in Cramer’s rule can still produce a number that looks plausible. Always plug x and y back into both original equations, as this calculator does automatically, to confirm each one balances before trusting the result.
Glossary
- System of equations
- Two or more equations sharing the same variables that must all be true at the same time; here, two linear equations in x and y.
- Linear equation
- An equation where every variable appears to the first power only, so its graph is a straight line, such as ax + by = c.
- Coefficient
- The number multiplying a variable in an equation, such as a and b in ax + by = c; the constant c is not a coefficient.
- Determinant (D)
- For a1x + b1y = c1 and a2x + b2y = c2, the value D = a1b2 − a2b1, which reveals whether the system has one, none, or infinitely many solutions.
- Cramer’s rule
- A formula-based method for solving linear systems using determinants, giving x = (c1b2 − c2b1) ÷ D and y = (a1c2 − a2c1) ÷ D when D is not zero.
- Inconsistent system
- A system with no solution, geometrically two parallel lines that never intersect, which happens when D = 0 and the constants do not match a shared line.
- Dependent system
- A system with infinitely many solutions because both equations describe the identical line, which happens when D = 0 and the constants are proportional across both equations.
Frequently asked questions
How do you solve a system of two equations with two variables?
Write both equations as ax + by = c, then use substitution, elimination, or Cramer’s rule. Cramer’s rule is the fastest to automate: compute the determinant D = a1b2 − a2b1, then x = (c1b2 − c2b1) ÷ D and y = (a1c2 − a2c1) ÷ D, which is exactly what this calculator does.
What does it mean if the determinant is zero?
A determinant of zero means the two lines are parallel and have the same slope. Depending on the constants, the system either has no solution because the lines never meet, or infinitely many solutions because the two equations describe the same line.
Can a system of equations have more than one solution?
A system of two distinct linear equations in two unknowns has either exactly one solution, no solution, or infinitely many solutions, never a finite number greater than one. Infinitely many happens only when both equations reduce to the same line.
What is the difference between substitution and Cramer’s rule?
Substitution isolates one variable and plugs it into the other equation, which is intuitive but can get messy with fractions. Cramer’s rule instead uses a fixed determinant formula, so it produces the same answer with less room for algebra mistakes, especially when automated in a calculator.
How do I check that my answer to a system of equations is correct?
Substitute your x and y values back into both original equations and confirm each one balances. This calculator performs that substitution check automatically and shows the left-hand side of each equation next to its target constant.
What if my equation is not already in the form ax + by = c?
Rearrange it first. Move every x and y term to the left side and every constant to the right side, so an equation like y = 2x − 3 becomes −2x + y = −3 before you read off the coefficients a, b and c.