Skip to main content
🔬 Advanced 🔥 Popular

Quadratic Formula Calculator

Solve quadratic equations (ax² + bx + c = 0) and find roots using the quadratic formula. Use this free math calculator for instant results. No signup.

★★★★★ 4.8/5 · 📊 0 calculations · 🔒 Private & free

What Is the Quadratic Formula?

The quadratic formula is a universal solution for any quadratic equation of the form ax² + bx + c = 0. The formula is: x = (−b ± √(b² − 4ac)) / 2a. It always works — regardless of whether the equation factors neatly or not. The ± symbol indicates two solutions: one using addition and one using subtraction of the square root term.

Example: Solve 2x² − 7x + 3 = 0. Here a=2, b=−7, c=3. The discriminant is (−7)² − 4(2)(3) = 49 − 24 = 25. So x = (7 ± √25) / (2×2) = (7 ± 5) / 4. This gives x = (7+5)/4 = 3 and x = (7−5)/4 = 0.5. Both solutions satisfy the original equation.

The quadratic formula has been known since antiquity — Babylonian mathematicians solved specific quadratic problems around 2000 BCE. The Indian mathematician Brahmagupta formulated the general solution in 628 CE. Today, the formula is taught in every secondary school mathematics curriculum worldwide and appears in countless scientific and engineering applications.

The Discriminant: Predicting Solution Types

The expression b² − 4ac inside the square root is called the discriminant (often denoted Δ or D). It tells you everything about the nature of the solutions before you do any further calculation:

Discriminant ValueNumber of SolutionsType of SolutionsGraph Behavior
Δ > 0Two distinct solutionsReal and unequalParabola crosses x-axis at 2 points
Δ = 0One repeated solutionReal and equal (x = −b/2a)Parabola touches x-axis at vertex
Δ < 0No real solutionsTwo complex conjugate rootsParabola does not intersect x-axis

When Δ = 0, the single solution x = −b/(2a) is also the x-coordinate of the parabola's vertex — the axis of symmetry. When Δ < 0, the roots are complex numbers of the form x = (−b ± i√|Δ|) / 2a, where i = √(−1). These complex roots come in conjugate pairs: if (p + qi) is a root, so is (p − qi).

Checking the discriminant before solving saves time: if Δ < 0 in a problem requiring real solutions, you know immediately that no real answer exists. In physics problems, a negative discriminant often indicates the physical situation described cannot occur (e.g., a projectile never reaching that height).

Step-by-Step: How to Use the Quadratic Formula

Follow these steps systematically to avoid errors:

  1. Write in standard form: Rearrange the equation so it equals zero: ax² + bx + c = 0. Example: 3x² = 7x − 2 → 3x² − 7x + 2 = 0.
  2. Identify a, b, c: a = 3, b = −7, c = 2. Be careful with signs — the most common error is sign mistakes with b.
  3. Calculate the discriminant: Δ = (−7)² − 4(3)(2) = 49 − 24 = 25. Positive, so two real solutions.
  4. Apply the formula: x = (−(−7) ± √25) / (2×3) = (7 ± 5) / 6.
  5. Calculate both solutions: x₁ = (7 + 5)/6 = 12/6 = 2 and x₂ = (7 − 5)/6 = 2/6 = 1/3.
  6. Verify: Substitute back: 3(2)² − 7(2) + 2 = 12 − 14 + 2 = 0. ✓ And 3(1/3)² − 7(1/3) + 2 = 1/3 − 7/3 + 6/3 = 0. ✓

Alternative Methods for Solving Quadratic Equations

The quadratic formula is the most powerful and universal method, but other techniques are faster in special cases:

Factoring: If ax² + bx + c factors as a(x − r₁)(x − r₂), the roots are r₁ and r₂. This is faster when the equation factors with small integers. x² − 5x + 6 = (x−2)(x−3) = 0, so x = 2 or x = 3. The challenge is that most quadratics don't factor nicely over the integers.

