Quadratic Formula Calculator
A quadratic formula calculator is an algebraic tool designed to solve second-degree polynomial equations using the quadratic formula. By receiving the coefficients of the quadratic term, linear term, and constant term, the calculator determines the discriminant to identify the nature of the roots. It then evaluates both solutions, including real numbers or complex conjugate pairs when the discriminant is negative. Students, teachers, and engineers use it to verify solutions, analyze parabolic functions, and solve physical motion equations.
Enter the coefficients a, b, and c for a quadratic equation in the form ax² + bx + c = 0. We compute the discriminant, identify the root type, and return both roots with a step-by-step breakdown that shows the formula applied to your numbers.
Quick Answer
Solve second-degree quadratic equations of the form ax² + bx + c = 0. Enter coefficients a, b, and c to find real or complex roots instantly.
Coefficients
Enter a, b, and c for the equation ax² + bx + c = 0.
Must be nonzero. · e.g. 1
e.g. -5
e.g. 6
Step by step
- 1. Identify a, b, and c. a = 1, b = -5, c = 6.
- 2. Calculate the discriminant. D = -5² − 4·1·6 = 25 − 24 = 1.
- 3. Plug into the formula. x = (−(-5) ± √1) / 2·1
- 4. Simplify. x₁ = 3 and x₂ = 2.
Roots
3, 2
Two distinct real roots from D = 1
The discriminant D = b² − 4ac determines the root type. Positive D gives two real roots, zero gives a repeated root, negative gives a complex conjugate pair.
Examples
x² − 5x + 6 = 0
Two real roots · x = 2, 3
x² + 2x + 1 = 0
Repeated root · x = −1
x² + 2x + 5 = 0
Complex roots · x = −1 ± 2i
2x² − 4x − 6 = 0
Two real roots · x = −1, 3
How it works
For any equation in the standard form ax² + bx + c = 0 with a ≠ 0, the two roots come from the quadratic formula:
Roots · x = (−b ± √(b² − 4ac)) / 2a
Discriminant · D = b² − 4ac
The discriminant tells you what kind of roots to expect:
- D > 0 two distinct real roots
- D = 0 one repeated real root (double root)
- D < 0 two complex roots in a conjugate pair
Learn the concept
These guides explain the idea this tool computes, with worked examples and the distinctions readers most often trip over.
Methods for solving quadratic equations
Depending on the structure of the equation, different algebraic methods can be used to find its roots:
- Factoring: Rewriting the trinomial as a product of binomials (e.g., (x − 2)(x − 3) = 0). This is the fastest approach when the roots are small, simple integers.
- Quadratic Formula: Applying the universal equation x = (−b ± √(b² − 4ac)) / 2a. This is the most reliable method because it works for all coefficients, including decimal, irrational, or complex numbers.
- Completing the Square: Rearranging terms to create a perfect square trinomial on one side of the equation. This method is mathematically foundational and is actually used to derive the quadratic formula itself.
The discriminant (b² − 4ac)
The discriminant is the expression b² − 4ac located under the square root sign in the quadratic formula. It determines the number and nature of the equation's solutions. The calculator above calculates and reports the discriminant value on every solve.
| Discriminant Condition | Root Type | Example Equation & Value |
|---|---|---|
| D > 0 | Two distinct real roots | x² − 5x + 6 = 0 (D = 1) |
| D = 0 | One repeated real root (double root) | x² − 4x + 4 = 0 (D = 0) |
| D < 0 | Two complex roots (conjugate pair) | x² + x + 1 = 0 (D = −3) |
Worked example
Let's solve the quadratic equation x² − 5x + 6 = 0 step-by-step using the quadratic formula:
- 1. Identify coefficients: Here, a = 1, b = −5, and c = 6.
- 2. Calculate the discriminant:
D = b² − 4ac = (−5)² − 4(1)(6) = 25 − 24 = 1.
Since D > 0, the equation has two distinct real solutions. - 3. Plug into the quadratic formula:
x = (−b ± √D) / 2a = (−(−5) ± √1) / 2(1) = (5 ± 1) / 2. - 4. Simplify the solutions:
* x₁ = (5 + 1) / 2 = 6 / 2 = 3
* x₂ = (5 − 1) / 2 = 4 / 2 = 2
The two solutions are x = 3 and x = 2.
Related math calculators
- Scientific calculator for general numeric math, including the square root of the discriminant.
- Square root calculator for the √(b² − 4ac) step in simplified or decimal form.
- Exponent calculator for squaring b and other powers used in the formula.
- Factoring calculator for the same quadratic in factored form when the roots are integers.
- All education calculators.
Sources: The quadratic formula and standard quadratic equation solving methods are part of the core high school algebra curriculum (Common Core State Standards HSA-REI.B.4). Last reviewed: June 2026.
Related Calculators
More tools from Education



