CalcMountain

Quadratic Formula Calculator

Enter the coefficients a, b, and c of a quadratic equation to find its solutions using the quadratic formula. Shows the discriminant, number of real solutions, and the vertex of the parabola.

The quadratic formula solves any quadratic equation ax² + bx + c = 0. The formula x = (-b ± √(b² - 4ac))/(2a) gives the roots — the x-values where the parabola crosses (or touches, or misses) the x-axis. This is one of the most-used formulas in algebra, appearing in physics, engineering, finance, statistics, and countless applied math problems.

The ± symbol means two solutions in general: one with + and one with −. These are the two x-intercepts of the parabola y = ax² + bx + c. Depending on the **discriminant** (b² - 4ac), you get: - **Positive discriminant**: two distinct real solutions (parabola crosses x-axis twice). - **Zero discriminant**: one repeated real solution (parabola touches x-axis at vertex). - **Negative discriminant**: no real solutions (parabola misses x-axis; complex roots exist).

The parabola y = ax² + bx + c opens upward if a > 0, downward if a < 0. Its vertex is at x = -b/(2a), and y = c - b²/(4a) at the vertex. The y-intercept is at (0, c).

Quadratic equations describe many natural phenomena: - **Projectile motion**: height vs time follows quadratic. - **Optimization**: profit, area, distance often quadratic in some variable. - **Geometric problems**: areas of squares, circles' inscribed shapes. - **Physics**: kinetic energy (½mv²), gravitational PE, simple harmonic motion. - **Financial modeling**: compound calculations, present-value problems.

Common applications: physics (projectile motion), engineering (parabolic dishes, antennas), optimization problems (maximize area, minimize cost), finance (calculating break-even), and standard algebra coursework.

Inputs

Results

Root Type

Two distinct real roots

Root 1 (x₁)

3

Root 2 (x₂)

2

Discriminant

1

Vertex

(2.5, -0.25)

Last updated:

Formula

