Mega Linear Equations Solver

Type the equation the way it is written — brackets, fractions, decimals, the unknown on both sides — and this solves it with every line of the working shown. There are no coefficient boxes to fill in and no rearranging to do first. Three answers are possible and all three are real. Usually there is...

Type the equation as it is written, brackets and all. Three answers are possible and all three are real: one value, no value, or every value. When the unknown cancels out that is not a failure — it is the answer, and which of the two it is depends on the constant left behind. Anything that is not linear is refused rather than fudged: x² and an unknown in a denominator both get a reason, not a number. Decimals are read as exact fractions, so 0.1 + 0.2 is 3/10 here rather than 0.30000000000000004.

THE EQUATION

Brackets, fractions, decimals and the unknown on both sides all work. Any single letter can be the unknown.

ONE SOLUTION

x = 2

Both sides come to 5 at this value, checked against the equation as you typed it.

As typed3(x - 2) + 5 = 2x + 1
Tidied3x − 1 = 2x + 1
All on one sidex − 2 = 0

THE ANSWER PUT BACK INTO WHAT YOU TYPED

left side → 5

right side → 5

COEFFICIENT OF X

1

it survives, so there is one solution

CONSTANT LEFT OVER

−2

what is left after moving across

AS A DECIMAL

2

exact — the answer is a whole number

BOTH SIDES THERE

5

the two sides agree at the answer

WHAT IS HAPPENING

1Expand each side and collect like terms

3x − 1 = 2x + 1

Brackets multiplied out, numbers combined, and everything written as a multiple of the unknown plus a constant. Nothing has been moved across the equals sign yet — this is only tidying.

2Bring everything to one side

x − 2 = 0

Subtracting the right-hand side from the left. What matters now is the coefficient of the unknown: if it survives there is one solution, and if it cancels the answer depends entirely on the constant left behind.

3Divide by the coefficient

x = 2 ÷ 1 = 2

The coefficient of the unknown is not zero, so there is exactly one value that works. Kept as a fraction, because most solutions are not whole numbers and a rounded one does not satisfy the equation.

4Put it back into the original

left 5 · right 5

Both sides are evaluated at the answer from the expressions as they were typed, not from the tidied version. If those two numbers differ, something went wrong earlier and this is where it shows.

WHAT MOVES WHEREthe right-hand side is subtracted from the left, and what survives decides the answertidied3x − 12x + 1=subtract the right-hand side from bothx − 2 = 0the x coefficient is 1, which is not zeroso dividing by it gives the one value that works

Why there are exactly three answers. Each side of a linear equation describes a straight line, and asking where they are equal is asking where the lines meet. Two straight lines can cross once, run parallel and never meet, or be the same line and meet everywhere. There is no fourth possibility, which is why an equation like this can never have exactly two solutions — and why the case that looks like a dead end, the one where the unknown vanishes, is really the graph telling you the lines were parallel or identical all along.

EACH SIDE AS A LINEthe two lines cross once, and the crossing is the solution−1.25.217.5−7.5x = 2left side: 3x − 1right side: 2x + 1

Exact fractions throughout · the answer is substituted into the equation as you typed it

Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    Type the equation with an equals sign. Brackets, fractions like (x+1)/3, decimals and any single letter as the unknown all work, and spacing does not matter.

  2. 2

    Read the outcome first. One solution, no solution or every number — the label says which, and the caption says why the unknown behaved the way it did.

  3. 3

    Follow the two steps on the right. The first tidies each side into a multiple of the unknown plus a constant; the second moves everything across so the coefficient can be read.

  4. 4

    Check the substitution panel. Both sides are evaluated at the answer using the expressions exactly as you typed them, so a slip anywhere earlier shows up as two numbers that differ.

WORKED EXAMPLE

Take 3(x − 2) + 5 = 2x + 1. Expand the left: 3x − 6 + 5, which collects to 3x − 1. The right is already 2x + 1. So the tidied equation is 3x − 1 = 2x + 1. Now move everything to one side by subtracting the right from the left: (3x − 2x) + (−1 − 1) = x − 2, so x − 2 = 0. The coefficient of x is 1, which is not zero, so there is exactly one solution: x = 2. Check it in the original rather than the tidied version, which is the point of checking: 3(2 − 2) + 5 = 3(0) + 5 = 5, and 2(2) + 1 = 5. Both sides are 5. Now a case with fractions: (x + 1)/3 − (2x − 1)/4 = 5. Everything is over 12, so the left becomes (4(x + 1) − 3(2x − 1))/12 = (4x + 4 − 6x + 3)/12 = (−2x + 7)/12. Setting that equal to 5 and multiplying up gives −2x + 7 = 60, so −2x = 53 and x = −53/2. Note the −3 multiplying the whole of (2x − 1), including the −1 that becomes +3; missing that second sign is the commonest slip in the whole topic. Now the two cases that look like failures. 2x + 1 = 2x + 3. Subtracting the right from the left gives 0x − 2, so the x term is gone and −2 = 0 remains. That is false for every x, so there is no solution. On a graph the two sides are parallel lines a distance apart, and parallel lines do not meet. 2(x + 1) = 2x + 2. Expanding the left gives 2x + 2, which is the right exactly. Subtracting leaves 0 = 0, true for every x. Every number is a solution, and on a graph the two sides are the same line drawn twice. Finally, what this will not do. Type x(x + 1) = 0 and it stops and says the expression is quadratic. That is deliberate: a solver that expanded and dropped the x² would report x = 0, which is a real root but not the only one — x = −1 is lost without a word. Refusing is the honest answer where a number would not be.

REFERENCE RULES

RuleWhat it saysWhy
What counts as linearthe unknown to the first powerNo x², no x under a division, no x inside a root.
One solutionthe x terms do not cancelThe usual case. Divide by what is left of the coefficient.
No solution2x + 1 = 2x + 3The x terms cancel and the constants disagree. Parallel lines.
Every number works2(x+1) = 2x + 2Both sides are the same expression. An identity, not an equation.
Cancelling is not failureit is the answerWhich of the two answers depends on what is left behind.
Do the same to both sidesadd, subtract, multiply, divideAny of the four, as long as you never divide by zero.
Clearing fractionsmultiply by the common denominatorLegitimate because it is done to both sides equally.
Expanding bracketsmultiply every term insideThe commonest slip is missing the last term of a long bracket.
A negative outside a bracket−(x − 3) = −x + 3Both signs flip. The second one is the one people miss.
Most answers are fractions71.3% of small casesA whole-number answer is the exception, not the norm.
Decimals are not decimal0.1 + 0.2 ≠ 0.3 in binaryTyped decimals are read as exact fractions here.
Two letters is a systemx + y = 3One equation with two unknowns needs a second equation.
Check by substitutingput the answer back inInto the original, not the tidied version — that is the real check.
The graph readingeach side is a lineThe solution is where they cross; parallel means none, identical means all.

FREQUENTLY ASKED QUESTIONS

One where the unknown appears only to the first power: no x², no x under a division, no x inside a root. Brackets and fractions are fine as long as the unknown never gets multiplied by itself or ends up in a denominator. The test is whether both sides collapse to a multiple of the unknown plus a constant, which is exactly what this page does before solving anything.

  • ·The unknown appears to the first power only
  • ·No x², no x in a denominator, no x under a root
  • ·Brackets and fractions are still fine
  • ·Both sides must collapse to ax + b

RELATED CALCULATORS

MORE ALGEBRA CALCULATORS

Was this calculator helpful?

Last updated: August 6, 2026 · Exact fractions throughout, never floating point · When the unknown cancels, that is the answer rather than a failure.