Skip to content

Quadratic Formula Calculator

Free online Quadratic Formula Calculator -- solve ax^2 + bx + c = 0 for both roots. Shows the discriminant, vertex, and whether solutions are real or complex. Step-by-step results.

Loading calculator

Preparing Quadratic Formula Calculator...

Reviewed & Methodology

Every calculator is built using industry-standard formulas, validated against authoritative sources, and reviewed by a credentialed financial professional. All calculations run privately in your browser - no data is stored or shared.

Last reviewed:

Reviewed by:

Written by:

How to Use the Quadratic Formula Calculator

  1. 1. Enter coefficient a - type the coefficient of the x-squared term (must not be zero).
  2. 2. Enter coefficient b - type the coefficient of the x term.
  3. 3. Enter coefficient c - type the constant term.
  4. 4. View both solutions - the calculator shows x1 and x2 using the quadratic formula, plus the discriminant value.
  5. 5. Interpret the results - check whether the roots are real and distinct, real and equal, or complex based on the discriminant.

Quadratic Formula Calculator

Solve any quadratic equation of the form ax^2 + bx + c = 0 by entering the three coefficients a, b, and c. This calculator applies the quadratic formula to find both roots, displays the discriminant to classify the solution type, and identifies the vertex coordinates of the corresponding parabola. It is built for algebra students, physics problems involving projectile motion, and engineering optimization tasks.

How the Quadratic Formula Works

The two solutions of ax^2 + bx + c = 0 are given by:

x = (-b +/- sqrt(b^2 - 4ac)) / 2a

The discriminant D = b^2 - 4ac classifies the solutions before you even compute them:

  • D > 0: Two distinct real roots — the parabola crosses the x-axis at two different points
  • D = 0: One repeated real root (double root) — the parabola touches the x-axis exactly at its vertex
  • D < 0: Two complex conjugate roots — the parabola does not cross the x-axis at all

The vertex of the parabola is at (h, k) where h = -b / 2a and k = c - b^2 / (4a). For a > 0, this is the minimum point; for a < 0, it is the maximum.

Worked Examples

Example 1 — two distinct real roots: Solve x^2 - 7x + 10 = 0. D = 49 - 40 = 9 > 0. x = (7 +/- 3) / 2, giving x1 = 5 and x2 = 2. Verify: (x - 5)(x - 2) = x^2 - 7x + 10. Correct.

Example 2 — double root: Solve x^2 - 6x + 9 = 0. D = 36 - 36 = 0. x = 6 / 2 = 3 (repeated). The parabola touches the x-axis at x = 3. This factors as (x - 3)^2 = 0.

Example 3 — complex roots: Solve x^2 + 4x + 13 = 0. D = 16 - 52 = -36 < 0. x = (-4 +/- sqrt(-36)) / 2 = -2 +/- 3i. The two roots are -2 + 3i and -2 - 3i. The parabola has its vertex at (-2, 9) and never crosses the x-axis.

Reference Table — Quadratic Equations and Their Solutions

EquationabcDiscriminantRoot 1Root 2
x^2 - 5x + 6 = 01-56132
x^2 - 7x + 10 = 01-710952
2x^2 + 4x - 6 = 024-6641-3
x^2 - 4x + 4 = 01-44022 (double)
x^2 - 6x + 9 = 01-69033 (double)
x^2 + x + 1 = 0111-3-0.5 + 0.866i-0.5 - 0.866i
x^2 + 4x + 13 = 01413-36-2 + 3i-2 - 3i
3x^2 - 12x + 12 = 03-1212022 (double)

When to Use This Calculator

  • When solving algebra homework involving any quadratic equation, regardless of whether it factors neatly
  • When working on projectile motion problems in physics — height as a function of time follows a quadratic pattern
  • When finding the break-even point or maximum profit in business optimization problems modeled by a quadratic
  • When you need to quickly determine whether an equation has real solutions before setting up a graph
  • When converting a quadratic to vertex form to identify the maximum or minimum value of a function

