CalculatorBudy Official Logo
Browse Calculators

Quadratic Formula Calculator

Solve ax² + bx + c = 0 instantly.

Result:
Enter values and click Calculate.

How to Use

  1. Enter the coefficients a, b, and c of your quadratic equation.
  2. You can use fractions (e.g., 3/4) or decimals (e.g., 0.5).
  3. Click Calculate Roots to see the solution.
  4. The result will show both real and complex roots, plus the step-by-step derivation below.

Comprehensive Guide to the Quadratic Formula

Algebra is one of the foundational pillars of mathematics, and among its most famous tools is the Quadratic Formula. Whether you are a student preparing for exams, an engineer calculating structural loads, or simply a math enthusiast, understanding how to solve quadratic equations is an essential skill. This page serves not only as a calculator but as a complete educational resource to help you master quadratic equations.

What is a Quadratic Equation?

A quadratic equation is a specific type of polynomial equation of the second degree. The term "quadratic" comes from the Latin word quadratus, which means square, referring to the variable x being squared (raised to the power of 2).

The standard form of a quadratic equation is:

ax² + bx + c = 0

In this equation:

Graphically, a quadratic equation represents a parabola—a U-shaped curve. Solving the equation for zero is essentially finding the "roots" or "x-intercepts" where this curve crosses the horizontal x-axis.

The Quadratic Formula Explained

While some quadratic equations can be solved by simple factoring (finding two numbers that multiply to 'c' and add to 'b'), many cannot. When the roots are decimals, fractions, or irrational numbers, factoring becomes difficult or impossible. This is where the Quadratic Formula shines. It provides a universal solution that works for every quadratic equation.

The formula is derived by "completing the square" on the standard form equation. It is written as:

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

Let's break down the components of this formula:

Analyzing the Discriminant: The Key to Roots

The most critical part of the quadratic formula is the expression inside the square root: b² - 4ac. This specific combination of coefficients is called the Discriminant, often denoted by the Greek letter Delta (Δ).

The value of the discriminant tells you everything about the nature of the roots without actually solving the full equation. There are three distinct scenarios:

1. Positive Discriminant (Δ > 0)

If b² - 4ac is a positive number, its square root will be a real number. Because of the ± symbol, you will get two distinct answers.

2. Zero Discriminant (Δ = 0)

If b² - 4ac is exactly zero, the square root of zero is zero. Adding or subtracting zero yields the same result.

3. Negative Discriminant (Δ < 0)

If b² - 4ac is negative, you are attempting to take the square root of a negative number. In the real number system, this is impossible. However, in the complex number system, we use the imaginary unit i (where i² = -1).

Step-by-Step Derivation of the Formula

Students often wonder where this magic formula comes from. It is not a random discovery but a logical consequence of algebra. Here is the brief derivation:

  1. Start with the standard form: ax² + bx + c = 0
  2. Subtract c from both sides: ax² + bx = -c
  3. Divide every term by a: x² + (b/a)x = -c/a
  4. To complete the square, take half of the coefficient of x (which is b/2a), square it (b²/4a²), and add it to both sides.
  5. This creates a perfect square on the left: (x + b/2a)² = -c/a + b²/4a²
  6. Find a common denominator for the right side: (x + b/2a)² = (b² - 4ac) / 4a²
  7. Take the square root of both sides: x + b/2a = ±√(b² - 4ac) / 2a
  8. Isolate x by subtracting b/2a: x = (-b ± √(b² - 4ac)) / 2a

Solved Examples

To fully understand how to use the calculator and the formula, let’s look at three manually solved examples representing the three discriminant cases.

Example 1: Two Real Roots

Equation: x² - 5x + 6 = 0

Identify coefficients: a = 1, b = -5, c = 6.

Step 1: Discriminant
Δ = (-5)² - 4(1)(6) = 25 - 24 = 1.
Since 1 > 0, we expect two real roots.

Step 2: Apply Formula
x = [ -(-5) ± √1 ] / 2(1)
x = [ 5 ± 1 ] / 2

Step 3: Solve
x₁ = (5 + 1) / 2 = 6/2 = 3
x₂ = (5 - 1) / 2 = 4/2 = 2

Example 2: Complex Roots

Equation: x² + 2x + 5 = 0

Identify coefficients: a = 1, b = 2, c = 5.

Step 1: Discriminant
Δ = (2)² - 4(1)(5) = 4 - 20 = -16.
Since -16 < 0, we have complex roots.

Step 2: Simplify Square Root
√(-16) = 4i (where i is the imaginary unit).

Step 3: Solve
x = [ -2 ± 4i ] / 2
Divide both terms by 2:
x₁ = -1 + 2i
x₂ = -1 - 2i

Real-World Applications

Why do we learn this? Quadratic equations appear surprisingly often in real life, physics, and engineering.

Common Mistakes to Avoid

Even experienced math students make simple errors when using the quadratic formula. Watch out for these pitfalls:

  1. Sign Errors with 'b': If b is negative (e.g., -5), then -b becomes positive (5). Many students forget this double negative.
  2. Squaring Negative Numbers: When calculating b², remember that (-5)² is positive 25, not -25. Always put negative numbers in parentheses.
  3. The Fraction Bar: The division by 2a applies to the entire numerator, not just the square root part.
  4. Order of Operations: Calculate the discriminant (b² - 4ac) fully before attempting to take the square root.

Frequently Asked Questions (FAQ)

Can I use this calculator for linear equations?

No. A linear equation has the form bx + c = 0 (where a = 0). If you enter 0 for 'a', the formula involves division by zero, which is undefined. This calculator checks for that and will alert you.

What if 'b' or 'c' is zero?

The formula still works perfectly. If b=0, the equation is ax² + c = 0 (pure quadratic). If c=0, the equation is ax² + bx = 0, which can also be solved by factoring out x.

Why does the calculator show 'i' in the result?

The letter 'i' stands for the imaginary unit. It appears when the solution requires the square root of a negative number. This means the parabola does not touch the x-axis in the real coordinate plane.

Is the Quadratic Formula the only way to solve these equations?

No. You can also solve quadratics by factoring, completing the square manually, or graphing. However, the Quadratic Formula is the most robust method because it works for all quadratic equations, regardless of how "messy" the numbers are.