terican

Last verified · v1.0

Calculator · math

Quadratic Formula Calculator

Solve any quadratic equation ax²+bx+c=0 instantly. Computes both roots, discriminant, and sum/product of roots using the quadratic formula.

FreeInstantNo signupOpen source

Inputs

Result

Explain my result

0/3 free

Get a plain-English breakdown of your result with practical next steps.

Result

The formula

How the
result is
computed.

What Is the Quadratic Formula?

The quadratic formula solves any equation written in the standard form ax² + bx + c = 0, where a, b, and c are real number coefficients and a ≠ 0. The formula states:

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

The ± symbol means the formula produces two solutions simultaneously. The first root uses the plus sign (+√), and the second root uses the minus sign (−√). As detailed by Khan Academy's quadratic formula article, this single expression handles all quadratic equations regardless of whether the roots are real, repeated, or complex.

Understanding the Variables

  • a — Leading Coefficient: The coefficient of the x² term. Must be non-zero; if a = 0, the equation is linear, not quadratic. The sign of a determines whether the parabola opens upward (a > 0) or downward (a < 0).
  • b — Linear Coefficient: The coefficient of the x term. Controls the horizontal position of the parabola's vertex. When b = 0, the parabola is symmetric about the y-axis.
  • c — Constant Term: The y-intercept of the parabola. The curve always passes through the point (0, c).

Deriving the Formula: Completing the Square

The quadratic formula is derived by applying the completing the square technique to the general equation ax² + bx + c = 0. The derivation proceeds as follows:

  • Divide every term by a: x² + (b/a)x + c/a = 0
  • Isolate the constant: x² + (b/a)x = −c/a
  • Add (b/2a)² to both sides: x² + (b/a)x + (b/2a)² = (b² − 4ac) / (4a²)
  • Factor the left side as a perfect square: (x + b/2a)² = (b² − 4ac) / (4a²)
  • Take the square root and solve for x: x = (−b ± √(b² − 4ac)) / (2a)

This derivation, covered in depth by the University of Wisconsin-Whitewater's Methods for Solving Quadratic Equations, demonstrates why the formula works universally — it encodes the completing-the-square process into a single reusable expression applicable to every quadratic equation with real or complex coefficients.

The Discriminant: Predicting Root Behavior

The expression under the radical sign, Δ = b² − 4ac, is called the discriminant. Its value reveals the nature of the roots before performing the full calculation:

  • Δ > 0: Two distinct real roots. The parabola crosses the x-axis at two separate points. Example: x² − 5x + 6 = 0 gives Δ = 25 − 24 = 1 > 0, yielding roots x = 3 and x = 2.
  • Δ = 0: One repeated real root. The parabola is tangent to the x-axis at exactly one point. The root equals x = −b / (2a). Example: x² − 4x + 4 = 0 gives Δ = 0, root x = 2.
  • Δ < 0: Two complex conjugate roots of the form (−b ± i√|Δ|) / (2a), where i = √(−1). The parabola does not intersect the x-axis.

Sum and Product of Roots

Vieta's formulas provide two elegant relationships derived directly from the quadratic formula, enabling rapid verification of computed roots:

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

These identities hold even when the roots are complex, making them universally applicable for checking work without substitution.

Worked Example

Consider 2x² − 4x − 6 = 0, where a = 2, b = −4, c = −6.

  • Discriminant: Δ = (−4)² − 4(2)(−6) = 16 + 48 = 64
  • First root: x₁ = (4 + √64) / 4 = (4 + 8) / 4 = 3
  • Second root: x₂ = (4 − 8) / 4 = −4 / 4 = −1
  • Verification — Sum: 3 + (−1) = 2 = −(−4)/2 ✓ | Product: 3 × (−1) = −3 = −6/2 ✓

Real-World Applications

Quadratic equations govern a wide range of real-world phenomena across science, engineering, and finance:

  • Projectile motion: An object launched upward follows h(t) = −16t² + v₀t + h₀ (in feet). Setting h = 0 and applying the quadratic formula gives the exact landing time.
  • Engineering and architecture: Parabolic arches, satellite dish reflectors, and suspension bridge cable profiles all satisfy quadratic relationships that engineers solve using this formula.
  • Finance: Revenue functions of the form R(x) = −ax² + bx + c require the quadratic formula to find break-even quantities where R(x) = 0.
  • Physics: Resonance frequency calculations in RLC circuits and lens focal-length equations both reduce to quadratic forms requiring the standard formula.

Reference

Frequently asked questions

What is the quadratic formula and when should it be used?
The quadratic formula, x = (−b ± √(b² − 4ac)) / (2a), solves any equation of the form ax² + bx + c = 0. It is the go-to method when factoring is difficult or impossible — for instance, when the roots are irrational numbers like (1 + √5)/2 or complex numbers. Unlike factoring, the formula always works as long as a ≠ 0, making it the most reliable general-purpose method for quadratic equations.
What does the discriminant b² − 4ac tell you about a quadratic equation?
The discriminant Δ = b² − 4ac predicts the number and type of roots before completing the full calculation. When Δ > 0, the equation has two distinct real roots and the parabola cuts the x-axis at two points. When Δ = 0, there is exactly one repeated real root at x = −b/(2a). When Δ < 0, the two roots are complex conjugates and the parabola never touches the x-axis.
How do you solve 3x² − 7x + 2 = 0 using the quadratic formula?
With a = 3, b = −7, and c = 2, the discriminant is (−7)² − 4(3)(2) = 49 − 24 = 25. The first root is (7 + √25) / 6 = (7 + 5) / 6 = 2. The second root is (7 − 5) / 6 = 1/3. Verification using Vieta's formulas: sum = 2 + 1/3 = 7/3 = −(−7)/3 ✓ and product = 2 × 1/3 = 2/3 = 2/3 ✓.
Can the quadratic formula solve equations with complex or imaginary roots?
Yes. When the discriminant b² − 4ac is negative, the square root of a negative number appears, producing complex conjugate roots of the form (−b ± i√|Δ|) / (2a), where i is the imaginary unit satisfying i² = −1. For example, x² + x + 1 = 0 gives Δ = 1 − 4 = −3, yielding roots (−1 ± i√3) / 2. These complex conjugate pairs always appear together whenever all three coefficients a, b, and c are real numbers.
What is the difference between the sum and product of the roots of a quadratic equation?
For ax² + bx + c = 0, Vieta's formulas give two distinct relationships: the sum of the roots equals −b/a, and the product of the roots equals c/a. For example, with a = 2, b = −6, c = 4, the roots sum to 6/2 = 3 and multiply to 4/2 = 2. These formulas provide a rapid arithmetic check — if computed roots do not satisfy both identities simultaneously, a calculation error has occurred.
Why must the leading coefficient a be non-zero in the quadratic formula?
If a = 0, the x² term disappears entirely and the equation simplifies to bx + c = 0, a linear equation with at most one solution, x = −c/b. In that case the quadratic formula's denominator 2a equals zero, making the expression undefined and the formula inapplicable. A non-zero coefficient a is what creates the squared term, causes the graph to curve into a parabola, and allows for the possibility of two distinct roots.