Quadratic Formula Calculator

Free online Quadratic Formula Calculator with step-by-step solutions. Solves ax² + bx + c = 0 with interactive graph, discriminant analysis, and complex roots. 100% client-side, no data upload.

Enter coefficients
Fractional values like 3/4 or -1/2 are accepted.
Results
Enter coefficients and click Calculate to see the solution.

Recent Calculations

No calculations yet.

Quadratic Formula Calculator

⚡ A quadratic equation is a second-degree polynomial equation of the form \(ax^2 + bx + c = 0\) with \(a \neq 0\). The quadratic formula provides the roots (solutions) for any quadratic equation, and is one of the most important formulas in all of mathematics.

Definition & Standard Form A quadratic equation is any equation that can be rearranged in standard form: \(ax^2 + bx + c = 0 \quad (a \neq 0)\) where \(x\) is the unknown variable, and \(a\), \(b\), \(c\) are known coefficients. The coefficient \(a\) is the quadratic coefficient, \(b\) is the linear coefficient, and \(c\) is the constant. If \(a = 0\), the equation degenerates to a linear equation \(bx + c = 0\), which has a single solution.
The Quadratic Formula The solutions of \(ax^2 + bx + c = 0\) are given by: \(x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}\). The expression under the square root, \(\Delta = b^2 - 4ac\), is called the discriminant. It determines the nature of the roots: \(\Delta > 0\) — two distinct real roots; \(\Delta = 0\) — one repeated real root (double root); \(\Delta < 0\) — two complex conjugate roots.
Derivation by Completing the Square Starting from \(ax^2 + bx + c = 0\), divide by \(a\): \(x^2 + \dfrac{b}{a}x + \dfrac{c}{a} = 0\). Move the constant term: \(x^2 + \dfrac{b}{a}x = -\dfrac{c}{a}\). Add \(\left(\dfrac{b}{2a}\right)^2\) to both sides to complete the square: \(x^2 + \dfrac{b}{a}x + \left(\dfrac{b}{2a}\right)^2 = \dfrac{b^2}{4a^2} - \dfrac{c}{a}\). Factor the left side and combine the right side: \(\left(x + \dfrac{b}{2a}\right)^2 = \dfrac{b^2 - 4ac}{4a^2}\). Take the square root of both sides: \(x + \dfrac{b}{2a} = \pm \dfrac{\sqrt{b^2 - 4ac}}{2a}\). Finally, solve for \(x\): \(x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}\).
Historical Background
  • Babylonians (c. 2000 BC) — solved quadratic equations using geometric methods, equivalent to the quadratic formula.
  • Euclid (c. 300 BC) — developed geometric solutions in his Elements.
  • Brahmagupta (c. 628 AD) — gave an explicit formula for solving quadratic equations.
  • Al-Khwārizmī (c. 820 AD) — systematically solved quadratics and introduced the word "algebra".
  • Bhāskara II (c. 1150 AD) — gave the complete modern quadratic formula.
  • René Descartes (1637) — introduced modern notation using \(x, y, z\) and the \(\pm\) symbol.
The quadratic formula is one of the oldest and most enduring formulas in mathematics.
Discriminant & Root Analysis The discriminant \(\Delta = b^2 - 4ac\) determines the nature of the roots and provides insights into the graph of the parabola: \(\Delta > 0\): the parabola intersects the x-axis at two distinct points. \(\Delta = 0\): the parabola touches the x-axis at exactly one point (the vertex lies on the axis). \(\Delta < 0\): the parabola does not intersect the x-axis at all. The vertex of the parabola is at \(x_v = -\dfrac{b}{2a}\), and the axis of symmetry is the vertical line \(x = x_v\).
Vieta's Formulas For a quadratic equation \(ax^2 + bx + c = 0\) with roots \(x_1\) and \(x_2\): \(x_1 + x_2 = -\dfrac{b}{a}\), \(x_1 \cdot x_2 = \dfrac{c}{a}\). These formulas, discovered by the 16th-century mathematician François Viète, provide a direct link between the coefficients and the roots without explicitly solving the equation.
Real-World Applications
  • Physics — projectile motion under gravity: \(h(t) = -\frac{1}{2}gt^2 + v_0t + h_0\).
  • Engineering — stress analysis, beam deflection, and control systems.
  • Economics — profit maximization, cost functions, and break-even analysis.
  • Architecture — parabolic arches, suspension bridges, and reflective surfaces.
  • Astronomy — orbital mechanics and celestial trajectories.
  • Everyday life — optimization problems, area calculations, and financial modeling.
Wherever there is a relationship that involves a squared term, the quadratic formula is often the key to understanding it.
Beyond the Basics The quadratic formula is a gateway to deeper mathematics: Complex numbers — when \(\Delta < 0\), the roots involve the imaginary unit \(i = \sqrt{-1}\). Polynomial theory — the fundamental theorem of algebra states that every non-constant polynomial has at least one complex root. Calculus — optimization and integration of quadratic functions are foundational. Linear algebra — quadratic forms and matrix equations generalize the quadratic equation to multiple dimensions. Numerical methods — the quadratic formula is used in algorithms for root-finding and solving higher-degree equations.

📌 "The quadratic formula is one of the most important and beautiful results in elementary mathematics."

🔒 Client-side only⚡ Web Worker processing🌐 Works offline🛡️ Zero server logs

Frequently Asked Questions

Got questions about the quadratic formula? We've got answers.

What is the quadratic formula?

The quadratic formula x = (-b ± √(b² - 4ac)) / (2a) gives the solutions to any quadratic equation ax² + bx + c = 0.

What is the discriminant?

The discriminant Δ = b² - 4ac determines the nature of the roots: Δ > 0 means two real roots, Δ = 0 means one repeated root, Δ < 0 means two complex roots.

Can a be zero?

No. If a = 0, the equation becomes linear (bx + c = 0), not quadratic.

What are complex roots?

When the discriminant is negative, the square root of a negative number introduces the imaginary unit i, resulting in complex conjugate roots.

Is this calculator private?

Yes. All calculations run locally in your browser. No data is transmitted or stored on any server.