Quadratic Formula Calculator

Solve any quadratic equation with this quadratic formula calculator. Shows roots, discriminant, vertex, step-by-step work, and a parabola graph.

Solve any quadratic equation in the form ax² + bx + c = 0 using the quadratic formula. See the discriminant, both roots (real or complex), vertex coordinates, axis of symmetry, and a parabola graph - all with step-by-step working.

Ad
Ad

About Quadratic Formula Calculator

The Quadratic Formula

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

This formula finds the values of x where the parabola y = ax² + bx + c crosses the x-axis (the roots or zeros of the equation).

Worked example: Solve 2x² - 7x + 3 = 0

  1. Identify: a = 2, b = -7, c = 3
  2. Discriminant: b² - 4ac = (-7)² - 4(2)(3) = 49 - 24 = 25
  3. √25 = 5
  4. x = (7 ± 5) / 4
  5. x₁ = (7 + 5) / 4 = 12/4 = 3
  6. x₂ = (7 - 5) / 4 = 2/4 = 0.5

Verify: 2(3)² - 7(3) + 3 = 18 - 21 + 3 = 0 ✓

The Discriminant

The discriminant (b² - 4ac) determines how many and what type of roots exist:

DiscriminantRootsGraph BehaviourExample
b² - 4ac > 0Two distinct real rootsParabola crosses x-axis twicex² - 5x + 6 = 0: roots 2, 3
b² - 4ac = 0One repeated real rootParabola touches x-axis at vertexx² - 4x + 4 = 0: root 2
b² - 4ac < 0Two complex conjugate rootsParabola does not cross x-axisx² + 1 = 0: roots ±i

Vertex and Axis of Symmetry

Every parabola has a vertex (its highest or lowest point) and an axis of symmetry (a vertical line through the vertex):

Vertex: h = -b/(2a), k = f(h) = c - b²/(4a)

Axis of symmetry: x = -b/(2a)

If a > 0If a < 0
Parabola opens upwardParabola opens downward
Vertex is the minimum pointVertex is the maximum point
Range: y ≥ kRange: y ≤ k

Example: For y = 2x² - 8x + 5:

  • h = -(-8)/(2×2) = 8/4 = 2
  • k = 2(2)² - 8(2) + 5 = 8 - 16 + 5 = -3
  • Vertex: (2, -3), opens upward (a = 2 > 0)
  • Axis of symmetry: x = 2

Complex Roots Explained

When the discriminant is negative, the roots involve the imaginary unit i (where i² = -1):

Example: Solve x² + 2x + 5 = 0

  1. Discriminant: 4 - 20 = -16
  2. √(-16) = 4i
  3. x = (-2 ± 4i) / 2 = -1 ± 2i
  4. Roots: -1 + 2i and -1 - 2i (complex conjugates)

Complex roots always come in conjugate pairs (a + bi and a - bi).

Three Forms of a Quadratic

FormFormulaWhat It Shows
Standard formy = ax² + bx + cy-intercept (c) and direction (sign of a)
Factored formy = a(x - r₁)(x - r₂)Roots r₁ and r₂ directly
Vertex formy = a(x - h)² + kVertex (h, k) directly

The quadratic formula converts from standard form to factored form. Completing the square converts to vertex form.

Quick Reference: Perfect Square Quadratics

EquationFactored FormRoot
x² + 2x + 1 = 0(x + 1)² = 0x = -1
x² - 6x + 9 = 0(x - 3)² = 0x = 3
4x² + 12x + 9 = 0(2x + 3)² = 0x = -1.5
x² - 10x + 25 = 0(x - 5)² = 0x = 5

Where Does the Quadratic Formula Come From?

The quadratic formula is derived by completing the square on the general form ax² + bx + c = 0. The method was standardised by European mathematicians in the 16th and 17th centuries, but the underlying ideas reach back to Babylonian clay tablets around 2000 BCE (per MacTutor History of Mathematics, University of St Andrews), where scribes solved area problems that reduce to quadratics using geometric cut-and-paste arguments. Muhammad ibn Musa al-Khwarizmi set out systematic algebraic solutions in his 820 CE treatise Al-Kitab al-Mukhtasar fi Hisab al-Jabr wal-Muqabala, the source of the word "algebra".

The derivation in modern notation: start with ax² + bx + c = 0, divide by a to get x² + (b/a)x + (c/a) = 0, move the constant to give x² + (b/a)x = -c/a, then add (b/2a)² to both sides to complete the square on the left. The left side becomes (x + b/2a)², and solving for x produces the familiar formula. This is a rearrangement, not a new fact - every quadratic is a completed square in disguise.

Completing the Square vs Factoring vs the Formula

The quadratic formula works on every quadratic, but it is not always the fastest route to an answer. Experienced students pick the method that fits the coefficients in front of them.

MethodBest WhenSpeedLimitation
FactoringInteger roots, small a b cFastest when it worksFails when roots are irrational or complex
Completing the squareYou need vertex form y = a(x - h)² + kModerateArithmetic-heavy when a ≠ 1
Quadratic formulaGeneral case, any real coefficientsAlways worksComputes even when factoring would be trivial
GraphicalApproximate roots, visual intuitionInstant with a graphing calculatorNot exact; reads to ~3-4 decimal places

Factoring x² - 5x + 6 = 0 gives (x - 2)(x - 3) = 0 in one line, and the formula on the same equation is slower. But the formula is a safety net - reaching for it when factoring stalls is faster than a misguided integer search.

