Learn
A linear equation calculator with two modes: type a, b, c to solve ax + b = c in one click, or add a second equation and the same form works as a 2x2 linear system solver - exact answers either way.
Fill a, b, c to solve ax + b = c; fill the second row too for a 2x2 system.
Second row optional — leave it empty for one-equation mode, fill it to switch to a 2x2 system.
Two modes, one form. This linear equation calculator solves one-variable equations like ax + b = c right out of the box. Add a second equation, and the same linear equation calculator turns into a 2x2 linear system solver. There is no mode button - the linear equation calculator reads what you typed and picks the mode itself.
System mode. Fill the second row - d, e, f for the equation dx + ey = f - and three more outputs appear. First the determinant D = a·e - b·d, then x, then y. Type 1, 1, 12, 2, -1, 3, and the linear equation calculator returns D = -3, x = 5, y = 7. That row is Example 3 below. Leave d, e, f empty, and the linear equation calculator stays in one-variable mode - one form, two tools.
Three outputs come back from the linear equation calculator, each in one plain sentence:
This page is more than a static linear equation calculator - it is also an AI tutor you can ask questions:
A linear equation asks for the number that balances the two sides. Picture a scale. The left pan holds 4x - 7, and the right pan holds 9. The pans hang level, because whatever x turns out to be, 4x - 7 must weigh exactly 9. Solving the equation means unloading both pans with the same moves until x stands alone. Take 7 from each pan, and 4x = 16 remains - the same subtraction the linear equation calculator performs on paper. Split the left side into 4 equal parts, and one part is 4. That is the whole method. x = 4 is the answer, and the linear equation calculator reaches it by the same two moves in one click.
Formally, a linear equation is one where the unknown appears only to the first power - no x², no square roots. The classic setting is linear equations in one variable, and that is exactly what this page's first mode solves. An 1866 algebra text (Ray's New Higher Algebra) filed such equations under "simple equations." Its chapter opens with equations containing only one unknown quantity. The name has faded; the shape has not:
One algebra move family solves every equation of this shape - the family the linear equation calculator was built for. Subtract b from both sides, so ax = c - b. Then divide by a, and the linear equation calculator's job is done:
That single fraction is the engine inside the linear equation calculator. For 4, -7, 9 it gives (9 - (-7)) / 4 = 4. The only forbidden case is a = 0. Then no x remains at all, and the equation 0x + b = c is either always true (b = c) or never true (b ≠ c). Example 4 shows what those two look like - and how the linear equation calculator should talk about them.
A linear equation is a balance: the left pan holds 4x - 7 and the right pan holds 9. Take 7 from both pans to leave 4x = 16, then divide by 4 - the linear equation calculator runs both moves in one click
Here is the system of linear equations definition in one line. It is a set of two or more equations using the same unknowns, solved for values that satisfy every equation at once. Add a second linear equation dx + ey = f and one line of algebra stops being enough. Two unknowns need two conditions. In the linear equation calculator's grid, the first row of fields now reads as ax + by = c. The two rows together form a system of two equations in two unknowns.
The test is the determinant:
A nonzero D promises exactly one pair (x, y) satisfying both equations - the guarantee the linear equation calculator prints before it solves. Geometrically, that pair is the crossing point of two lines. Example 3 has D = -3, so its two lines cross once. When D = 0, the lines are parallel (no solution) or identical (infinitely many). The linear equation calculator reports that instead of inventing a pair - a straight answer no graphing route gives this cleanly.
When D ≠ 0, Cramer's rule hands the linear equation calculator the pair directly:
The letters match the six fields one to one. That is exactly why the linear equation calculator uses a, b, c, d, e, f. Type the six coefficients, and the linear system solver mode computes D, x, and y in one click - the linear equation calculator doubling as a 2x2 machine. For systems of three equations and up, the gaussian elimination calculator on this site runs the same elimination logic on a larger grid. And the systems of equations calculator page lays every solving method side by side. If your goal is to solve for linear equations one or two at a time, though, this page's form is the shortest route.
Solve 4x - 7 = 9 - the exact equation the linear equation calculator preloads (a = 4, b = -7, c = 9).
So x = 4. Type 4, -7, 9 into the form, and the linear equation calculator returns the same 4 from x = (c - b) / a - one click, zero slips. Notice the fraction never cared that b was negative. Subtracting -7 means adding 7, and that sign turn is exactly where hand solutions slip. See the mistakes list below for the rest.
Real homework rarely hands the linear equation calculator a pre-cleaned equation. Solve 2(x - 3) = 8. The linear equation calculator sees the cleaned version; you do the distributing.
For the form, this equation is 2x + (-6) = 8. Type a = 2, b = -6, c = 8, and the linear equation calculator returns 7.
Now run it backwards. Suppose kx + 5 = 17 has the solution x = 3, and k is the missing number. Substitute the solution: k(3) + 5 = 17, so 3k = 12 and k = 4 - the reverse direction no linear equation calculator is asked for often enough. The linear equation calculator works forward. Feeding it a = 4, b = 5, c = 17 confirms x = 3, which closes the loop. Reverse questions like this ask "which equation produces this answer." It is the same fraction the linear equation calculator uses, read from the other end.
Solve the system x + y = 12 and 2x - y = 3 by hand first. Then let the linear equation calculator confirm it.
The solution is (x, y) = (5, 7) - the pair the linear equation calculator certifies below. Type 1, 1, 12, 2, -1, 3 into the linear equation calculator. It prints D = (1)(-1) - (1)(2) = -3. Then it returns x = (ce - bf)/D = (12(-1) - 1·3)/(-3) = 5 and y = (af - cd)/D = (1·3 - 12·2)/(-3) = 7. Same pair as the hand solve - computed by formula instead of by elimination. The determinant ran its test first: -3 ≠ 0 promised exactly one crossing before any arithmetic began. The geometry behind it is plain - two straight lines, one crossing point - and a linear equations calculator settles that pair in one click, with algebra alone.
Some linear equations refuse to settle on one number. A linear equation calculator that stayed silent about it would be lying - and this linear equation calculator does not lie. Both degenerate cases come from a = 0:
System mode reports its own degenerate case through the determinant - the linear equation calculator's early-warning light. In x + 2y = 4 with 2x + 4y = 8, D = (1)(4) - (2)(2) = 0. The second equation is just the first one doubled - one identical line, infinitely many solutions. Change the 8 to a 9, and the same D = 0 now means parallel lines and no solution. So when the linear equation calculator shows a zero determinant, read it as information. The answer is every point of one line, or no point at all - never a single pair.
Four slips this linear equation calculator sees every day:
Type carefully, and the linear equation calculator does the rest.
A taxi ride costs a 2 for each mile. One ride costs $11 in total. How many miles long was the ride? Set it up as 2m + 3 = 11 and check with the linear equation calculator above (a = 2, b = 3, c = 11).
In the equation kx + 5 = 17, the solution is known to be x = 3, but k is missing. Find k, then verify by typing a = k, b = 5, c = 17 into the linear equation calculator above.
At a coffee stand, 2 coffees and 1 muffin cost 13. Find the price of each item, then check the pair with the linear system solver mode of the linear equation calculator above.
It is a tool that solves equations where the unknown appears only to the first power - the flat-out definition of what a linear equation calculator takes as input. This linear equation calculator has two modes. Type a, b, c and it solves ax + b = c from x = (c - b)/a - the move every linear equation calculator is built on. Add a second equation and it works as a linear system solver with a determinant check. Both modes return exact values rather than graph estimates - the shared standard of any serious linear equation calculator. Exact answers are the whole point when you set out to solve linear equations - a graph can only estimate them, which is why a linear equation solver works by algebra. You can confirm each of these numbers with the linear equation calculator. You can confirm each of these numbers with the linear equation calculator.
Yes. This linear equation calculator ships with worked examples that show every step, and you can ask the AI tutor on the page to retrace any of them. Why b comes off first, why the division by a comes last, what changes when parentheses show up - all fair questions. The numbers themselves always come from the linear equation calculator's own form. What the page explains and what the linear equation calculator computes never disagree - that is the promise of a linear equation calculator with solution steps. You can confirm each of these numbers with the linear equation calculator. You can confirm each of these numbers with the linear equation calculator.
That is system mode. Fill d, e, f for the second equation dx + ey = f, and the linear equation calculator adds three outputs. The determinant D = ae - bd comes first, then x and y by Cramer's rule. To solve for linear equations in two unknowns is exactly this - one determinant test, two exact values, one click of the linear equation calculator. You can confirm each of these numbers with the linear equation calculator. You can confirm each of these numbers with the linear equation calculator.
The phrase describes any tool that takes a set of linear equations and solves them together. A set of linear equations solver is essentially a linear equation calculator of linear equations running two rows at once. This page is exactly that: a linear equation calculator with two rows. This page covers sets of two - the size a linear equation calculator handles natively. For three equations and more, the gaussian elimination calculator handles grids up to 6x6 with the same row-by-row logic. You can confirm each of these numbers with the linear equation calculator. You can confirm each of these numbers with the linear equation calculator.
It means the two lines behind your equations never produce a single crossing point. Either they are parallel (no solution) or they are the same line (infinitely many solutions) - the two readings the linear equation calculator refuses to blur. Example 4 shows both readings. The linear equation calculator prints the zero determinant instead of inventing a pair. You can confirm each of these numbers with the linear equation calculator. You can confirm each of these numbers with the linear equation calculator.
Its two modes are both exact algebra - one-variable solving and the 2x2 linear system solver. Graphing lives one layer below. The balance picture under What is shows the idea, and every linear equation plots as a straight line if you draw it. For exact answers, the linear calculator on this page works by algebra, like every serious linear equation calculator. That is why it returns values a graph can only approximate. You can confirm each of these numbers with the linear equation calculator. You can confirm each of these numbers with the linear equation calculator.