Quadratic equation solver
Solve ax² + bx + c = 0 for real, repeated or complex roots, with the discriminant, factored form, vertex and axis of symmetry.
Roots
Roots
-
Enter the coefficients
- Discriminant (b² − 4ac)
- -
- x₁ (first root)
- -
- x₂ (second root)
- -
- Factored form
- -
- Vertex
- -
- Axis of symmetry
- -
How it works
A quadratic equation is a polynomial equation of degree 2 in the form ax² + bx + c = 0, solved using the quadratic formula x = (−b ± √(b² − 4ac)) / 2a.
- Enter a, b and c
From ax² + bx + c = 0. Negative values and decimals are fine.
- Check the discriminant
It decides whether the roots are real or complex.
- Read the roots
Plus the factored form, vertex and axis of symmetry.
The quadratic formula
x = (−b ± √(b² − 4ac)) / 2a
This formula gives the solutions, or roots, of any quadratic equation ax² + bx + c = 0, as long as a is not 0. For x² − 5x + 6 = 0 (a = 1, b = −5, c = 6), the discriminant is 25 − 24 = 1, so x = (5 ± 1)/2, giving x = 3 and x = 2.
What the discriminant tells you
The discriminant, b² − 4ac, decides the nature of the roots. Positive means two distinct real roots, where the parabola crosses the x-axis twice. Zero means one repeated real root, where the parabola just touches the x-axis. Negative means two complex conjugate roots, where the parabola never crosses the x-axis.
Vertex and factored form
The vertex, the highest or lowest point of the parabola y = ax² + bx + c, sits at x = −b/2a; substitute that x back into the equation to get the y-coordinate. When the roots are real, the equation can also be written in factored form as a(x − x₁)(x − x₂) = 0, which is useful for sketching where the parabola crosses the x-axis.
When a is 0
If a is 0, the equation becomes bx + c = 0, a linear equation, not a quadratic one. The quadratic formula needs a ≠ 0 because it divides by 2a, so the calculator reports "Not a quadratic" instead of a wrong answer.
Frequently asked questions
How do you solve a quadratic equation using the quadratic formula?
Identify a, b and c from ax² + bx + c = 0, then compute x = (−b ± √(b² − 4ac)) / 2a. For x² − 5x + 6 = 0 (a=1, b=−5, c=6), the discriminant is 25 − 24 = 1, so x = (5 ± 1)/2, giving x = 3 and x = 2. Check: (x−3)(x−2) = 0.
What does the discriminant tell you about a quadratic equation?
The discriminant b² − 4ac determines the nature of the roots. A positive discriminant gives two distinct real roots, where the parabola crosses the x-axis twice. Zero gives one repeated real root, where the parabola is tangent to the x-axis. Negative gives two complex conjugate roots, where the parabola does not cross the x-axis at all.
What are complex roots and when do they appear?
Complex roots appear when the discriminant b² − 4ac is negative. The roots take the form p ± qi, where i is the square root of −1. For x² + x + 1 = 0, the discriminant is 1 − 4 = −3, giving x = −0.5 ± 0.866i. These roots always come in conjugate pairs.
What is the vertex of a parabola and how does it relate to the quadratic equation?
The vertex is the highest or lowest point of the parabola y = ax² + bx + c. Its x-coordinate is −b/(2a), and the y-coordinate comes from substituting that x back into the equation. For x² − 5x + 6, the vertex x is 5/2 = 2.5, and y is 6.25 − 12.5 + 6 = −0.25. The calculator shows the vertex and axis of symmetry automatically.
What happens when a = 0 in a quadratic equation?
If a = 0, the equation becomes bx + c = 0, a linear equation, not a quadratic one. The quadratic formula requires a to not be 0 because it divides by 2a. The calculator detects a = 0 and reports "Not a quadratic," since that case needs a linear solver instead.
What is the factored form of a quadratic with real roots?
Once the roots x₁ and x₂ are known, any quadratic with real roots can be written as a(x − x₁)(x − x₂) = 0. For x² − 5x + 6 = 0 with roots 3 and 2, the factored form is (x − 3)(x − 2) = 0. This form is not shown for complex roots, since they cannot be factored over the real numbers this way.