Quadratic Formula

Roots of ax² + bx + c = 0.

Roots
2 , 1
1
Discriminant
two
Type

How to Use the Quadratic Formula Calculator

  1. Write your quadratic equation in standard form: ax² + bx + c = 0.
  2. Identify the values of a, b, and c from your equation.
  3. Enter a, b, and c into the corresponding input fields on the calculator.
  4. Click 'Calculate' — the calculator computes the discriminant and applies the quadratic formula.
  5. Read your results: x₁ and x₂ are displayed, along with the discriminant and the nature of the roots (real distinct, repeated, or complex).
  6. Optionally verify by substituting each root back into the original equation to confirm it equals zero.

The Quadratic Formula

x = (-b ± √(b² - 4ac)) / (2a)

For any quadratic equation of the form ax² + bx + c = 0 (where a ≠ 0), the two solutions for x are given by:

x = (−b ± √(b² − 4ac)) / (2a)

The expression under the square root, b² − 4ac, is called the discriminant (Δ). It tells you the nature of the roots:

  • Δ > 0 → two distinct real roots
  • Δ = 0 → one repeated real root (a perfect square trinomial)
  • Δ < 0 → two complex conjugate roots (no real solutions)
  • a — The coefficient of the x² term. Must be non-zero; if a = 0 the equation is linear, not quadratic.
  • b — The coefficient of the x term. Can be any real number, including zero.
  • c — The constant term (the value when x = 0). Can be any real number, including zero.
  • Δ (discriminant) — Δ = b² − 4ac. Determines whether the roots are real and distinct (Δ > 0), real and equal (Δ = 0), or complex conjugates (Δ < 0).
  • x₁, x₂ — The two roots of the equation. x₁ uses the '+' sign and x₂ uses the '−' sign in the ± part of the formula.

Worked Example: Solving 2x² − 4x − 6 = 0

a = 2, b = −4, c = −6
Discriminant: Δ = (−4)² − 4(2)(−6) = 16 + 48 = 64
√Δ = √64 = 8
x₁ = (−(−4) + 8) / (2 × 2) = (4 + 8) / 4 = 12 / 4 = 3
x₂ = (−(−4) − 8) / (2 × 2) = (4 − 8) / 4 = −4 / 4 = −1

Result: x₁ = 3 and x₂ = −1

What Your Result Means

Because the discriminant is 64 (greater than zero), the equation has two distinct real roots: x = 3 and x = −1. You can verify: 2(3)² − 4(3) − 6 = 18 − 12 − 6 = 0 ✓ and 2(−1)² − 4(−1) − 6 = 2 + 4 − 6 = 0 ✓. On a graph, these are the two x-intercepts of the parabola y = 2x² − 4x − 6.

Understanding Quadratic Formula

Understanding the Quadratic Formula

A quadratic equation is any polynomial equation of degree 2. In standard form it is written ax² + bx + c = 0. Quadratics appear throughout mathematics, physics (projectile motion), engineering (circuit analysis), economics (profit maximisation), and computer graphics.

Where does the formula come from?

The quadratic formula is derived by completing the square on the general equation ax² + bx + c = 0:

  1. Divide through by a: x² + (b/a)x + c/a = 0
  2. Move c/a to the right: x² + (b/a)x = −c/a
  3. Add (b/2a)² to both sides: (x + b/2a)² = (b² − 4ac) / 4a²
  4. Take the square root of both sides and solve for x.

The result is the familiar formula x = (−b ± √(b² − 4ac)) / (2a).

The Discriminant

The discriminant Δ = b² − 4ac is the most important diagnostic tool:

  • Δ > 0: Two distinct real roots — the parabola crosses the x-axis at two points.
  • Δ = 0: One repeated (double) root — the parabola is tangent to the x-axis at its vertex.
  • Δ < 0: Two complex conjugate roots — the parabola does not cross the x-axis at all.