Completing the Square: Convert the equation to (x + h)² = k form. For x² + 6x + 5 = 0: x² + 6x = −5 → (x+3)² − 9 = −5 → (x+3)² = 4 → x + 3 = ±2 → x = −1 or x = −5. Completing the square is also how you derive the quadratic formula itself.

Graphing: Plot y = ax² + bx + c and find the x-intercepts. Quick for visualization, but not precise unless you use an exact solver. The vertex is at (−b/2a, c − b²/4a) and the parabola opens upward if a > 0 or downward if a < 0.

MethodBest ForAlways Works?Speed
Quadratic FormulaAny quadraticYesMedium
FactoringSimple integer rootsNo (requires factorable)Fast (when it works)
Completing the SquareDeriving vertex formYesMedium-slow
GraphingVisualizationYes (approximately)Fast (approximate)
Numerical MethodsExtremely complex equationsYesFast (computer-based)

Quadratic Equations in Real Life

Projectile Motion: The height h of a projectile at time t is h = −½gt² + v₀t + h₀, where g is gravitational acceleration (9.8 m/s²), v₀ is initial vertical velocity, and h₀ is initial height. To find when it hits the ground (h = 0), solve the quadratic. Example: a ball thrown upward at 20 m/s from 2 m height: 0 = −4.9t² + 20t + 2. Using the quadratic formula: t ≈ 4.19 seconds to land.

Area and Geometry: Quadratics arise when areas involve unknown dimensions. A rectangle has perimeter 40 cm and area 96 cm². If width = x, length = 20 − x, then x(20−x) = 96 → x² − 20x + 96 = 0 → (x−8)(x−12) = 0 → x = 8 or x = 12. Dimensions: 8 cm × 12 cm.

Economics and Finance: Profit maximization: if revenue R(x) = 50x − x²/100 and cost C(x) = 20x + 500, then profit P = R − C = −x²/100 + 30x − 500. Setting P' = 0 gives x = 1500 units for maximum profit. The original equation often comes from a quadratic model of supply and demand.

Engineering and Design: Parabolic shapes appear everywhere in engineering — satellite dishes, suspension bridge cables, headlight reflectors, and radio telescope mirrors all use parabolic curves because a parabola reflects rays from its focus in parallel. The equation of a parabola is a quadratic: y = ax² + bx + c.

Complex Roots and Their Applications

When the discriminant is negative, the quadratic has two complex conjugate roots: x = (−b ± i√|Δ|) / 2a, where i = √(−1). For example, x² + 2x + 5 = 0: Δ = 4 − 20 = −16, so x = (−2 ± i√16)/2 = −1 ± 2i. The two roots are −1 + 2i and −1 − 2i.

Complex roots might seem abstract, but they have powerful applications. In electrical engineering, AC circuit analysis uses complex impedance (Z = R + jX, where j = √(−1) in engineering notation). Quadratic equations with complex roots model circuits with inductors and capacitors. The resonant frequency of an RLC circuit comes from solving a quadratic characteristic equation.

In control systems, the poles of a transfer function (often roots of a characteristic polynomial) determine system stability. Complex conjugate poles with negative real parts correspond to stable oscillatory behavior — the system oscillates but the oscillations decay. This is why your car's suspension doesn't bounce indefinitely after hitting a bump.

Complex numbers also connect to trigonometry via Euler's formula: e^(iθ) = cos(θ) + i·sin(θ). This makes complex numbers the natural language for describing rotations, oscillations, and waves — fundamental phenomena in physics and engineering.

Vieta's Formulas: Relationships Between Roots and Coefficients

For a quadratic ax² + bx + c = 0 with roots x₁ and x₂, Vieta's formulas give elegant relationships without solving explicitly:

Example: For 3x² − 7x + 2 = 0, sum = 7/3 ≈ 2.333 and product = 2/3 ≈ 0.667. Verify: roots are 2 and 1/3. Sum: 2 + 1/3 = 7/3 ✓. Product: 2 × 1/3 = 2/3 ✓.

