Help With Algebra Problems
What is the value of x in your equation?
Enter a linear or quadratic equation and get the solution instantly, along with each step of the working. Covers one-variable equations, systems of two equations, and quadratic expressions.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Think of a linear equation as a set of scales. On one side you have an unknown weight labelled x, multiplied by some factor and with a fixed weight added or removed. On the other side sits a known total. Solving the equation means figuring out what x weighs so both sides balance — and the process is just moving weights around systematically until x stands alone.
Quadratic equations are different in kind. Instead of a straight line, the relationship between x and the result traces a U-shaped curve called a parabola. Asking for the solution means asking where that curve crosses the horizontal axis — and because a curve can cross a straight line at zero, one, or two points, quadratics can have zero, one, or two real answers. The quadratic formula captures all three outcomes in one expression by using the discriminant to determine which case applies before committing to arithmetic.
The verification step in this tool is not decorative. It substitutes your answer back into the original equation and checks the result against zero or c within a small tolerance. Floating-point arithmetic means the check may return 0.0000001 rather than exactly 0 — that is normal rounding behaviour, not an error. Any residual smaller than 0.0001 is treated as verified.
When To Use This
Right tool, right situation
Use this tool when you have a specific equation and need to verify your hand-computed answer, when you are working through a multi-step problem and algebra is just one stage, or when you are double-checking a coefficient setup before writing up a solution. It is useful any time you need to be certain of the mechanics without spending time on arithmetic.
It is also useful outside pure maths. Engineers setting up force balance equations, students modelling projectile motion, and anyone building a cost model that involves a squared term can enter their rearranged equation directly and get roots in seconds. The step-by-step output shows the exact arithmetic chain, making it straightforward to trace back to the original physical or financial setup.
Where this tool is not appropriate: simultaneous equations with more than two unknowns, polynomial equations of degree three or higher (cubics, quartics), equations involving trigonometric or logarithmic terms, or inequalities where the answer is a range rather than a point. For those, a computer algebra system or specialist solver is the right choice. Trying to force a cubic into a quadratic form by ignoring terms produces roots that are mathematically wrong and will fail verification.
Common Mistakes
Why results sometimes look wrong
Mistake 1: Putting c on the wrong side for quadratics. The quadratic formula requires the equation in the form ax² + bx + c = 0 — everything on the left, zero on the right. If your equation reads x² + 3x = 10, you must rearrange to x² + 3x - 10 = 0 before entering coefficients. Entering c = 10 instead of c = -10 produces wrong roots and a verification failure.
Mistake 2: Treating the sign of b as separate from the coefficient. In the equation x² - 7x + 12 = 0, the coefficient b is -7, not 7. Entering 7 instead of -7 changes the discriminant from 25 to -23, flipping the problem from two real roots to no real solution. The quadratic formula applies b² internally, so the sign affects only the ±b term but gets the answer completely wrong.
Mistake 3: Expecting exact integers when the answer is irrational. Not all quadratic roots are whole numbers or simple fractions. The equation x² + x - 1 = 0 has roots at (-1 + √5) / 2 ≈ 0.618034 and (-1 - √5) / 2 ≈ -1.618034. These are exact algebraic numbers displayed as decimals. The verification step will confirm they satisfy the equation even though they look messy — that is the expected result, not a calculation error.
The Math
Worked examples and deeper derivation
For a linear equation ax + b = c, the single operation is x = (c - b) / a. This is defined everywhere a is not zero. When a equals zero and b does not equal c, the equation is a contradiction (0 = non-zero) with no solution. When a equals zero and b equals c, every real number satisfies it — infinitely many solutions. This tool catches the a = 0 case and reports it directly.
For a quadratic ax² + bx + c = 0, the quadratic formula is x = (-b ± √(b² - 4ac)) / 2a. The discriminant D = b² - 4ac classifies the result: D greater than 0 yields two distinct real roots, D equal to 0 yields one repeated root at x = -b / 2a, and D less than 0 yields two complex conjugate roots with no real part that lies on the number line. The tool halts at D less than 0 and explains why.
Floating-point precision matters when coefficients are large or when the discriminant is very close to zero. A discriminant computed as -0.000000001 due to rounding may represent a genuine double root, not a complex pair. For classroom and everyday use the precision here is more than sufficient, but for numerical analysis at scale, interval arithmetic or symbolic computation tools handle the edge cases more rigorously.
Expert Unlock
The thing most explanations skip
The quadratic formula is numerically unstable when one root is much larger in magnitude than the other — specifically when |b| is large relative to √(b² - 4ac). In that case, computing (-b + √D) can lose significant digits through catastrophic cancellation. The stable fix is to compute the larger root first using the formula with the sign that avoids cancellation, then recover the smaller root via Vieta’s formula: x₁ × x₂ = c/a. For textbook problems with modest coefficients this never matters. For scientific computing with coefficients spanning several orders of magnitude, it can change the last several digits of the smaller root.
What does your algebra result actually mean?
Need something this doesn't cover?
Suggest a tool — we'll build it →