U

Quadratic Formula Calculator

Solve ax² + bx + c = 0 with the quadratic formula: both real roots, the discriminant, and Vieta's sum and product of roots as built-in checks.
Equation

Quadratic solutions

Breakdown

Discriminant (b² − 4ac)
0
Sum of roots
0
Product of roots
0

Key Assumptions

  • The equation is a standard quadratic ax² + bx + c = 0 with a nonzero.
  • Roots are reported as real numbers; a negative discriminant gives complex roots that this calculator does not display.
  • The formula −b±√(b²−4ac) over 2a is applied exactly as written.
  • Vieta's relations hold: the sum of roots is −b/a and the product is c/a.

Formula Used

x = (−b ± √(b² − 4ac)) ÷ (2a) Discriminant D = b² − 4ac
Embed this calculator on your website

Add this embed page to your site — visitors use the calculator right from your page.

The quadratic equation appears everywhere once you start looking. A ball thrown into the air traces a parabola; a business profit curve bends over when costs outpace demand; the path of a satellite, the shape of a suspension bridge cable and the trajectory of a projectile are all quadratic in their simplest models. The Quadratic Formula Calculator takes the three coefficients of any equation of the form ax² + bx + c = 0 and returns its roots — the values of x where the parabola crosses the x-axis. It is one of the most requested formulas in school mathematics, and this tool removes the arithmetic so you can focus on what the answer means.

The Quadratic Formula Explained

For any quadratic equation written as ax² + bx + c = 0, with a not zero, the two solutions are given by the quadratic formula:

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

The ± symbol means two answers: one with the square root added, one with it subtracted, which the calculator reports as the first and second roots. The formula is derived by completing the square, a geometric trick that turns the equation into a form the square root can unlock, and it works for every quadratic — real or complex, factorable or not. With the default coefficients a = 1, b = −3 and c = −10, the discriminant is 49 and the roots are 5 and −2, which you can verify by plugging either back into the original equation and getting zero.

What the Discriminant Tells You

The expression under the square root, D = b² − 4ac, is called the discriminant, and it alone decides how many solutions a quadratic has before you compute a single root. If D is positive, there are two distinct real roots and the parabola crosses the x-axis twice. If D is zero, the two roots coincide at a single point — the parabola just touches the axis at its vertex, a situation called a double root. If D is negative, there are no real roots: the parabola never crosses the x-axis, and the solutions are complex numbers involving the imaginary unit. The calculator reports the discriminant alongside the roots so you can see which case you are in at a glance.

Quadratic Functions in Real-World Modelling

The coefficients of a quadratic are not abstract — they encode the physics or economics behind the curve. For a projectile launched upward, the coefficient a carries half the acceleration of gravity, b carries the initial velocity and c carries the starting height, and the positive root is the moment the object hits the ground. For a business, a quadratic profit function arises when revenue grows linearly while costs accelerate, so the positive root is the production level where profit returns to zero and the vertex is the level of maximum profit. In structural engineering, a loaded cable or beam deflects along a quadratic curve, so the roots locate the points of zero deflection. In every case, the same three numbers a, b and c reduce the real situation to a parabola, and the quadratic formula is what turns those numbers into meaningful crossing points. This is why the tool is worth using even when you could sketch the graph — the roots are precise answers, not eyeballed intersections.

Reading the Results

  • Discriminant — b² − 4ac; positive means two real roots, zero means one, negative means complex.
  • First root — the solution with the plus sign before the square root.
  • Second root — the solution with the minus sign.
  • Sum of roots — −b/a by Vieta's formulas, a useful check of the two answers.
  • Product of roots — c/a, the second Vieta relation used to verify the pair.

Use the Vieta checks to confirm the roots: multiply them together and you should recover c/a, and add them to get −b/a. If the numbers match, the roots are almost certainly correct.

Completing the Square and the Vertex