Vieta's formulas allow you to construct a quadratic given its roots: if roots are 4 and −3, then sum = 1 = −b/a and product = −12 = c/a. Choosing a=1: b = −1, c = −12. Equation: x² − x − 12 = 0. Verify: (x−4)(x+3) = x² − x − 12 ✓.

The Parabola: Graphing Quadratic Functions

The graph of y = ax² + bx + c is a parabola. Key features to identify and plot:

Vertex: The peak or trough of the parabola. x-coordinate = −b/(2a); y-coordinate = substitute back into the equation. The vertex is the minimum point if a > 0 (parabola opens upward) or maximum point if a < 0 (opens downward).

Axis of symmetry: The vertical line x = −b/(2a). The parabola is symmetric about this line.

x-intercepts (roots): Where the parabola crosses the x-axis — the solutions to ax² + bx + c = 0, found with the quadratic formula.

y-intercept: Set x = 0: y = c. Always at the point (0, c).

FeatureFormulaMeaning
Vertex x−b/(2a)Axis of symmetry
Vertex yc − b²/(4a)Min or max value
x-intercepts(−b ± √Δ)/2aRoots / zeros
y-interceptcValue at x=0
Directiona > 0: up, a < 0: downOpening direction

Frequently Asked Questions

What if a = 0 in the quadratic formula?

If a = 0, the equation is no longer quadratic — it becomes linear: bx + c = 0, with solution x = −c/b (assuming b ≠ 0). The quadratic formula is undefined when a = 0 (division by zero). Enter any nonzero value for a in this calculator.

What are complex/imaginary roots?

When discriminant b²−4ac < 0, the equation has no real solutions. The roots are complex: x = (−b ± i√|Δ|)/2a, where i = √(−1). Example: x² + 4 = 0 has roots x = ±2i. These have real-world applications in AC circuits, control theory, and quantum mechanics.

How do I find the vertex of the parabola?

The vertex x-coordinate is x = −b/(2a). Plug this into the equation to find the y-coordinate: y = a(−b/2a)² + b(−b/2a) + c = c − b²/(4a). The vertex is the minimum if a > 0 or maximum if a < 0.

What is the difference between roots, zeros, and solutions?

All three terms refer to the same values: the x-values where ax² + bx + c = 0. "Roots" is common in algebra, "zeros" in function analysis (where y = 0), and "solutions" in equations. They are interchangeable in this context.

What are Vieta's formulas?

For ax² + bx + c = 0 with roots x₁, x₂: sum of roots = −b/a, product of roots = c/a. These hold regardless of whether the roots are rational, irrational, or complex. Useful for checking your solutions without substituting back.

How was the quadratic formula derived?

By completing the square: ax² + bx + c = 0 → x² + (b/a)x = −c/a → x² + (b/a)x + b²/(4a²) = b²/(4a²) − c/a → (x + b/2a)² = (b² − 4ac)/(4a²) → x + b/2a = ±√(b² − 4ac)/(2a) → x = (−b ± √(b²−4ac))/(2a).

Can a quadratic have more than two roots?

No. A degree-n polynomial has exactly n roots (counting multiplicity, in the complex numbers). A quadratic (degree 2) always has exactly 2 roots — though both may be equal (double root when Δ = 0) or both complex (when Δ < 0). This is the Fundamental Theorem of Algebra.

How do quadratic equations model projectile motion?

Height h(t) = −½gt² + v₀t + h₀ is a quadratic in time t. Setting h = 0 gives a quadratic equation whose positive root is the time of landing. The vertex gives the maximum height. For g = 9.8 m/s², v₀ = 20 m/s, h₀ = 0: max height = v₀²/(2g) = 400/19.6 ≈ 20.4 meters.

What does it mean when the discriminant equals zero?

A zero discriminant means one repeated real root: x = −b/(2a). The parabola is tangent to the x-axis — it touches but doesn't cross. Geometrically, the two roots "coincide" at the vertex. Example: x² − 6x + 9 = (x−3)² = 0, double root x = 3.

