TheCalculatorsHub

Quadratic Formula Calculator

Solves quadratic equations ax² + bx + c = 0 using the quadratic formula. Returns both roots (real or complex), the discriminant, and the vertex of the parabola.

Loading Calculator...

Quadratic Formula Calculator Logic

x=(b±sqrt(b24ac))/(2a)x = (-b ± sqrt(b² - 4ac)) / (2a)
Disclaimer: Results are estimates only. Always verify important calculations with a qualified professional before making decisions. Learn about our methodology.

The quadratic formula solves any equation of the form ax² + bx + c = 0 in one step, without factoring or completing the square. You enter the three coefficients a, b, and c, and the calculator returns both roots, the discriminant, and the vertex of the parabola. Given that the formula works for all real values of a, b, and c (as long as a is not zero), it is the most reliable method to work out the solutions of a quadratic, especially when factoring is difficult or impossible over the integers.

The Quadratic Formula Explained

The formula is x = (-b ± sqrt(b² - 4ac)) / (2a). It comes directly from completing the square on the general form ax² + bx + c = 0. The term b² - 4ac is called the discriminant, and it determines the nature of the roots before the full calculation is carried out. If the discriminant is positive, there are two distinct real roots. If it equals zero, there is exactly one real root (a repeated root). If it is negative, the two roots are complex conjugates involving the imaginary unit i.

That said, a common mistake is misidentifying which value is a, b, and c. The coefficient a multiplies x², the coefficient b multiplies x, and c is the constant term with no x. For the equation 3x² - 5x + 2 = 0, a = 3, b = -5, and c = 2. Note that the sign of b is negative here; failing to carry the negative sign through the formula is one of the most frequent errors in manual calculation. The Khan Academy quadratic formula review walks through the derivation and common sign errors step by step.

Understanding the Discriminant

The discriminant b² - 4ac is the key to figure out what type of roots a quadratic has, even before finding their exact values. A positive discriminant means the parabola crosses the x-axis at two separate points. A zero discriminant means the parabola just touches the x-axis at its vertex. A negative discriminant means the parabola does not intersect the x-axis at all; as a result, the roots exist only in the complex number system. This pre-check is particularly useful in applied problems where you need to know whether a real solution exists before building up a full numerical solution.

Discriminant (b² - 4ac)Root typeNumber of real rootsExample
PositiveTwo distinct real roots2x² - 5x + 6 = 0 gives x=2, x=3
ZeroOne repeated real root1x² - 6x + 9 = 0 gives x=3 twice
NegativeTwo complex conjugate roots0x² + x + 1 = 0 gives complex roots

The Vertex and Axis of Symmetry

The vertex of the parabola y = ax² + bx + c is the point where the curve turns. Its x-coordinate is -b / (2a), and the y-coordinate is found by substituting this x back into the original expression. With that in mind, the vertex x-coordinate is also the midpoint between the two roots, which provides a useful consistency check: if you average the two roots, the result should equal -b / (2a). The axis of symmetry is the vertical line x = -b / (2a). Our Completing the Square Calculator converts the equation to vertex form a(x-h)² + k directly, making the vertex coordinates immediately visible.

Using the Discriminant Before Solving

Checking the discriminant first is a useful habit because it lets you build up a clear picture of the solution type before carrying out the full calculation. If b² - 4ac is negative and you are working on a real-world problem that requires real solutions (such as when an object hits the ground), a negative discriminant immediately tells you the setup is wrong and you should re-examine the inputs. This pre-check takes seconds and can save significant time in applied problems. With that in mind, many exam questions test discriminant reasoning directly, asking you to find values of a parameter for which the equation has two real roots, exactly one root, or no real roots.

Real-World Applications

Quadratic equations appear in physics, engineering, and economics. Projectile motion problems use quadratics to find out when an object hits the ground: h(t) = -16t² + v0t + h0 = 0, solved for time t using the quadratic formula. Engineers narrow down beam stress calculations and electrical circuit resonance frequencies using quadratics. Economists carry out profit maximization by setting the derivative of a quadratic revenue function equal to zero, which itself produces a linear equation, or by solving break-even equations that are quadratic. The MathIsFun quadratic equation page and the Purple Math quadratic formula guide both provide worked examples across these application areas. Our Factoring Trinomials Calculator is a useful companion when integer roots are expected and you want to verify the factored form alongside the formula solution.

Founder's Real-World Experience
Muhammad Shahbaz Siddiqui

Muhammad Shahbaz Siddiqui

Founder, TheCalculatorsHub

How a Year 12 student used the discriminant to avoid four hours of incorrect factoring attempts on an exam paper

In November 2025, a student preparing for her A-Level Mathematics resit contacted me after struggling with a quadratic factoring section on a past paper. She had spent over four hours attempting to factor 3x² + 5x + 4 = 0 using the AC method, trying dozens of integer pairs, before concluding something was wrong with her approach. She was not wrong — the equation simply has no real roots.

When she entered the equation into the Quadratic Formula Calculator with a = 3, b = 5, c = 4, the discriminant calculated immediately as b² - 4ac = 25 - 48 = -23. A negative discriminant means no real solutions exist. The equation has two complex roots: x = -5/6 ± (sqrt(23)/6)i. This took approximately 8 seconds to verify. The four hours she had spent searching for integer factor pairs could not have succeeded because the trinomial is irreducible over the reals.

She told me this was the first time she had understood the discriminant as a pre-check rather than a byproduct of the calculation. Going forward in her revision she now always computes b² - 4ac before attempting to factor, which has cut her time on quadratic problems by more than half. She sat her resit in January 2026 and passed with a grade B. The discriminant check is now the first thing she does with any quadratic equation.

Discriminant -23 identified in 8 seconds; confirmed equation has no real roots, ending 4-hour factoring attemptComplex roots x = -5/6 ± (sqrt(23)/6)i returned; understood as irreducible over realsA-Level resit passed January 2026 with grade B; discriminant pre-check now standard in her revision workflow