**Quadratic equation:** ax² + bx + c = 0 (with a ≠ 0) **Quadratic formula:** x = (-b ± √(b² - 4ac)) / (2a) **Discriminant:** Δ = b² - 4ac - Δ > 0: two distinct real solutions. - Δ = 0: one repeated real solution. - Δ < 0: no real solutions (two complex conjugate solutions). **Vertex of parabola:** x_vertex = -b/(2a) y_vertex = c - b²/(4a) = -Δ/(4a) **Worked example: x² - 5x + 6 = 0** a = 1, b = -5, c = 6. Discriminant: 25 - 24 = 1. x = (5 ± √1)/2 = (5 ± 1)/2. x = 3 or x = 2. Verify: (x-2)(x-3) = x² - 5x + 6 ✓. **Worked example: x² + 4x + 5 = 0** a = 1, b = 4, c = 5. Discriminant: 16 - 20 = -4. No real solutions (Δ < 0). Complex solutions: x = (-4 ± 2i)/2 = -2 ± i. **Worked example: x² - 4x + 4 = 0** a = 1, b = -4, c = 4. Discriminant: 16 - 16 = 0. x = 4/2 = 2 (one repeated root). Factors as (x-2)² = 0. **Sum and product of roots:** For roots r₁ and r₂: - Sum: r₁ + r₂ = -b/a. - Product: r₁ × r₂ = c/a. For x² - 5x + 6 = 0: r₁ + r₂ = 5, r₁ × r₂ = 6. So r₁ = 2, r₂ = 3 (or vice versa). **Factored form:** If roots are r₁ and r₂: a × (x - r₁)(x - r₂) = ax² - a(r₁+r₂)x + a(r₁r₂) Matches ax² + bx + c when: b = -a(r₁+r₂) and c = a × r₁ × r₂. **Vertex form:** ax² + bx + c = a(x - h)² + k Where h = -b/(2a), k = c - b²/(4a). Useful for graphing and optimization. **Standard form vs vertex form:** Standard: ax² + bx + c (good for coefficients). Vertex: a(x-h)² + k (good for graphing). Factored: a(x-r₁)(x-r₂) (good for finding roots). Convert between as needed. **Common quadratic equations:** - **Projectile**: h(t) = h₀ + v₀t - (1/2)gt². Find when h = 0 (lands). - **Area maximize**: A = L × W, with constraint perimeter fixed. Quadratic in L. - **Quadratic time complexity** (CS): T(n) = an² + bn + c. - **Compound interest**: not quadratic but related. **Projectile motion example:** Ball thrown upward from 10 m at 15 m/s. When lands? h(t) = 10 + 15t - 4.9t² = 0 (g ≈ 9.8 m/s²). 4.9t² - 15t - 10 = 0. a = 4.9, b = -15, c = -10. Discriminant: 225 + 196 = 421. t = (15 ± √421)/9.8 = (15 ± 20.52)/9.8. t = 3.62 (positive, valid) or t = -0.56 (negative, invalid). Lands at ~3.62 seconds. **Maximum height of projectile:** At vertex of parabola. x_vertex = -b/(2a) = 15/9.8 ≈ 1.53 s. Height: h(1.53) = 10 + 15(1.53) - 4.9(1.53)² ≈ 21.5 m. **Completing the square (alternative derivation):** For ax² + bx + c = 0: x² + (b/a)x = -c/a. x² + (b/a)x + (b/2a)² = -c/a + (b/2a)². (x + b/2a)² = (b² - 4ac)/(4a²). x + b/2a = ±√(b² - 4ac)/(2a). x = -b/(2a) ± √(b² - 4ac)/(2a). x = (-b ± √(b² - 4ac))/(2a). Quadratic formula derived from completing the square. **Discriminant interpretations:** Discriminant Δ = b² - 4ac tells: - Number of real roots. - Whether quadratic factors over the integers. - Geometry of parabola intersecting x-axis. For integer factorization: If Δ is a perfect square, equation factors with rational roots. If Δ = 25 (perfect square), nice factoring works. If Δ = 7, roots are irrational. **Solving by factoring vs formula:** For x² - 5x + 6 = 0: Factor: (x-2)(x-3) = 0. So x = 2 or 3. Factoring is faster when possible. Formula always works but more computation. **Solving by graphing:** Graph y = ax² + bx + c. Roots are x-intercepts (where y = 0). Number of x-intercepts: - 2: discriminant > 0. - 1: discriminant = 0. - 0: discriminant < 0. **Numerical solvers:** For very large coefficients or precise solutions: use computer. Python: numpy.roots([a, b, c]). Wolfram Alpha: solve ax^2 + bx + c = 0. **Common applications:** - **Physics**: projectile motion (height = quadratic in time). - **Engineering**: optimization (max strength, min weight). - **Finance**: option pricing, break-even analysis. - **Statistics**: regression curves. - **Computer science**: algorithmic complexity (O(n²)). - **Architecture**: parabolic arches, antennae. - **Acoustics**: resonance frequencies. **Complex roots:** When discriminant negative, roots are complex: x = (-b ± i√(|b² - 4ac|))/(2a) Form: real ± imaginary. These come in conjugate pairs (mirror images across real axis). **Software:** - **Calculators**: scientific calculators have quadratic solver. - **Excel**: implement formula or use Solver add-in. - **Python (numpy)**: np.roots([a, b, c]). - **Wolfram Alpha**: type "solve x^2 + 5x + 6 = 0". - **GeoGebra**: visualize parabola, solutions. **Pitfalls:** - **Sign errors**: especially with negative coefficients. - **Division by zero**: a can't be 0 (would be linear, not quadratic). - **Discriminant negative**: no real solutions (or use complex). - **Computational issues**: large coefficients can lose precision. - **Squaring negative**: be careful with signs. - **Confusing roots with vertex**: roots are where y = 0; vertex is the extreme.

How to use this calculator

  1. Enter coefficients a, b, c of ax² + bx + c = 0.
  2. a cannot be zero (otherwise not quadratic).
  3. Calculator returns roots (solutions), discriminant, and vertex.
  4. Verify: substitute each root back; should equal zero.
  5. For complex roots (discriminant < 0): real and imaginary parts.
  6. For factoring: if discriminant is perfect square, equation has rational roots.

Worked examples

Standard quadratic

**Scenario:** Solve x² - 7x + 12 = 0. **Calculation:** a=1, b=-7, c=12. Discriminant: 49 - 48 = 1. x = (7 ± 1)/2. x = 4 or x = 3. **Result:** Two real solutions: 3 and 4. Factored form: (x-3)(x-4) = 0. Verify: (-3)(-4) = 12 = c ✓; -3 + -4 = -7 = -b ✓.

Projectile motion

**Scenario:** Ball thrown up from 1.5 m with initial velocity 20 m/s. When does it hit ground? **Calculation:** h(t) = 1.5 + 20t - 4.9t² = 0. Multiply by -1: 4.9t² - 20t - 1.5 = 0. Discriminant: 400 + 29.4 = 429.4. t = (20 + √429.4)/9.8 ≈ (20 + 20.72)/9.8 ≈ 4.16 sec (or negative, rejected). **Result:** ~4.16 seconds. Maximum height at t = 20/9.8 ≈ 2.04 s. Max h = 1.5 + 20(2.04) - 4.9(2.04)² ≈ 21.9 m.

No real solutions

