Simultaneous Equation Solver (2 Variables)
Solve a system of two simultaneous equations
Enter the coefficients for each equation in the form ax + by = c. The solver finds x and y using Cramer's rule and verifies both results.
Equation 1: a1x + b1y = c1
Equation 2: a2x + b2y = c2
Solving simultaneous equations with two unknowns using Cramer's rule
Simultaneous equations — also called a system of linear equations — are two or more equations that share the same unknowns and must all be satisfied at the same time. When you have two equations and two unknowns (x and y), there is usually exactly one solution: a single pair of values for x and y that satisfies both equations simultaneously. This pair represents the point where the two corresponding lines intersect on a graph.
This solver uses Cramer's rule, a method based on determinants, to find x and y efficiently. Each equation must be in the standard form ax + by = c. You enter the coefficients a, b, and c for both equations, and the solver computes the main determinant D = a1 times b2 minus a2 times b1. If D is not zero, there is exactly one solution. If D is zero, the system either has no solution (parallel lines) or infinitely many solutions (the same line), and the solver reports this clearly.
The formulas from Cramer's rule are: x = (c1 times b2 minus c2 times b1) divided by D, and y = (a1 times c2 minus a2 times c1) divided by D. After calculating x and y, the solver substitutes both values back into each original equation to verify the result. If the left-hand side matches the right-hand side for both equations, the solution is confirmed correct.
Simultaneous equations are one of the most practical tools in algebra. They let you model situations where two constraints must be met at the same time — for example, finding the price of two types of items when you know the totals for two different purchases, or finding where two moving objects are at the same place and time.
How to enter your equations in standard form
Before using this solver, arrange each equation in the form ax + by = c. This means all variable terms on the left and the constant on the right. For example, if you have the equation 3x = 5y + 7, rearrange to 3x - 5y = 7. Here a = 3, b = -5, and c = 7. If a variable is missing from an equation, enter zero for its coefficient. For example, if equation 2 is just 4y = 12, write it as 0x + 4y = 12, entering a2 = 0, b2 = 4, c2 = 12.
Negative coefficients are common and fully supported. Decimal values are also accepted. When working with real-world problems, you may need to set up the equations yourself before entering them. For instance, if two types of fruit cost a combined total in two different purchase scenarios, each scenario becomes one equation. Identify what x and y represent, write the relationship as ax + by = c for each scenario, then enter those coefficients here.
When the solver returns no unique solution
If the determinant D equals zero, the solver reports that no unique solution exists. This happens in two cases. The first case is when both equations describe the same line — every point on that line is a valid solution, so there are infinitely many pairs that work. The second case is when the two equations describe parallel lines that never intersect — no pair satisfies both equations simultaneously.
To tell these cases apart without this solver, check whether one equation is a scalar multiple of the other. If multiplying all terms of equation 1 by some constant k gives equation 2 exactly (including the right-hand side), the lines are the same and there are infinite solutions. If multiplying equation 1 by k gives the same left-hand side as equation 2 but a different right-hand side, the lines are parallel and there are no solutions.
In most exam and textbook problems, you will encounter unique solutions. The no-solution and infinite-solution cases are important to recognize, especially when checking whether a system has been set up correctly from a word problem. A determinant of zero is always a signal to re-examine the original equations and confirm they are correctly derived from the problem description.