Solve two linear equations with two unknowns using Cramer's rule, with every determinant step shown.
Enter both equations' coefficients to solve for x and y
This simultaneous equations calculator solves a system of two linear equations with two unknowns — a₁x + b₁y = c₁ and a₂x + b₂y = c₂ — instantly using Cramer's rule, showing every determinant step along the way. It works as a system of equations solver, a Cramer's rule calculator, a two variable equation solver, and a determinant calculator combined, built for anyone who needs to solve a system of linear equations without working through elimination or substitution by hand. Because two linear equations correspond to two straight lines, solving the system geometrically means finding the single point where those lines cross — or discovering that they never cross at all.
Given six coefficients — a₁, b₁, c₁ for the first equation and a₂, b₂, c₂ for the second — this tool computes the main determinant D along with Dx and Dy, then applies Cramer's rule to find x and y. It also detects the two special cases where a unique solution doesn't exist: no solution (parallel lines) and infinite solutions (identical lines).
Algebra students solving 2×2 systems, teachers preparing worked solutions, engineers balancing two-unknown circuit or force equations, economists finding market equilibrium, and anyone checking a mixing or break-even word problem can all use this simultaneous equations solver to skip manual elimination or substitution.
Many real situations involve two unknowns linked by two independent constraints — a system of equations is the standard way to model that. Cramer's rule turns the problem into pure arithmetic on determinants, which is easy to verify, automate, and generalize, unlike ad hoc elimination that varies from problem to problem.
Chemists and cooks use simultaneous equations to find how much of two ingredients or solutions combine to reach a target concentration and total volume. Businesses use them to find break-even points where two cost or revenue lines intersect. Economists use them to find market equilibrium where supply and demand curves meet. Engineers use them for simple two-unknown circuit or force-balance problems.
How this calculator solves a₁x + b₁y = c₁, a₂x + b₂y = c₂ using determinants
For a 2×2 layout (a, b / c, d), the determinant is ad − bc — multiply one diagonal, subtract the product of the other.
Each linear equation is a line; a unique (x, y) solution is exactly the point where the two lines cross.
Substitution and elimination are manual alternatives to Cramer's rule — all three methods must agree on the same x and y.
From entering six coefficients to verifying x and y
Arrange each equation as ax + by = c, identifying a₁, b₁, c₁ for the first equation and a₂, b₂, c₂ for the second.
Type a₁, b₁, c₁ for Equation 1 and a₂, b₂, c₂ for Equation 2 into the calculator's input fields.
The calculator computes the main determinant D, plus Dx and Dy, and applies Cramer's rule automatically.
View the solved values of x and y, along with D, Dx, and Dy shown alongside the solution.
If D = 0, look at whether Dx and Dy are also zero (infinite solutions) or nonzero (no solution, parallel lines).
Substitute the solved x and y back into both original equations to confirm each one balances.
Solving x + y = 5 and x − y = 1 using Cramer's rule
Solve the system x + y = 5 and x − y = 1 for x and y.
Explanation: Substituting x = 3, y = 2 into both original equations confirms the answer: 3 + 2 = 5 ✓ and 3 − 2 = 1 ✓. Since D = −2 is nonzero, this system has exactly one solution, the point (3, 2) where the two lines intersect.
What D, Dx, and Dy actually tell you
| Condition | What It Means | Graphical Meaning |
|---|---|---|
| D ≠ 0 | Exactly one solution: x = Dx/D, y = Dy/D | The two lines cross at exactly one point |
| D = 0, Dx ≠ 0 or Dy ≠ 0 | No solution — the equations contradict each other | The two lines are parallel and never meet |
| D = 0, Dx = 0, and Dy = 0 | Infinitely many solutions | Both equations describe the exact same line |
Reading D: D is nonzero for the vast majority of "normal" systems where the two lines have different slopes. D = 0 is the special case where the lines are parallel (same slope) — from there, Dx and Dy tell you whether they're merely parallel (no solution) or actually identical (infinite solutions).
Typical/edge cases: a solution like x = 3, y = 2 with small whole numbers is common in textbook problems; real-world coefficients often produce decimal solutions, which this calculator displays to full precision.
Manual verification: substitute your solved x and y back into both original equations — each should balance exactly. This is the fastest way to catch a data-entry mistake before trusting the result.
Where solving a 2×2 system genuinely comes up
Check systems of equations solved by hand using elimination or substitution.
Find the quantities of two solutions or ingredients needed to reach a target concentration and total volume.
Find where two cost or revenue lines intersect to determine a break-even point.
Find the price and quantity where a supply line and a demand line meet.
Find the exact point where two lines cross given their equations.
Solve simple two-unknown Kirchhoff's-law or force-balance equations in engineering.
Instructors quickly verify system-of-equations homework and generate step-by-step keys.
Solve small linear systems that arise when fitting simple two-parameter models by hand.
Resolve two unknown dimensions given two independent linear constraints.
Split a fixed total between two categories subject to a second linear condition.
Solve for two ingredient amounts that satisfy both a total-weight and a ratio constraint.
Builds intuition for determinants before moving on to larger n×n linear systems.
Anyone who hits a two-equation, two-unknown problem can get an instant, reliable answer.
What this simultaneous equations calculator does well, and where care is still needed
Three ways to solve the same 2×2 system of equations
| Method | How It Works | Best For |
|---|---|---|
| Cramer's Rule | Computes D, Dx, Dy from determinants, then divides | Fast, mechanical solving — easy to automate or verify |
| Substitution | Solve one equation for a variable, plug into the other | Systems where one equation already isolates x or y |
| Elimination | Multiply and add/subtract equations to cancel a variable | Systems with coefficients that are easy to match by hand |
Summary: This simultaneous equations calculator gives you an instant, free way to solve a 2×2 system of linear equations using Cramer's rule, with every determinant step shown and no-solution or infinite-solution cases correctly detected. Pair it with related tools like the Linear Equation Solver and Matrix Calculator for a fuller picture of linear algebra.
Common questions about solving systems of equations
Trusted educational references to go deeper on Cramer's rule and linear systems
Explore other math tools