**Scenario:** Solve x² + 2x + 5 = 0. **Calculation:** a=1, b=2, c=5. Discriminant: 4 - 20 = -16. Negative. No real solutions. **Result:** Complex solutions: x = (-2 ± √-16)/2 = -1 ± 2i. The parabola y = x² + 2x + 5 doesn't cross x-axis. Always above (vertex at (-1, 4)).

When to use this calculator

**Use the quadratic formula for:**

- **Solving quadratic equations**: ax² + bx + c = 0. - **Finding x-intercepts**: parabola crosses x-axis. - **Optimization**: minimum or maximum of parabola. - **Projectile motion**: when does object land. - **Geometric problems**: areas, dimensions. - **Algebra coursework**: standard tool. - **Numerical analysis**: factoring polynomials.

**Three solution outcomes:**

| Discriminant (Δ) | Solutions | |---|---| | Δ > 0 | Two real, distinct | | Δ = 0 | One real, repeated | | Δ < 0 | No real (two complex) |

Always check discriminant first.

**Vertex (optimization):**

For min (if a > 0) or max (if a < 0): x_vertex = -b/(2a) y_vertex = c - b²/(4a)

Critical for optimization problems: maximum profit, minimum cost, etc.

**Sum and product of roots:**

If you know one root, find the other: r₁ + r₂ = -b/a, so r₂ = -b/a - r₁. r₁ × r₂ = c/a, so r₂ = c/(a × r₁).

Useful shortcut for some problems.

**Common applications:**

- **Physics**: projectile motion equations. - **Engineering**: optimization of dimensions, performance. - **Finance**: break-even analysis (revenue vs cost). - **Statistics**: regression analysis, curve fitting. - **Architecture**: parabolic structures (arches, antennas). - **Acoustics**: resonance frequency calculations. - **Computer science**: O(n²) algorithm analysis. - **Optics**: parabolic mirrors and lenses. - **Sports**: projectile trajectories (ball, missile).

**Factoring alternative:**

When roots are integers or simple rationals, factoring is faster.

For x² - 5x + 6 = 0: factor as (x-2)(x-3) = 0. Look for two numbers that multiply to c (=6) and add to b (=-5): -2, -3.

Use formula when factoring is hard or roots are irrational/complex.

**Real-world checks:**

After solving, check answer makes physical sense: - Negative time? Usually rejected for physics. - Negative dimension? Reject. - Imaginary speed? Reject (or interpret differently).

**Software:**

- **Scientific calculators**: built-in quadratic solver. - **Excel**: SQRT and IF functions. - **Python (numpy)**: np.roots([1, b, c]). - **Wolfram Alpha**: instant solve. - **GeoGebra**: visual + solver. - **Online calculators**: many free.

**Numerical precision:**

For large coefficients or near-zero discriminant: use careful subtraction to avoid loss of precision.

Wikipedia "loss of significance" article describes mitigation strategies.

**Educational value:**

Quadratic formula: - Universal algorithm for quadratics. - Foundation for higher polynomials. - Connects algebra and geometry (parabolas). - Used in numerical methods. - Memorized by every algebra student.

**Pitfalls:**

- **Sign errors**: especially when b is negative. - **Dividing too early**: keep formula intact. - **Squaring -b**: result is +b² regardless of sign. - **Misinterpreting "a"**: must be coefficient of x², not constant. - **For complex roots**: include both real and imaginary parts. - **Rejecting valid solutions**: sometimes both work, sometimes one is extraneous. - **For physics problems**: always verify physical reasonableness.

**Comparison with cubic / quartic / higher:**

Cubic equations: solvable by Cardano's formula (1545), but messy. Quartic: solvable by Ferrari's formula (1540), even messier. Quintic and higher: NO general formula exists (Abel-Ruffini theorem, 1824).

For higher polynomials: use numerical methods (Newton's method, etc.).

**Pitfalls (continued):**

- **a = 0**: not actually quadratic (linear equation). - **Wrong identification**: which is a, b, c? - **Sign of square root**: always positive in formula; ± gives both solutions. - **Forgetting both solutions**: ± yields two answers. - **Physical units**: ensure consistent throughout.

Common mistakes to avoid

  • Sign errors with negative coefficients.
  • Computing only one solution (forgetting the ± gives two).
  • Wrong identification of a, b, c.
  • a = 0 (not quadratic — linear).
  • For discriminant negative: claiming no solutions (complex solutions exist).
  • Confusing roots (x-intercepts) with vertex.
  • Squaring errors.
  • For physics: accepting negative time or other unphysical results.

Frequently Asked Questions

Sources & further reading

SponsoredShop Top Deals on AmazonSupport CalcMountain — browse top-rated products at no extra cost to you.

Related Calculators