Sum and Product of Roots (Vieta's Formulas)

Without solving the full formula, you can quickly check your answers using:

  • Sum of roots: x₁ + x₂ = −b/a
  • Product of roots: x₁ × x₂ = c/a

These identities, known as Vieta's formulas, let you verify results instantly.

Alternative Methods

The quadratic formula always works, but for simple equations other methods may be faster:

  • Factoring: When the equation factors neatly into (px + q)(rx + s) = 0.
  • Completing the square: Foundational derivation; useful in certain proofs and geometric interpretations.
  • Graphing: Approximate roots from a parabola's x-intercepts; less precise but visually intuitive.

Common Mistakes

  • Forgetting to rearrange the equation into standard form ax² + bx + c = 0 before identifying a, b, and c.
  • Dropping the negative sign on b — the formula uses −b, not b. If b is already negative, −b becomes positive.
  • Computing the discriminant incorrectly: b² − 4ac requires squaring b first, then subtracting 4ac (not b² − 4a × c with wrong order of operations).
  • Dividing only the numerator's first term by 2a instead of the entire expression (−b ± √Δ).
  • Entering a = 0, which makes the equation linear and the quadratic formula undefined (division by zero).
  • Misreading complex roots — if Δ < 0, the roots involve i (the imaginary unit) and cannot be plotted as real x-intercepts.

Common Questions About Quadratic Formula

What is the vertex of a parabola and how does it relate to the quadratic formula?

The vertex is the minimum or maximum point of the parabola y = ax² + bx + c. Its x-coordinate is x = −b/(2a), which is exactly the midpoint of the two roots given by the quadratic formula. The y-coordinate is found by substituting this x back into the equation.

How do Vieta's formulas let me check my roots?

For ax² + bx + c = 0, the sum of the roots equals −b/a and the product of the roots equals c/a. After solving with the quadratic formula, add and multiply your answers and compare these values as a quick sanity check.

What is the difference between roots, zeros, and x-intercepts?

They refer to the same concept from different perspectives. 'Roots' or 'zeros' are the values of x that make the equation ax² + bx + c = 0 true (algebra). 'X-intercepts' are the points where the parabola y = ax² + bx + c crosses the x-axis (geometry). All three terms describe identical values.

Can a quadratic equation have only one solution?

Yes, but technically that single solution is a 'repeated root' — the same value appearing twice. It occurs when the discriminant is zero. For example, x² − 6x + 9 = 0 has the double root x = 3, since (x − 3)² = 0.

How is the quadratic formula used in projectile motion?

In physics, the height of a projectile is modelled as h(t) = −½gt² + v₀t + h₀. Setting h(t) = 0 and identifying a = −½g, b = v₀, c = h₀ lets you apply the quadratic formula to find the times when the object is at ground level — i.e., when it was launched and when it lands.

Frequently Asked Questions

What happens if the discriminant is negative?

When b² − 4ac < 0, the square root is of a negative number, producing two complex conjugate roots of the form x = (−b ± i√|Δ|) / (2a), where i = √(−1). These roots are not real numbers and the parabola does not intersect the x-axis.

Can the quadratic formula handle a = 0?

No. If a = 0, the equation reduces to bx + c = 0, which is a linear equation solved by x = −c/b. The quadratic formula requires a ≠ 0 because dividing by 2a = 0 is undefined.

How do I use this calculator if my equation isn't in standard form?

Rearrange it first. For example, 3x² = 5x − 2 becomes 3x² − 5x + 2 = 0, giving a = 3, b = −5, c = 2. Always move all terms to one side before identifying the coefficients.

What is a 'double root' and when does it occur?

A double root occurs when the discriminant equals exactly zero (b² − 4ac = 0). The formula gives x = −b / (2a), a single value that is counted as two identical roots. Graphically, the parabola just touches the x-axis at its vertex without crossing it.

Does the calculator handle decimal and fractional coefficients?

Yes. You can enter any real number for a, b, and c — integers, decimals, or fractions converted to decimals. The calculator will return exact or decimal roots as appropriate.

Related Calculators

Sources

Only sources that have been reviewed are shown. Unverified citations are never published.

Spotted a calculation error?Report an Error