Formula: 2×2 Linear System Mathematical Identity
- a1: A1 (numeric parameter)
- b1: B1 (numeric parameter)
- c1: C1 (numeric parameter)
- a2: A2 (numeric parameter)
- b2: B2 (numeric parameter)
- c2: C2 (numeric parameter)
Compute intersection point (x, y) and system determinants D, D_x, and D_y.
Your determinant D is zero, so the lines share a slope and there is no single crossing point to report. The message tells you which case you have. Either the two equations describe the same line, with infinitely many solutions, or the lines are parallel and there is no solution. Check your coefficients if you expected a single answer.
The solver tells you in its message, but you can check by hand. If D, D_x and D_y are all zero, both equations describe the same line and every point on it is a solution. If D is zero but either numerator is nonzero, the lines are parallel and never meet. For example, 2x + 4y = 6 with x + 2y = 5 gives D = 0 and D_x = -8: no solution.
Divide D_y by D and you should get the y on the panel. With the defaults, D_y is -14 and D is -7, so y is 2. Working the other way, the displayed y times D should give back D_y. If your hand-worked D_y differs from the panel, compare a₁c₂ and a₂c₁ separately to find which product went wrong.
No. Swapping the two equations flips the sign of D, D_x and D_y together, so every ratio stays the same and x and y do not change. Swapping the order of x and y within the boxes does matter, though. Keep x coefficients in the a boxes and y coefficients in the b boxes for both lines, or you will solve a different system.
Yes. The sign of D carries no special meaning on its own. Only D = 0 is a problem. The default system has D = -7 and still gives the clean answer x = 4, y = 2, because D_x and D_y are negative too and the signs cancel in the division. A positive D would be just as valid.
Type 0. An equation such as y = 5 has no x term, so a = 0, b = 1 and c = 5. Leaving a box empty is not the same as zero on every device. Paired with 3x + 2y = 16, the line y = 5 gives D = 3, which is not zero, so the system has a single crossing point.
Typing 0.333 for one third introduces a small error that carries through every determinant. The fix is to clear fractions before entering. Multiply the whole equation by the lowest common denominator so every coefficient is a whole number. The line itself does not change, but the inputs become exact and so does the result.
It can be. A D close to zero means the lines are nearly parallel, so the crossing point is very sensitive to the inputs. If your coefficients come from measurements, a small change in one of them can move the answer a long way. The calculator will still print a clean number, so treat that number with some caution.
No. It has exactly six input boxes for two linear equations in x and y. Cramer's rule does extend to three unknowns using 3 by 3 determinants, but this page does not compute them. For a larger system, solve it with elimination or a matrix tool, and use this page only for 2 by 2 checks.
Substitute the x and y values back into both original equations. With the defaults, 3 × 4 + 2 × 2 is 16 and 2 × 4 - 2 is 6, which match the right-hand sides exactly. With rounded decimal answers, expect a difference only in the last decimal place. Anything bigger points to a typing error in the inputs.
Two equations come preloaded: 3x + 2y = 16 and 2x - y = 6. In the form the solver expects, that is a₁ = 3, b₁ = 2, c₁ = 16 for the first line and a₂ = 2, b₂ = -1, c₂ = 6 for the second. Notice the minus sign on b₂. The second equation has -y in it, so the coefficient you type is -1, not 1.
The result reads x = 4 and y = 2, with a system determinant D of -7 and a numerator D_x of -28. You can check it in your head. Put x = 4 and y = 2 into the first equation: 12 + 4 = 16. Into the second: 8 - 2 = 6. Both hold, so (4, 2) is the one point where the two lines cross.
That substitution check takes ten seconds and is worth doing every time. It catches the most common error on this page, which is a coefficient typed into the wrong box. If the numbers you get back do not satisfy both of your original equations, the inputs are wrong, not the method.
Cramer's rule turns the system into three small determinants. Each one is a 2 by 2 grid of numbers, and its value is the product of one diagonal minus the product of the other.
D uses only the coefficients of x and y: D = a₁b₂ - a₂b₁. With the defaults that is 3 × (-1) - 2 × 2, which is -3 - 4 = -7. D_x swaps the x column for the constants: D_x = c₁b₂ - c₂b₁ = 16 × (-1) - 6 × 2 = -16 - 12 = -28. D_y swaps the y column for the constants instead: D_y = a₁c₂ - a₂c₁ = 3 × 6 - 2 × 16 = 18 - 32 = -14.
All three appear on the result panel, so you can compare your own working line by line. With the defaults the panel lists D = -7, D_x = -28 and D_y = -14. A quick cross-check is that y times D should equal D_y: 2 × -7 gives the same -14.
The result panel shows D and D_x but not D_y. If you want D_y for homework working, compute it by hand with the formula above, or multiply the displayed y by D. With the defaults, 2 × -7 gives the -14 you would expect.
A useful habit is to write the three grids out on paper before touching the calculator. Columns are x, y and constants. D covers the first two columns. D_x replaces column one with the constants. D_y replaces column two. Once the grids are written, the arithmetic is quick and the calculator becomes a check rather than a crutch.
Everything above divides by D. When D is zero the division is impossible, and the rule cannot produce a single point. Geometrically, D = 0 means the two lines have the same slope. They are either parallel and never meet, or they lie on top of each other and meet everywhere.
To tell the two cases apart, look at D_x and D_y. If D is zero and both numerators are also zero, the equations describe the same line and there are infinitely many solutions. If D is zero but either numerator is not, the lines are parallel and there is no solution at all.
Try 2x + 4y = 6 with x + 2y = 3. The second equation is just the first halved, so D, D_x and D_y are all zero. Now change c₂ to 5, so the second line is x + 2y = 5. D stays at 0 but D_x becomes -8, because 6 × 2 - 5 × 4 = 12 - 20. Same slope, different intercept: parallel lines, no solution.
The solver does this sorting for you. Instead of printing coordinates, it stops with a message. For the first pair it says the two equations describe the same line, so there are infinitely many solutions. For the second it says the lines are parallel, so there is no solution.
A message in place of x and y is not a fault in your entry. It is the answer. Infinitely many solutions means any point on the shared line works, and you can describe them by solving one equation for y. For 2x + 4y = 6 that is y = 1.5 - 0.5x, so (1, 1), (3, 0) and (-1, 2) are all solutions.
No solution means the two conditions contradict each other. In a word problem, that usually points to a mistake in setting up the equations, or to a situation that really cannot happen, such as two prices that never break even because they rise at the same rate from different starting points.
A quick rule of thumb for spotting the case before you even run it: if the ratio a₁ / a₂ equals b₁ / b₂, D will be zero. In the example, 2 / 1 and 4 / 2 are both 2. Then compare c₁ / c₂. If it matches too, the lines coincide. If it does not, they are parallel.
The six boxes assume each equation is arranged with x and y on the left and a plain number on the right. Real problems rarely arrive that way, and rearranging is where most wrong answers start.
Take y = 2x - 6. Move the 2x across: -2x + y = -6. So a = -2, b = 1, c = -6. Or multiply through by -1 and use a = 2, b = -1, c = 6. Both describe the same line, and the solver will give the same intersection either way. In fact that second version is exactly the default's second equation, so pairing it with 3x + 2y = 16 should give (4, 2) again.
If a variable is missing, its coefficient is zero, not blank. The pair x + y = 10 and x - y = 2 becomes a₁ = 1, b₁ = 1, c₁ = 10, a₂ = 1, b₂ = -1, c₂ = 2. The solver returns x = 6, y = 4 with D = -2. An equation like y = 5 is a = 0, b = 1, c = 5.
Constants on the left need moving too. 3x + 2y - 16 = 0 is the default first equation, but c is +16 once the -16 crosses the equals sign. Typing -16 instead would solve a different system and give a confident, wrong point.
Only a₁ changes in the comparison rows below the result, which tilts the first line while the second stays fixed. With a₁ lowered to 1.8 the solver reports x = 4.828 and y = 3.655, and D shrinks in size to -5.8. With a₁ raised to 4.5 the crossing moves to x = 3.294 and y = 0.588, with D = -8.5.
D_x stays at -28 in all three runs. That is expected, because D_x does not contain a₁ at all. D_y does contain a₁, and it moves from -14 to -21.2 for the lower value and to -5 for the higher one. So x moves only because the denominator moves, while y moves because both parts of its ratio change. That makes a good teaching example: you can see that each coordinate is a ratio of two determinants.
That last point matters in practice. When D is small compared with the coefficients, the lines are nearly parallel, and a tiny change in any input slides the crossing point a long way. If your inputs are measured values with some error in them, a near zero D is a warning that the answer is fragile, even though the calculator will still print a tidy number.
The solver accepts decimals, so fractional coefficients need converting first. One half becomes 0.5. One third is the awkward one: 0.333 is not exactly a third, and the answer will carry a small error. A cleaner route is to clear fractions before entering. If an equation reads x/3 + y/2 = 4, multiply every term by 6 to get 2x + 3y = 24 and enter whole numbers.
The panel rounds coordinates to three decimals, as in the 4.828 above, while the interpretation sentence shows four (4.8276). If you need an exact fraction, use the determinants. In that run x is exactly -28 divided by -5.8, and you can keep it in that form. The determinants are often easier to keep exact than the coordinates.
When you substitute a rounded answer back into the equations, expect the two sides to differ in the last decimal place. A mismatch of 0.001 is rounding. A mismatch of 2 or 3 means a typing error.
For two equations in two unknowns, Cramer's rule is about as fast as elimination or substitution, and it has one real advantage: D tells you up front whether a unique answer exists. That makes it handy for checking supply and demand crossings, break even points between two pricing plans, or mixture problems where two totals pin down two quantities.
This page solves the 2 by 2 case only. It will not take a third equation or a third unknown. It also assumes the relationships are straight lines. If either equation has an x² or a product like xy in it, the system is not linear and this rule does not apply.
For classwork, the calculator is best used after you have done the determinants by hand. Compare your D and D_x with the panel. If they match and your x is still different, the slip is in the final division, which narrows the search a lot.