How do I solve a quadratic with decimal or fractional coefficients?

Apply the quadratic formula directly — it works for any real values of a, b, c. For messy coefficients, multiply through by a common denominator first to get integer coefficients, which reduces arithmetic errors. Example: 0.5x² + 1.5x − 5 = 0 → multiply by 2: x² + 3x − 10 = 0 → (x+5)(x−2) = 0 → x = −5 or x = 2.

Quadratic Equations in Number Theory and Advanced Mathematics

Quadratic equations are just the beginning of a rich mathematical landscape. The Quadratic Formula you learned in school is the degree-2 case of algebraic solutions. For degree 3 (cubic), there is Cardano's Formula (1545). For degree 4 (quartic), Ferrari's Formula. For degree 5 and higher, Abel and Ruffini proved (1824) that no general algebraic formula exists — a profound and surprising result called the Abel-Ruffini theorem.

In number theory, quadratic residues and quadratic reciprocity (proved by Gauss in 1796) describe when equations of the form x² ≡ a (mod p) have solutions. The theory of quadratic forms — expressions like ax² + bxy + cy² — was central to the development of algebraic number theory and led to deep connections with modular forms and elliptic curves.

The quadratic also appears in optimization. In machine learning, ridge regression adds a quadratic penalty term to the loss function. Support Vector Machines solve a quadratic programming problem. The Lagrangian in physics — central to deriving equations of motion — often involves quadratic kinetic and potential energy terms. Mastering the quadratic is truly the entry point to advanced mathematics.

Quadratic Inequalities and Applications

Beyond finding exact roots, quadratic analysis includes solving quadratic inequalities: expressions like ax² + bx + c > 0 or ≤ 0. The solution is a range of x values rather than specific points.

To solve x² − x − 6 > 0: first find roots: x² − x − 6 = (x−3)(x+2) = 0, roots at x=3 and x=−2. The parabola opens upward (a=1 > 0), so it's positive outside the roots: solution is x < −2 or x > 3.

For x² − x − 6 < 0: the parabola is below zero between the roots: −2 < x < 3. This type of solution — a bounded interval — models feasible ranges in optimization: "For what production quantities is profit positive?" or "What range of speeds keeps stopping distance under 50m?"

Optimization using vertex form: Converting ax² + bx + c to a(x−h)² + k reveals the vertex (h,k) directly. For profit P = −2x² + 80x − 600: complete the square → P = −2(x−20)² + 200. Maximum profit is $200 at x = 20 units. The vertex form immediately gives both the optimal quantity and the resulting profit — no calculus required for quadratic optimization.

Using This Quadratic Formula Calculator

Enter the coefficients a, b, and c from your equation in standard form ax²+bx+c=0. The coefficient a must be nonzero. The calculator computes the discriminant, classifies the root type, and returns both roots (or the repeated root, or complex roots). Double-check signs carefully — entering b=5 when the coefficient is actually b=−5 is the most common error. Verify results by substituting back into the original equation: if x is a root, then ax²+bx+c should equal exactly 0. Use this tool for physics projectile problems, geometry area problems, optimization, and any scenario modeled by a quadratic equation.

},{"@type":"Question","name":"What are complex/imaginary roots?","acceptedAnswer":{"@type":"Answer","text":"When the discriminant is negative, the square root of a negative number involves i (the imaginary unit, where i² = −1). The roots are x = (−b ± i×sqrt(|discriminant|)) / 2a. These have real-world applications in electrical engineering, signal processing, and quantum mechanics."}},{"@type":"Question","name":"How do I find the vertex of a parabola?","acceptedAnswer":{"@type":"Answer","text":"The vertex x-coordinate is x = −b/(2a). Plug that back into the equation to get the y-coordinate. The vertex is the minimum point if a > 0 (opens upward) or maximum if a < 0 (opens downward)."}}]}