Why Are Complex Roots Useful in the Real World?

Complex roots signal that a quadratic function never crosses the x-axis in the real plane, but that does not make them abstract curiosities. In electrical engineering the characteristic equation of an RLC circuit is a quadratic whose complex roots give the damped oscillation frequency and decay rate; per Signals and Systems (Oppenheim and Willsky, 2nd ed.), a discriminant under zero is exactly the underdamped regime that produces ringing. In structural engineering, Euler buckling loads come from quadratic characteristic equations and a negative discriminant predicts vibration rather than static collapse. Quantum mechanics routinely splits complex conjugate pairs into sine and cosine components via Euler's identity e^(iθ) = cos θ + i sin θ.

For coursework, the key takeaway is that "no real solution" is still a solution - just in a wider number system. A related algebraic tool is prime factorisation, which, paired with the rational root theorem, often spots integer or rational roots without running the full formula.

Worked Example: Projectile Motion

A cricket ball is hit upward from 1 m with an initial vertical velocity of 20 m/s. Using g = 9.8 m/s² (the International Earth Rotation Service adopted standard gravity is 9.80665 m/s²), the height in metres after t seconds is h(t) = -4.9t² + 20t + 1. To find when the ball hits the ground, solve -4.9t² + 20t + 1 = 0.

  1. a = -4.9, b = 20, c = 1
  2. Discriminant: 20² - 4(-4.9)(1) = 400 + 19.6 = 419.6
  3. √419.6 ≈ 20.484
  4. t = (-20 ± 20.484) / (2 × -4.9) = (-20 ± 20.484) / -9.8
  5. t₁ ≈ -0.0494 s (rejected - negative time, before the hit)
  6. t₂ ≈ 4.131 s (the ball lands after about 4.13 seconds)

Only the positive root is physically meaningful, which is the usual pattern in projectile problems. Maximum height occurs at the vertex: h = -b/2a = -20/-9.8 ≈ 2.041 s, giving peak height 1 + 20(2.041) - 4.9(2.041)² ≈ 21.4 m.

Common Mistakes

  • Sign errors on b. When b is negative, -b in the formula becomes positive. For 2x² - 7x + 3 = 0, -b = 7, not -7. The American Mathematical Monthly has repeatedly catalogued this as the single biggest source of student errors on quadratic questions.
  • Forgetting the 2a denominator. Dividing only by a (instead of 2a) is a common slip, especially when a = 1 makes the difference invisible.
  • Squaring b wrong. (-7)² = 49, not -49. The discriminant always squares before any subtraction.
  • Dropping the ± sign. The formula produces two candidates. Writing only x = (-b + √D) / 2a silently halves the solution set.
  • Misreading complex output. "-1 ± 2i" is two roots, not one. Complex conjugates always travel in pairs when coefficients are real.
  • Treating a = 0 as quadratic. If a is zero, the equation is linear and needs bx + c = 0, not the quadratic formula. For mixed equation types, the equation solver handles both.

Applications Beyond the Classroom

Quadratics are the simplest non-trivial polynomials and they appear wherever two rates compete. Apart from projectile motion, recognisable use cases include:

  • Break-even analysis. Revenue minus cost is often quadratic when price affects demand; the positive root is the break-even output.
  • Optimal pricing. Profit = (price - cost)(quantity), with quantity linear in price, gives a quadratic whose vertex is the profit-maximising price.
  • Satellite dish design. Parabolic reflectors focus signals at the vertex focus point f = 1/(4a) above the vertex, a direct reading from the standard form.
  • Car stopping distance. The UK Highway Code stopping distance formula d = v²/(2μg) is quadratic in speed v, which is why doubling speed quadruples stopping distance.
  • LED bulb cost analysis. Comparing lifetime cost of two bulbs often reduces to finding when a quadratic cost difference crosses zero.

For more equation types including linear and systems of equations, the equation solver covers all three. To visualise any function interactively with zoom and pan, the graphing calculator plots arbitrary expressions. For exact arithmetic with integer and rational roots, the fraction calculator keeps numbers symbolic.

All calculations run in your browser. No data is sent to any server.

Sources

Frequently Asked Questions

What is the quadratic formula?

The quadratic formula is x = (-b +/- sqrt(b^2 - 4ac)) / 2a. It finds the solutions (roots) of any quadratic equation in the form ax^2 + bx + c = 0, where a is not zero.

What does the discriminant tell you?

The discriminant is b^2 - 4ac. If it is positive, the equation has two distinct real roots. If it equals zero, there is exactly one repeated root. If it is negative, the roots are complex (imaginary) numbers.

Can this calculator handle complex roots?

Yes. When the discriminant is negative, the calculator displays both complex conjugate roots in the form a + bi and a - bi, where i is the imaginary unit.

What is the vertex of a parabola?

The vertex is the highest or lowest point on the parabola, depending on whether it opens downward or upward. Its coordinates are (h, k) where h = -b/2a and k = f(h). This calculator computes the vertex automatically.

Why can't the coefficient a be zero?

If a equals zero, the equation becomes linear (bx + c = 0) rather than quadratic. A quadratic equation requires a nonzero x^2 term. Use the Equation Solver tool if you need to solve linear equations.

Link to this tool

Copy this HTML to link to this tool from your website or blog.

<a href="https://toolboxkit.io/tools/quadratic-calculator/" title="Quadratic Formula Calculator - Free Online Tool">Try Quadratic Formula Calculator on ToolboxKit.io</a>