System of Equations Solver
Solve a system of two linear equations for x and y - type your equations or enter coefficients, choose Auto, Substitution, Elimination, or Cramer's Rule, and see an interactive graph and genuine step-by-step working.
Not sure how to find your coefficients? See the step-by-step guide below →
Last updated August 18, 2026
Full Walkthrough: x + y = 7, x + 2y = 11 (a single, whole-number solution)
x + y = 7, x + 2y = 11 (a single, whole-number solution) - solved below step by step, graphed, and explained.
Method: Cramer's Rulex = 3, y = 4
Step-by-Step Solution
Set up the system
x + y = 7 and x + 2y = 11.
Calculate the determinant
D = (a1 × b2) − (a2 × b1) = (1 × 2) − (1 × 1) = 2 − 1 = 1.
Determine the solution type
since D = 1 is not zero, this system has exactly one solution, found using Dₓ and D𝑦.
Solve for x
Dₓ = (c1 × b2) − (c2 × b1) = (7 × 2) − (11 × 1) = 14 − 11 = 3.
x = Dₓ ÷ D = 3 ÷ 1 = 3.
Solve for y
D𝑦 = (a1 × c2) − (a2 × c1) = (1 × 11) − (1 × 7) = 11 − 7 = 4.
y = D𝑦 ÷ D = 4 ÷ 1 = 4.
Verify the solution
In Equation 1 (x + y = 7): the exact solution (x = 3, y = 4) satisfies this equation exactly - verified using exact rational arithmetic, not a floating-point approximation. The displayed value (x = 3, y = 4) is this exact solution with no rounding needed.
In Equation 2 (x + 2y = 11): the exact solution (x = 3, y = 4) satisfies this equation exactly - verified using exact rational arithmetic, not a floating-point approximation. The displayed value (x = 3, y = 4) is this exact solution with no rounding needed.
Why this works
This system is solved with Cramer's Rule: compute the determinant D from the four x/y coefficients, then use it to find x and y directly - unless D is zero, in which case the system has no single unique solution.
Formula
Cramer's Rule: x = Dₓ ÷ D, y = D𝑦 ÷ D, where D = a1b2 − a2b1, Dₓ = c1b2 − c2b1, D𝑦 = a1c2 − a2c1
Graph of the two lines
The two lines cross at exactly one point, (3, 4) - the system's one solution.
What the graph shows
Each equation is a straight line. The solution is the one point where the two lines intersect.
Both equations are true at (3, 4)
- 1(3) + 1(4) = 7
- 1(3) + 2(4) = 11
Try it yourself!
Trace along either line away from the marked point - you'll leave the other line behind. Only at that one point are you standing on both lines at once.
Visual Explanation
Two lines on a graph
Each linear equation in two unknowns graphs as a perfectly straight line. Two lines that point in different directions (different slopes) are guaranteed to cross - they can't both stay parallel forever on an infinite plane.
What the crossing point means
The point where the two lines cross, (3, 4), is the one (x, y) pair that lies on BOTH lines at once. Graphically that's "the shared point"; algebraically it's exactly the same idea - substituting x = 3 and y = 4 into Equation 1 and Equation 2 makes both equations true simultaneously, which is what "solving the system" means.
Solution in context
x = 3, y = 4 is not an approximation read off the picture - it's the exact value Cramer's Rule computed from your six coefficients. The graph is a visual confirmation of that same arithmetic, not a separate method.
x = 3
y = 4
Key Takeaways
Why the graph and the algebra always agree
A system of two linear equations and their graph are two views of the same information. Solving algebraically (Cramer's Rule) and finding where the lines cross graphically are answering the identical question - "which (x, y) pairs make both equations true?" - so a correctly computed answer and a correctly drawn graph can never disagree.
Why Cramer's Rule works, in plain terms
Cramer's Rule computes one number, D, from the four x/y coefficients alone - it measures whether the two lines point in different directions (D ≠ 0) or the same direction (D = 0). When they point in different directions there's exactly one crossing point, and two more determinants (Dx and Dy, each built by swapping in the right-hand-side constants) locate it directly, without guessing or trial and error.
If your system has a unique solution
There's exactly one (x, y) pair where the two lines cross. That pair is the answer, and substituting it back into both original equations is the standard way to double-check it by hand.
If your system has no solution
The two lines are parallel and distinct - same slope, different intercepts. No (x, y) pair can lie on both, which is a complete, valid answer, not an error.
If your system has infinitely many solutions
The two equations describe the same line. Every point on it satisfies both equations, so the "answer" is the whole line rather than a single point.
Substitution Example: x - y = 1, 2x + 3y = 12
Two numbers have a difference of 1 - the first is 1 more than the second - and twice the first number plus three times the second number totals 12. What are the two numbers?
Method: Substitutionx - y = 1
2x + 3y = 12
x = 3, y = 2
Why substitution works well here
The first equation already isolates x with a coefficient of 1 (x - y = 1 means x = 1 + y), so substitution needs no extra rearranging before the first real step.
Step-by-Step Solution
Isolate x in Equation 1
x - y = 1 has a x-coefficient of 1 (clean to isolate, no awkward fraction introduced), so it's chosen for isolation. Solving for x: x = 1 + 1y.
Substitute into Equation 2
replacing x in 2x + 3y = 12 with the expression above and multiplying through by 1 to clear the fraction gives (1 × 3 − 2 × (-1))y = 1 × 12 − 2 × 1, which simplifies to 5y = 10.
Solve the one-variable equation
5y = 10, so y = 10 ÷ 5 = 2.
Back-substitute to find x
using x = 1 + 1y with y = 2: x = 1 + 1 × 2 = 3.
Verify against both original equations using exact rational arithmetic, not a floating-point approximation
In Equation 1 (x - y = 1): the exact solution (x = 3, y = 2) satisfies this equation exactly. In Equation 2 (2x + 3y = 12): the exact solution satisfies this equation exactly. The displayed value (x = 3, y = 2) is this exact solution with no rounding needed.
Both equations are true at (3, 2)
- 1(3) - 1(2) = 1
- 2(3) + 3(2) = 12
What the answer means
x = 3 and y = 2 - the first number is 3 and the second is 2, the only combination where the first is 1 more than the second and the weighted total comes to 12.
Elimination Example: 2x + 3y = 12, 2x - y = 4
Twice one number plus three times a second number totals 12, while twice the first number minus the second number totals 4. What are the two numbers?
Method: Elimination2x + 3y = 12
2x - y = 4
x = 3, y = 2
Why elimination works well here
Both equations already have the same x-coefficient (2), so subtracting one equation from the other cancels x immediately with no scaling step needed first.
Step-by-Step Solution
Choose x to eliminate
multiply Equation 1 by 1 and Equation 2 by 1 so both equations have the same-magnitude x-coefficient.
Transform both equations
Equation 1 × 1: 2x + 3y = 12. Equation 2 × 1: 2x - y = 4.
Subtract the two transformed equations to cancel x
this leaves 4y = 8.
Solve the reduced equation
4y = 8, so y = 8 ÷ 4 = 2.
Back-substitute into Equation 1 (an original equation, not a scaled one) to find x
2x + 3y = 12 with y = 2 gives 2 × x + 3 × 2 = 12, so x = 3.
Verify against both original equations using exact rational arithmetic, not a floating-point approximation
In Equation 1 (2x + 3y = 12): the exact solution (x = 3, y = 2) satisfies this equation exactly. In Equation 2 (2x - y = 4): the exact solution satisfies this equation exactly. The displayed value (x = 3, y = 2) is this exact solution with no rounding needed.
Both equations are true at (3, 2)
- 2(3) + 3(2) = 12
- 2(3) - 1(2) = 4
What the answer means
The ordered pair (3, 2) is the only combination of numbers that makes both totals true at the same time.
System of Equations Calculator Guide
A complete guide to systems of equations: what they are, the three possible outcomes, how to solve one by hand three different ways, and exactly how this calculator solves one internally.
What Is a System of Equations?
A system of equations is a set of two or more equations that share the same variables, and solving it means finding the one set of values (for two variables, the one (x, y) pair) that makes every equation in the set true at the same time. A single equation on its own, like x + y = 7, has infinitely many solutions; adding a second equation with the same variables, like x + 2y = 11, narrows that down to exactly the pairs both equations agree on. For these two equations, that shared pair is x = 3 and y = 4, the only combination that satisfies both at once.
Understanding the Parts of a System
Every linear equation in a system can be written as ax + by = c, where x and y are the variables being solved for, a and b are their coefficients, the fixed numbers multiplying each variable, and c is the constant on the equation's own right-hand side. In x + 2y = 11, a = 1, b = 2, and c = 11; a system of two such equations has six of these values in total, labeled a1, b1, c1 for the first equation and a2, b2, c2 for the second. A pair of values satisfies the complete system only when substituting them into both equations, not just one, makes each equation's left side equal its own right side; satisfying one equation alone says nothing about whether the other holds.
Types of Systems of Equations
A linear system is one where every equation graphs as a straight line: each variable appears only to the first power, with no products of variables, exponents, or roots involved. This calculator solves linear systems specifically: two linear equations in two unknowns. A nonlinear system, where at least one equation involves a squared term, a product of two variables, or a similar non-linear expression, needs different solving techniques entirely and isn't something this tool computes. A system is called consistent when at least one solution exists, and inconsistent when no pair of values satisfies both equations at once; this calculator identifies which of these applies automatically from the coefficients you enter, without you needing to work it out first.
Types of Solutions
A linear system of two equations always has exactly one of three outcomes.
One Solution
Happens when the two equations' lines cross at a single point: graphically, two lines heading in different directions meet exactly once, and algebraically, this is the case whenever the determinant D = a1b2 - a2b1 is not zero. x + y = 7 and x + 2y = 11 fall into this case: their lines intersect only at (3, 4).
No Solution
Happens when the two lines are parallel but never touch: the same slope, different intercepts. Graphically, the lines run side by side forever without meeting; algebraically, this is a D = 0 case where the two equations' constants don't line up the same way their coefficients do.
Infinitely Many Solutions
Happens when the two equations describe the exact same line, just written differently, for example one equation multiplied through by a constant. Every point on that shared line satisfies both equations, so there's no single (x, y) pair but rather an unlimited number of them; algebraically, this is also a D = 0 case, distinguished from "no solution" by checking whether the constants line up too.
How to Solve a System of Equations Manually
Three genuinely different approaches reach the same answer for a system like this one.
Substitution
Works in five steps: isolate one variable in one equation, substitute that expression into the other equation, solve the resulting single-variable equation, substitute the result back to find the first variable, then verify both values in the original equations. Applied to x + y = 7 and x + 2y = 11: solving the first equation for y gives y = 7 - x; substituting into the second gives x + 2(7 - x) = 11, which simplifies to x + 14 - 2x = 11, then -x = -3, so x = 3; substituting back gives y = 7 - 3 = 4.
Elimination
Instead aligns the two equations, multiplies one or both by a constant if needed so a variable's coefficients match or become opposites, adds or subtracts the equations to cancel that variable, solves the single remaining variable, substitutes back, and verifies. For the same system, subtracting the first equation from the second directly cancels x: (x + 2y) - (x + y) = 11 - 7 simplifies to y = 4; substituting back into x + y = 7 gives x = 3.
Cramer's Rule
Takes a different approach from the first two: instead of manipulating the equations themselves, it works entirely from determinants built out of the six coefficients. First it computes D = a1b2 - a2b1 from just the x and y coefficients. Then it computes that same kind of determinant twice more: once with the x-coefficients swapped out for the constants (giving Dx), once with the y-coefficients swapped out the same way (giving Dy). As long as D isn't zero, x and y fall out immediately as Dx / D and Dy / D, with no elimination or back-substitution step needed at all.
Auto
A fifth option alongside the three hand methods above, and the calculator's own default: rather than asking you to choose in advance, Auto reads your six coefficients and works out which of Substitution, Elimination, or Cramer's Rule will produce the shortest, most readable path to the answer for that specific system, then names its pick and the reason on the result screen. The check runs in a fixed order - first for any coefficient sitting at exactly 1 or -1 (a free isolation for Substitution), then for two coefficients on the same variable that already share a magnitude (a clean cancellation for Elimination) - and defaults to Cramer's Rule whenever neither pattern shows up. None of this changes the mathematics: all three underlying methods land on the identical (x, y) pair every time, so Auto's choice is about which explanation reads easiest, never about which one is "right."
Graphing
Represents each equation as a line and reads the solution off as the point where the lines meet, useful for an intuitive picture of "one solution," "no solution," and "infinitely many solutions," but less practical than an algebraic method when the exact answer involves a fraction or a long decimal that's hard to read precisely off a graph.
Which Method Should You Use?
Picking between the four options here - Substitution, Elimination, Cramer's Rule, and Auto - is entirely a matter of convenience and what you're trying to practice, never a matter of accuracy: no matter which one computes it, x and y come out identical. Substitution tends to feel most natural when one equation already has a variable with a coefficient of 1 or -1, since isolating it takes no extra arithmetic. Elimination tends to feel most natural when a variable's coefficients already match (or are simple multiples) across the two equations, since cancelling it needs little or no scaling. Cramer's Rule is a consistent fallback for any system, including ones where neither shortcut applies, and it's often preferred when you want to see the determinant explicitly. If you're practicing a specific method for a class or homework assignment, select it directly rather than leaving the calculator on Auto, so the steps shown match what you're expected to demonstrate.
Worked Example
Take x + y = 7 and x + 2y = 11 as one concrete illustration of how these ideas fit together. Both equations involve the same two unknowns, so a genuine solution has to satisfy each one, not just make one of them true. Every method above reaches the same answer here: x = 3 and y = 4. Substitution finds it by expressing y in terms of x and folding that into the second equation; elimination finds it by subtracting one equation from the other to cancel x directly; Cramer's Rule finds it from the determinant D = (1)(2) - (1)(1) = 1, nonzero, confirming a single unique solution exists before the exact values are even computed. This calculator's own dedicated examples above work through a Substitution system and an Elimination system numerically, each using that method's own real steps rather than narrating it in the abstract the way this section does; the Cramer's Rule walkthrough further above does the same for this exact system.
What the CloudCalcApp System of Equations Calculator Does
This calculator solves a system of two linear equations in two unknowns from six coefficients you provide: a1, b1, c1 for the first equation and a2, b2, c2 for the second, in the standard a1x + b1y = c1 / a2x + b2y = c2 form. You can solve with Substitution, Elimination, or Cramer's Rule directly, or leave it on Auto and let the calculator pick whichever gives the clearest steps for your numbers; whichever you pick, the underlying (x, y) pair never changes, since a system of equations has only one correct answer regardless of how it's reached. It returns one of three outcomes automatically: a unique (x, y) pair, "No solution," or "Infinitely many solutions," decided from the coefficients, not something you need to identify yourself in advance. Alongside the result, it shows the actual intermediate values computed for your own numbers and selected method, not a generic template, plus a final step substituting the result back into both original equations. It does not currently solve systems with three or more equations or unknowns, or nonlinear systems.
How to Find Your Coefficients
If your equation isn't already written as ax + by = c, rearrange it first: move every x-term and y-term to the left side and the plain number to the right. 3x + 2y = 12 is already in that form, so its coefficients are simply a = 3, b = 2, c = 12. An equation like y = 5 - x needs one step first: add x to both sides to get x + y = 5, giving a = 1, b = 1, c = 5. If a variable doesn't appear at all, like 2x = 8, its coefficient is 0, not blank; write it mentally as 2x + 0y = 8. A variable written on its own, like x + y = 7, has a coefficient of 1, not 0; "x" alone means "1x." Once each equation is in this form, its three numbers map directly onto this calculator's a1/b1/c1 or a2/b2/c2 fields.
How to Use the System of Equations Calculator
1. Enter the first equation's coefficients (a1, b1) and constant (c1). 2. Enter the second equation's coefficients (a2, b2) and constant (c2). 3. Double-check every sign: a misplaced negative changes the entire result. 4. Optionally choose Substitution, Elimination, or Cramer's Rule if you want to see that method's own steps specifically - otherwise leave it on Auto. 5. Select Calculate. 6. Read the x and y values from the result. 7. Follow the generated steps - written for whichever method was used - to see exactly how that answer was reached. 8. Check the final verification step, which substitutes your x and y back into both original equations.
Common Mistakes
A handful of mistakes account for most wrong answers here: losing a sign when moving a term across the equals sign (writing x + y = 7 as x = 7 + y instead of x = 7 - y); entering a coefficient in the wrong field or swapping a and b, which silently changes which variable a number belongs to; confusing a constant with a coefficient; substituting an expression back into the same equation it came from instead of the other one, which never actually isolates the second variable; forgetting to multiply every term, not just the one being eliminated, during elimination; and, in Cramer's Rule specifically, a single sign error inside a determinant calculation, which flips the entire result. Skipping verification at the end lets any of these slip through unnoticed.
How to Verify a Solution
Finding x and y isn't the last step; confirming they're correct is. A pair of values only counts as a solution once it makes both equations true at the same time, so check each equation on its own rather than assuming the first one being correct means the second is too. With x = 3 and y = 4: the first equation checks out as 3 + 4 = 7, and the second as 3 + 2(4) = 11. Since both hold, the pair is genuinely a solution; if either had failed to balance, an earlier step would need re-checking.
Real-World Applications
Systems of equations show up whenever two related quantities both need to satisfy separate conditions at once: a ticket-sales problem pairing total tickets sold with total revenue to find how many of each type sold, a pricing problem combining a fixed cost with a per-unit cost across two purchase scenarios, a mixture problem pairing total volume with ingredient concentration, a distance/rate/time problem pairing distance with speed or time, or business planning balancing a quantity constraint against a cost constraint.
System of Equations vs. a Single Equation
A system is the right tool whenever a problem has two unknowns and two independent conditions that both need to hold at once; one equation alone can't pin down two unknowns, since it has infinitely many valid (x, y) pairs on its own. If a problem only has a single unknown (one variable, one equation, like 3x + 5 = 20), a system isn't needed at all, and the Linear Equation Solver handles that simpler case directly, without the extra six-coefficient setup this calculator's two-equation form requires.
Conclusion
A system of equations is just two or more conditions on the same variables that all have to hold together, and its solution (one pair, no pair, or infinitely many) depends entirely on how the equations relate to each other. Substitution, elimination, and Cramer's Rule all reach the same answer by different routes; this calculator uses Cramer's Rule internally and shows the real computation behind your own numbers, not a generic narration. Whichever method you use by hand, always finish by substituting the result back into both original equations; that's the only way to confirm a solution is actually correct.
FAQ
What is a system of equations?
A system of equations is a set of two or more equations that share the same variables, and a solution is a set of values - here, an (x, y) pair - that makes every equation in the set true at the same time. This calculator solves the most common case: two linear equations in two unknowns, a1x + b1y = c1 and a2x + b2y = c2.
How does this calculator solve two equations at once?
This calculator offers four ways to solve the same system: Cramer's Rule (using the determinants D, Dx, and Dy), Substitution, Elimination, and Auto, which picks whichever of the three tends to give the most readable steps for your specific coefficients. All four always agree on the same (x, y) answer - they are different, equally valid routes to the identical solution, not competing calculations. Select a method above the input fields, or leave it on Auto and see which one it chose and why.
What does it mean when the determinant is zero?
A determinant of zero (D = 0) means the two equations do not have a single unique (x, y) solution - it happens exactly when the two lines the equations describe are parallel. From there, checking Dx and Dy tells you which of two outcomes applies: if both are also 0, the lines are actually the same line (infinitely many solutions); otherwise, they are parallel but distinct (no solution).
What is the difference between "no solution" and "infinitely many solutions"?
"No solution" means the two lines are parallel and never touch, so no (x, y) pair satisfies both equations at once. "Infinitely many solutions" means the two equations actually describe the exact same line, so every point on that line is a valid solution. Both are complete, valid mathematical answers - this calculator returns them directly rather than treating either as an error.
How can I verify the (x, y) solution is correct?
Plug the calculated x and y back into both original equations and check that each one still balances. For x + y = 7, x + 2y = 11 with the solution x = 3, y = 4: the first equation gives 3 + 4 = 7 and the second gives 3 + 2(4) = 11, both of which hold true - this exact substitution check is shown as the final step of every worked solution here.
Can I solve a system with negative or decimal coefficients?
Yes. Every coefficient you enter feeds directly into D, Dx, and Dy through ordinary multiplication and subtraction, so a negative sign or a decimal point never needs special handling - 2x - y = 3 paired with x + 3y = 5 solves cleanly to x = 2, y = 1 despite the negative coefficient. If the division Dx ÷ D or Dy ÷ D does not land on a whole number - for example x = 4.8 from 1.5x + 2y = 10, x + 3y = 9 - the calculator rounds to 4 decimal places rather than flagging it as unusual.
Can this calculator solve a system with 3 equations and 3 unknowns?
Not currently - this calculator solves exactly two linear equations in two unknowns (x and y). A 3x3 system, with a third variable z and a third equation, needs a larger determinant calculation this v1 does not perform, and is being considered as a possible future addition rather than built into this version.
What is Cramer's Rule?
Cramer's Rule is a method for solving a system of linear equations using determinants instead of substitution or elimination by hand. For a 2x2 system, it defines three determinants - D (from the x/y coefficients alone) and Dx, Dy (each formed by replacing one coefficient column with the right-hand-side constants) - and gives the solution directly as x = Dx / D and y = Dy / D whenever D is not zero.
How is this different from the Linear Equation Solver?
The Linear Equation Solver solves one equation in one unknown (ax + b = c, solving for x alone), while this calculator solves two equations in two unknowns at once (x and y together). Both calculators can return "No solution" or "Infinitely many solutions" as valid outcomes, but the underlying reason is different: for a single equation it depends on the coefficient a, while for a system it depends on whether the two lines the equations describe are parallel, identical, or intersecting.
Why does my solution show decimal places instead of a clean whole number?
That is expected, not a flaw. Dx and Dy are divided by D through plain division, and division does not always produce a whole number - 1.5x + 2y = 10 paired with x + 3y = 9 genuinely works out to x = 4.8 and y = 1.4, capped at 4 decimal places purely so the display stays readable. Coefficients that happen to divide evenly, such as x + y = 7 with x + 2y = 11 (x = 3, y = 4), come out as clean whole numbers with nothing after the decimal point.
What does Auto do, and how does it select a method?
Auto looks at your six coefficients and picks whichever solving method tends to produce the clearest, shortest steps for that particular system - it is a readability choice, not a more accurate one, since Substitution, Elimination, and Cramer's Rule always compute the identical exact answer. In order, Auto checks: does any coefficient equal 1 or -1 (Substitution can isolate that variable with no fraction)? If not, do the x-coefficients - or failing that, the y-coefficients - already match in magnitude (Elimination can cancel that variable with no scaling)? If neither shortcut applies, Auto uses Cramer's Rule. The result screen always states which method Auto chose and the specific coefficient relationship that led to it.
Sources
Based on 4 sources.
Related Calculators
Linear Equation Solver
Algebra & EquationsPlug in a, b, and c to solve ax + b = c for x instantly, with full step-by-step working and a clear no-solution or infinite-solutions answer built in.
Quadratic Equation Solver
Algebra & EquationsSolve any quadratic equation (ax^2 + bx + c = 0) for x using the quadratic formula. Enter the three coefficients to see real, repeated, or complex roots.
Long Multiplication Calculator
Numbers & ArithmeticMultiply two numbers with the standard long multiplication method - see every partial product, carry, and place-value shift for whole numbers and decimals.