Quadratic Equation Solver - Find Roots of ax²+bx+c=0
Quadratic Equation Solver
Enter the coefficients for ax² + bx + c = 0
What Is
A quadratic equation is any polynomial equation of degree two, which in standard form is written ax² + bx + c = 0 where a, b and c are real coefficients and a is not zero. Its graph is a parabola, and the solutions, called roots, are exactly the points where that parabola crosses or touches the horizontal axis. The quadratic formula states that the roots are x = (−b ± √(b² − 4ac)) / (2a). Everything interesting is hidden inside the discriminant D = b² − 4ac, and its sign decides the entire character of the solution. If D is greater than zero the parabola crosses the axis twice and there are two distinct real roots, x₁ and x₂.
If D equals zero the parabola touches the axis at a single turning point, giving one repeated real root at the vertex. If D is less than zero the parabola never reaches the axis, so there are no real roots and the two complex conjugate roots are found by evaluating the square root of a negative number as an imaginary value. Three more quantities follow from the same coefficients. The vertex sits at x = −b/(2a) with a y-value obtained by substituting back, and it is where the parabola reaches its maximum or minimum depending on the sign of a. The axis of symmetry is the vertical line x = −b/(2a).
The sum of the roots is −b/a and the product is c/a, and these two facts let you verify a solution quickly or build one when you only know the roots. When a is zero the equation is no longer quadratic but reduces to the linear bx + c = 0 with root −c/b, and when every coefficient is zero the equation is an identity satisfied by every value of x. Treating those degenerate cases explicitly matters, because dividing by 2a when a is zero produces an undefined result rather than the correct linear answer.
How to Use
- Open the Quadratic Equation Solver. Everything runs in your browser, so no equation or data is uploaded to any server.
- Enter the coefficient a in the x² field, then b in the x field and c in the constant field. Spaces around a minus sign are fine, and the tool accepts decimals and negative numbers.
- Read the discriminant shown first. A positive value means two distinct real roots, zero means one repeated real root, and a negative value means no real roots and a conjugate complex pair.
- Check the roots listed in the result panel, then use the step-by-step working to follow the substitution into the quadratic formula rather than copying the number without understanding it.
- Use the vertex, axis of symmetry and factored form to sketch the parabola or to confirm your own algebra, since all of these come from the same three coefficients.
- Verify with the sum and product checks, which report whether the roots add up to −b/a and multiply to c/a. If either fails, an input value has a typo.
- Copy the solution or the full working into your notes or report, and remember to state the domain restriction if the equation came from a square root or a rational expression.
Examples
Input: a = 1, b = −5, c = 6
Process:
D = 25 − 24 = 1, then x = (5 ± 1) / 2Result: x₁ = 3, x₂ = 2 — factored form (x − 3)(x − 2) = 0
Input: a = 2, b = −4, c = 2
Process:
D = 16 − 16 = 0, then x = 4 / 4Result: x = 2 — one repeated real root, parabola touches the axis at (2, 0)
Input: a = 1, b = 2, c = 5
Process:
D = 4 − 20 = −16, so √(−16) = 4i, x = (−2 ± 4i) / 2Result: x = −1 + 2i, x = −1 − 2i — no real roots
Related Searches
People also search for: quadratic equation solver, solve quadratic equation, ax2+bx+c=0, find roots of quadratic, quadratic formula, discriminant calculator.
quadratic equation solversolve quadratic equationax2+bx+c=0find roots of quadraticquadratic formuladiscriminant calculatorsolve for x quadraticreal and complex rootscompleting the squarevertex of parabolaaxis of symmetrysum and product of rootsfactorise quadraticalgebra solver onlinequadratic step by stepparabola intersectiontwo real rootsrepeated root calculatorfree algebra calculatorquadratic equation steps
Frequently Asked Questions
What does the discriminant tell me about a quadratic equation?
The discriminant D = b² − 4ac tells you the nature of the roots before you compute them, which is why it is the first thing you should calculate. If D is greater than zero the equation has two distinct real roots and the parabola crosses the horizontal axis twice. If D equals zero there is exactly one real root, repeated twice, and the parabola touches the axis at its turning point, which is the vertex. If D is less than zero there are no real roots at all, because the parabola opens away from the axis, and the two solutions form a complex conjugate pair of the form a + bi and a − bi. The magnitude of D also measures how far the roots sit from each other: the larger D is, the wider apart the two roots become. Working out the discriminant first is usually faster than substituting into the formula and discovering a negative square root halfway through.
Why can my quadratic have no real roots when I can see the parabola crossing?
This almost always means a is negative, or your plot has an incorrect scale, or you have transposed a coefficient. A parabola only crosses the horizontal axis if it opens upwards, meaning a must be positive, and it only touches the axis if a is positive and D equals zero. If a is negative the parabola opens downwards and stays entirely below the axis when D is less than zero, which is mathematically consistent even if your sketch appears to cross because the axes are not drawn to scale. Check first that you have not swapped b and c, since that error produces a plausible-looking graph with the wrong roots. Also confirm you did not omit a minus sign in front of a negative coefficient, a very common slip when copying from a textbook.
How do I solve a quadratic equation when a is zero?
When a equals zero the equation ax² + bx + c = 0 is no longer quadratic because the squared term disappears. It reduces to the linear equation bx + c = 0, which has the single solution x = −c/b, provided b is also not zero. This is exactly the case where blindly applying the quadratic formula fails, because it divides by 2a and therefore divides by zero, producing an undefined or infinite result instead of the correct answer. If both a and b are zero, then the equation becomes the identity c = 0: if c is also zero every real number is a solution, and if c is not zero there are no solutions at all. Most solvers, including this one, detect these degenerate cases automatically and report which of the three situations applies rather than returning a division by zero.
Can I use the quadratic formula for any quadratic equation?
You can use it for any equation that is genuinely quadratic, which means the coefficient a is not zero. What you cannot do is apply it directly to an equation that is not yet in standard form ax² + bx + c = 0. An equation such as x² + 6 = 5x must first be rearranged so that every term sits on one side, giving x² − 5x + 6 = 0. An equation containing fractions should be cleared of denominators first, for example x²/3 − x = 2 becomes x² − 3x = 6. An equation with a square root, a fraction containing x, or an exponent other than two is not quadratic at all and the formula does not apply, so substitution or a different method is needed. The formula also works numerically for any real coefficients, so you can enter decimals or large numbers directly.
What is the difference between the quadratic formula, completing the square and factoring?
All three produce the same roots, and the difference is how much insight they give you. The quadratic formula is a mechanical procedure that works for every quadratic including ones that cannot be factored with whole numbers, which makes it the safest general approach and the one to fall back on in an exam. Completing the square rewrites the equation into (x − h)² = k, which reveals the vertex directly and shows you why the discriminant controls whether real roots exist, though it involves more algebra and introduces fractions easily. Factoring writes the equation as (x − x₁)(x − x₂) = 0, which gives roots fastest when the numbers are integers and teaches the structure behind the whole method, but it fails outright when the roots are irrational or complex. Completing the square is the conceptual bridge between the other two, which is why it is worth working through at least once by hand.
Why are my quadratic roots coming out as complex numbers?
You get complex roots precisely when the discriminant is negative, meaning b² − 4ac is less than zero. That is not an error in the tool or a sign you entered incorrectly; it is the mathematically correct answer for an equation whose parabola never intersects the horizontal axis. The roots take the form a + bi and a − bi, where b is not zero and i is the imaginary unit. In most school contexts this means the equation has no real solution, and that is the result you should report. Complex roots appear legitimately in fields such as electrical engineering, where they describe oscillatory behaviour and circuit impedance, and in quantum mechanics, where real-valued solutions do not exist. If you were expecting real numbers, re-check b² and 4ac separately, since a small arithmetic slip often flips the sign of the discriminant.