Common Mistakes

  1. Setting a = 0 — if the x^2 coefficient is zero, the equation is linear (bx + c = 0), not quadratic. The formula requires a to be nonzero. Dividing by 2a with a = 0 produces an undefined result.
  2. Sign errors on b and c — the formula applies to the standard form ax^2 + bx + c = 0. For example, in x^2 - 5x + 6 = 0, b = -5 (negative), not 5. Plugging in the wrong sign for b is one of the most common errors in manual calculations.
  3. Stopping at the discriminant being negative — a negative discriminant does not mean the equation has no solutions. It means the solutions are complex numbers. Complex roots of the form a +/- bi are valid and appear in AC circuit analysis and signal processing.
  4. Forgetting to divide the entire numerator by 2a — the formula is (-b +/- sqrt(D)) / 2a. A frequent error is computing -b +/- sqrt(D) and dividing only part of the expression by 2a instead of dividing the whole numerator.

Real-World Applications

Quadratic equations model any situation where a quantity depends on the square of a variable. In physics, the height of a projectile launched upward at 64 ft/s from a 48 ft platform follows h(t) = -16t^2 + 64t + 48; setting h = 0 and solving gives the time it hits the ground (t = 5 seconds). In civil engineering, the load-deflection relationship for a simply supported beam is quadratic, so engineers solve for the deflection at a given load using the formula. In economics, revenue functions often take the form R(p) = ap^2 + bp + c, where p is price; the vertex gives the price that maximizes revenue. In optics, the lens equation and the geometry of parabolic reflectors and satellite dishes are derived from quadratic relationships. In computer graphics, quadratic Bezier curves use the same mathematical structure to draw smooth paths between control points.

Tips

  • Always evaluate the discriminant D = b^2 - 4ac first — it tells you immediately whether to expect two real roots, one repeated root, or complex roots
  • For projectile problems, set the height equation equal to the target altitude and solve: -16t^2 + v0*t + h0 = target_height
  • The sum of the two roots always equals -b/a and their product always equals c/a — use these as a quick verification check after solving
  • Factoring is faster when the discriminant is a perfect square and the coefficients are small integers, but the formula works for every case
  • The vertex x-coordinate h = -b / (2a) can be used to find the maximum or minimum value without solving the full equation
  • If the parabola opens downward (a < 0), the vertex is a maximum — important for profit and area optimization problems

Frequently Asked Questions

What does the discriminant tell you about a quadratic equation?
The discriminant is the expression under the square root in the quadratic formula: D = b^2 - 4ac. If D > 0, the equation has two distinct real solutions (the parabola crosses the x-axis twice). If D = 0, there is exactly one real solution, also called a repeated or double root (the parabola touches the x-axis at its vertex). If D < 0, there are no real solutions -- only two complex conjugate solutions (the parabola does not cross the x-axis at all).
Why does a quadratic equation always have exactly two solutions?
The Fundamental Theorem of Algebra states that every polynomial of degree n has exactly n roots (counting complex roots and multiplicities). Since a quadratic is degree 2, it always has exactly 2 roots. These may be two distinct real numbers, one repeated real number (counted twice), or two complex conjugate numbers (a + bi and a - bi). The quadratic formula x = (-b +/- sqrt(b^2 - 4ac)) / 2a produces both solutions through the +/- sign.
How does a quadratic equation relate to its graph?
The equation ax^2 + bx + c = 0 corresponds to a parabola on a graph. The solutions (roots) are the x-coordinates where the parabola crosses the x-axis. The vertex (the highest or lowest point) is at x = -b / 2a and y = c - b^2 / 4a. If a > 0 the parabola opens upward (minimum point), and if a < 0 it opens downward (maximum point). The axis of symmetry is the vertical line x = -b / 2a, which passes through the vertex.
What is completing the square and how does it relate to the quadratic formula?
Completing the square is the algebraic technique used to derive the quadratic formula itself. Starting from ax^2 + bx + c = 0, divide by a, move c/a to the right side, add (b/2a)^2 to both sides to form a perfect square trinomial, take the square root of both sides, and solve for x. The result is the quadratic formula: x = (-b +/- sqrt(b^2 - 4ac)) / 2a. Completing the square is also useful for converting quadratic equations to vertex form: a(x - h)^2 + k.
What are some real-world applications of quadratic equations?
Quadratic equations model projectile motion (the height of a ball thrown in the air follows h = -16t^2 + v0*t + h0), optimization problems (finding the maximum profit or minimum cost), area calculations (if a rectangle's area is fixed and one dimension depends on x), breaking distance of vehicles (which increases with the square of speed), and the trajectory of satellite dishes and parabolic reflectors. In physics, kinematics equations are fundamentally quadratic when acceleration is constant.
Calculators