Beyond the roots, the same coefficients describe the parabola's shape. The vertex, the highest or lowest point of the curve, sits at x = −b/(2a), the midpoint of the two roots, and its y-value is found by substituting back. The vertex form of a quadratic, a(x − h)² + k, rewrites the equation around that turning point, which is how completing the square is used to sketch graphs by hand. Knowing the vertex matters in applications: the vertex of a profit parabola is the maximum profit, the vertex of a projectile's height curve is its peak, and the vertex of a cost function is the break-even design. The roots tell you where the curve crosses zero; the vertex tells you where it turns around.

Factoring Versus the Formula

Simple quadratics can be solved by factoring: x² − 3x − 10 = (x − 5)(x + 2), which immediately gives roots 5 and −2. Factoring is fast but only works when the roots are simple numbers, and it becomes impractical for anything with irrational or complex roots. The quadratic formula has no such limitation — it handles every case uniformly, which is why it is the general tool. A common exam trap is to factor only to discover the equation will not factor with integers; the formula rescues exactly those situations. The calculator's default example is deliberately factorable so you can verify the answers by hand and build confidence in the tool.

Negative Coefficients and Special Cases

Coefficients can be negative or zero in every position except a. A zero b term gives an equation like ax² + c = 0, which is pure x² plus a constant, and its roots are the two square roots of −c/a — real when −c/a is positive. A zero c term gives ax² + bx = 0, which always factors as x(ax + b) and always includes zero as one root. Handling negatives in the formula is a matter of careful sign arithmetic, which is exactly where handwritten solutions go wrong — the calculator applies the formula with the signs built in, so −b ± √(b² − 4ac) is evaluated exactly as the mathematics requires.

When to Use the Calculator

Reach for the quadratic formula when you need exact roots of any equation of the form ax² + bx + c = 0 — solving projectile motion for the time a ball hits the ground, finding the price that maximises a quadratic profit function, checking where a quadratic curve crosses zero in engineering, or verifying a hand-factored exam answer. The calculator is also a teaching aid: enter different discriminants and watch the roots move from two distinct real numbers to a double root to no real roots, which makes the meaning of the discriminant intuitive rather than memorised.

Common Mistakes

  • Forgetting the sign: −b must carry the sign of b, so b = −3 gives −(−3) = +3.
  • Dividing only one term of the numerator by 2a — the whole expression (−b ± √D) is divided.
  • Setting a = 0, which turns the equation linear and breaks the formula; the calculator flags nothing but the answer becomes undefined.
  • Ignoring the discriminant and assuming two roots exist when D is negative.
  • Misremembering c/a and −b/a when using Vieta's relations to check answers.

A Step-by-Step Worked Example

Walk through the default example by hand to see exactly how the formula produces its answers. Take a = 1, b = −3 and c = −10. First compute the discriminant: b² − 4ac = 9 + 40 = 49, a perfect square, which tells you both roots will be integers. The square root of 49 is 7, so the numerator for the first root is −(−3) + 7 = 10, divided by 2a = 2, giving 5. The second root uses −(−3) − 7 = −4, divided by 2, giving −2. Now apply the Vieta checks: the sum 5 + (−2) = 3 should equal −b/a = 3, and the product 5 × (−2) = −10 should equal c/a = −10. Both match, which confirms the two roots are correct. Finally verify by substitution: 5² − 3·5 − 10 = 25 − 15 − 10 = 0, and (−2)² − 3·(−2) − 10 = 4 + 6 − 10 = 0, so both values genuinely satisfy the original equation. That full loop — formula, discriminant, Vieta, substitution — is the complete confidence check you can run on any quadratic answer.

Key Assumptions

  • The equation is in standard form ax² + bx + c = 0 with a nonzero.
  • The calculator reports real roots; negative discriminants yield complex roots that are not displayed here.
  • Roots are computed to four decimal places, sufficient for nearly every practical use.
  • Vieta's relations are exact and can always be used to verify the returned pair.

From the trajectory of a ball to the shape of a bridge, quadratics describe the turning points of the world, and the quadratic formula is the key to them. Enter a, b and c, and the Quadratic Formula Calculator hands you the roots, the discriminant and the checks to prove them right.

Disclaimer

Results are provided as estimates for informational purposes only and may be inaccurate. Always verify outcomes with a qualified professional before making financial or personal decisions based on these calculations.

FAQs

Related Calculators