Skip to content
Math

Quadratic Formula Calculator

Solve any quadratic equation

Solve any quadratic equation of the form ax² + bx + c = 0. Our calculator shows both solutions (real or complex) with complete step-by-step work.

🔬Quadratic Equation Methodology

The universal solution method for any quadratic equation. Derived by completing the square on the general form.

Formula

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

Where:

a= Coefficient of x² (a ≠ 0)
b= Coefficient of x
c= Constant term
±= Gives two solutions (+ and -)

Limitations:

  • Requires a ≠ 0 (otherwise linear)
  • Complex roots when discriminant < 0

📜 Historical Background

Quadratic equations have been solved for over 4,000 years. Babylonian clay tablets from 1800 BCE show solutions to quadratic problems, though using geometric rather than algebraic methods. Indian mathematician Brahmagupta (628 CE) gave an explicit formula for quadratics. Islamic mathematicians, particularly al-Khwarizmi (830 CE), whose book 'al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala' gave us the word 'algebra,' systematized solution methods. The modern formula using symbolic notation emerged in European mathematics during the 16th-17th centuries with Cardano, Viète, and Descartes. The quadratic formula's elegant form x = (-b ± √(b² - 4ac))/(2a) became a cornerstone of algebra education. Today, quadratics appear in physics (projectile motion), engineering (optimization), and finance (compound interest problems).

🔬 Scientific Basis

The quadratic formula solves ax² + bx + c = 0 by completing the square algebraically. Starting from ax² + bx + c = 0, divide by a: x² + (b/a)x + c/a = 0. Add and subtract (b/2a)² to complete the square: (x + b/2a)² = b²/4a² - c/a = (b² - 4ac)/4a². Taking the square root: x + b/2a = ±√(b² - 4ac)/2a, giving x = (-b ± √(b² - 4ac))/2a. The ± yields two solutions because both +√D and -√D satisfy (x + b/2a)² = D. The discriminant D = b² - 4ac determines root nature: D > 0 gives two real roots, D = 0 gives one repeated root, D < 0 gives complex conjugate roots. Every quadratic has exactly two roots (counting multiplicity) by the Fundamental Theorem of Algebra.

💡 Practical Examples

  • Projectile: When does a ball reach 20 meters if h(t) = -5t² + 30t? Solve -5t² + 30t - 20 = 0. Using formula: t = (−30 ± √(900−400))/(−10) = (−30 ± √500)/(−10) ≈ 0.76 and 5.24 seconds.
  • Simple quadratic: x² - 5x + 6 = 0. Formula gives x = (5 ± √(25-24))/2 = (5 ± 1)/2 = 3 or 2.
  • Complex roots: x² + 4 = 0. Formula gives x = (0 ± √(-16))/2 = ±4i/2 = ±2i.

⚖️ Comparison with Other Methods

The quadratic formula always works, making it the 'universal' method. Factoring is faster when it works (integer roots), but many quadratics don't factor nicely—the formula handles irrational and complex roots that factoring cannot. Completing the square is the foundation that derives the formula; it's useful for converting to vertex form but tedious for just finding roots. Graphing provides visual insight (x-intercepts are roots) but lacks precision. Numerical methods (Newton's method) are overkill for quadratics but essential for higher-degree polynomials. For cubic and quartic equations, similar formulas exist (Cardano's, Ferrari's) but are much more complex. For degree 5+, no general formula exists (Abel-Ruffini theorem), requiring numerical methods.

Pros & Cons

Advantages

  • +Works for ALL quadratic equations
  • +Provides exact solutions (including complex)
  • +Systematic and reliable procedure
  • +Well-suited for calculator/computer implementation
  • +Reveals root structure through discriminant

Limitations

  • -More complex than factoring for simple cases
  • -Requires careful arithmetic (easy to make sign errors)
  • -Doesn't reveal factors directly
  • -May produce irrational or complex numbers
  • -Less intuitive than geometric interpretations

📚Sources & References

🏛️Wolfram MathWorld - Quadratic Equation📋Historical: Babylonians (1800 BCE) solved quadratics

* Sum of roots: r₁ + r₂ = -b/a

* Product of roots: r₁ × r₂ = c/a

* Vertex x-coordinate: x = -b/(2a)

* Parabola opens up if a > 0, down if a < 0

Features

Both Solutions

Find x₁ and x₂ instantly

Full Steps

Complete worked solution

Graph

See the parabola visualization

Complex Numbers

Handles imaginary solutions

Frequently Asked Questions

What is the quadratic formula?

x = (-b ± √(b²-4ac)) / 2a. Solves any equation of form ax² + bx + c = 0.

What is the discriminant?

b² - 4ac. Positive = 2 real solutions. Zero = 1 solution. Negative = complex solutions.

How do I identify a, b, c?

In ax² + bx + c = 0: a is the x² coefficient, b is the x coefficient, c is the constant.

What if a = 0?

Then it's not quadratic, it's linear. Use simple algebra instead.

Can there be no solution?

Every quadratic has solutions, but they may be complex (imaginary) numbers.

Related Calculators

Calculate by State

Get state-specific results with local tax rates, laws, and data: