Quadratic Equation Solver
Enter a, b, and c for ax² + bx + c = 0 to get the roots (real or complex), the discriminant and what it means, the vertex and axis of symmetry, and the step-by-step formula.
- Free, no account
- No watermark
- No usage limit
About the Quadratic Equation Solver
Type in a, b, and c and you get the two roots, the discriminant, the vertex, and the quadratic formula worked out line by line. Free, it runs in your browser, and nothing you type leaves your machine. For x² − 5x + 6 = 0 you enter a = 1, b = −5, c = 6 and it answers right away: x = 2 and x = 3.
For homework it's the rounding that bites. Most free solvers hand back a decimal, so when the real answer is 2 + √3 they give you 3.7320508, and if the answer key wanted the exact surd, that decimal is marked wrong. This one keeps the exact form instead of rounding it away on you. When the roots are rational it gives a reduced fraction (2x² + 5x − 3 comes back as x = 1/2 and x = −3, not 0.5), and when they're irrational but tidy it gives a simplified surd like 2 ± √3 with the decimal sitting right beside it. You copy whichever form your teacher asked for.
How to use
- Enter a, the number in front of x². For
x² − 5x + 6 = 0that's 1 (an invisible 1 still counts as 1). It can't be zero. Delete the x² term and you don't have a quadratic anymore. - Enter b, the coefficient on the plain x, sign and all. In
x² − 5x + 6that's −5, not 5. This is where most wrong answers come from, a dropped minus sign. - Enter c, the constant on its own, with its sign, here 6. If a term is missing from the equation its coefficient is just 0, not a blank box.
- Read the roots at the top. You get an exact fraction or surd where the numbers are clean, and a decimal where they aren't.
- Glance at the discriminant and vertex underneath if you need them. The discriminant tells you what kind of roots you got, and the vertex is the turning point of the curve.
- Copy the worked steps when you have to show your method. The tool drops your a, b, and c into the quadratic formula one line at a time, so you can reproduce the working, not just the answer.
One thing before you start: the equation has to equal zero first. Staring at x² = 3x − 1? Move everything onto one side, x² − 3x + 1 = 0, and then read off a, b, and c. Skip that and every coefficient is wrong.
Exact answers, not a rounded-off decimal
When the discriminant b² − 4ac is a perfect square, the roots are rational. The tool computes (−b ± √disc) / 2a, then cancels the common factor top and bottom, so you get 1/2 rather than 0.5000000 and −3 rather than −3.0. Reduced to lowest terms, the way a class wants it written.
When the discriminant isn't a perfect square but is still a tidy whole number, the square root simplifies to a surd. √12 becomes 2√3, and the root reads as something like (3 + 2√3) / 2, reduced by the common factor, with the decimal approximation printed right after it. Exact answer for the homework, a number you can picture for the sanity check.
And when there's nothing clean to keep, it falls back to a plain decimal, which is the honest move. Dressing up 6.25 as a fake fraction would be lying about the value.
Two reasons the exact form is worth caring about. First, answer keys usually want it, and a rounded decimal loses marks even when it's technically close. Second, an exact root factors straight back: x = 1/2 and x = −3 tells you the equation is (2x − 1)(x + 3), which a decimal completely hides. One catch, the exact form only triggers when a, b, and c are whole numbers. Feed it decimals and you'll get a decimal back, because there's no clean fraction hiding inside 6.25 anyway.
The discriminant and vertex, both free with every solve
The discriminant is that b² − 4ac piece sitting under the square root in the formula, and its sign alone tells you the shape of the answer before you finish any arithmetic. Positive means two separate real roots and the parabola crosses the x-axis twice. Zero means one repeated root, where the curve just touches the axis at its lowest (or highest) point. Negative means no real roots at all.
That last case isn't the tool breaking on you. A negative discriminant means the parabola floats entirely above or below the axis and never crosses it, so the answers step into the complex numbers and come back as a conjugate pair, p ± qi. Take x² + 1 = 0: the discriminant is −4 and the roots are +i and −i. A messier one, x² − 4x + 6.25 = 0, has discriminant −9 and roots 2 ± 1.5i. The two answers are always mirror images, same real part, opposite sign on the imaginary bit. Engineers work with these daily, so it's a real answer, not an error dressed up.
There's a shortcut in all this. If a problem only asks whether real solutions exist, the discriminant settles it, positive or zero means yes, negative means no, and you never run the full formula.
The vertex tags along for free too. Every parabola has a turning point, and its x-coordinate is −b / 2a, which is the exact center of the quadratic formula, sitting right between the two roots (the ± √(...) just steps out symmetrically to each side). The tool reports the vertex point and the axis of symmetry x = −b / 2a on every solve. That's the number you want when the question isn't "what are the roots" but "what's the maximum height" or "at what price does profit peak," because the vertex is the high or low point of the whole curve.
A quadratic that isn't a homework problem
You've got 200 metres of fencing and want a rectangle of exactly 2,400 square metres. What dimensions? Call one side x. The perimeter fixes the other at (100 − x), so x(100 − x) = 2400 rearranges to x² − 100x + 2400 = 0. Punch it in, the roots come out x = 40 and x = 60, so the rectangle is 40 by 60.
Notice both roots are real answers here, they're the two sides of the same rectangle, read two ways. That's the pattern behind loads of real quadratics. Anything involving area lands you here, and so does anything moving under gravity, where height over time is −½gt² + v₀t + h₀. Set the height to zero and the roots are the times the object sits at ground level, with the vertex marking the peak of the arc.
Frequently asked questions
Can I type a fraction like 1/2 as a coefficient?
No, enter it as a decimal instead, 0.5 in place of 1/2, or 0.25 for a quarter. The three boxes read whole numbers and decimals, positive or negative, and there's no fraction input. Worth flagging, though, if you enter decimal coefficients the answer comes back as a decimal, because the exact fraction and surd forms only trigger when a, b, and c are all whole numbers.
It gave me a fraction but I wanted the decimal.
Both are there. On an irrational root the surd comes first with the decimal right after it, and on a rational root the reduced fraction is the exact value, so just divide it out (1/2 is 0.5). The fraction leads because that's the form a class usually expects, but the decimal is never hidden from you.
Can it show me the factors, or factor the equation for me?
Not directly, it runs the quadratic formula every time rather than hunting for a factorisation. You can still build the factors from the roots yourself. If the roots are r and s, the equation factors as a(x − r)(x − s). Roots of 2 and 3 give you (x − 2)(x − 3), and roots of 1/2 and −3 give you (2x − 1)(x + 3). That's another reason the exact form beats a decimal, you can't reverse-engineer factors out of 0.4999.
Does it solve cubics or higher powers?
No. It handles degree two only, meaning the highest power of x is x². A cubic (x³) or a quartic (x⁴) needs a completely different method, and the quadratic formula doesn't reach them. If your equation has an x³ term, this is the wrong tool for it.
Why does it say "not a quadratic"?
You left a at 0, or left the box blank. The x² term is the whole definition of a quadratic and a is its coefficient, so a = 0 wipes it out and what's left is a straight line, bx + c = 0. The tool won't fake a curve that isn't there, it flags the problem and, when b isn't also zero, shows you the single linear solution instead. Double-check you didn't leave the a box empty by accident.
Is anything I type sent to a server?
No. Every solve happens on your own device, in the browser, and once the page has finished loading the solver keeps working with no internet connection at all. Your coefficients aren't uploaded, logged, or tracked anywhere.