Calculatorbudy quadratic formula calculator logo
Browse Calculators

Quadratic Formula Calculator

Need to solve a quadratic equation quickly? This calculator helps you find both real and complex roots for any equation in the form ax² + bx + c = 0. Enter your coefficients below to get your answer along with a step-by-step breakdown.

Last updated: March 2026

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.

Why This Tool Exists

We built this tool to take the frustration out of manual algebra calculations. It exists to give students, teachers, and professionals a reliable way to verify their math homework, check engineering calculations, and understand the underlying steps without getting bogged down in arithmetic errors.

When Should You Use This Tool?

Quadratic equations appear surprisingly often in academics and the real world. Here are a few practical situations where this calculator is helpful:

How the Calculator Works

Behind the scenes, this calculator takes the coefficients you provide and applies the standard quadratic formula. First, it calculates the discriminant to figure out if your roots will be real numbers or complex imaginary numbers. Then, it computes the exact math and formats the output for you. It automatically handles negative square roots by introducing the imaginary unit "i", ensuring you always get a mathematically complete answer.

Limitations and Accuracy

This calculator is highly accurate for standard educational and professional use, handling decimals up to six decimal places. However, it relies on standard web browser mathematics. If you enter extremely massive numbers or microscopic fractions, you might experience minor floating point rounding errors. Always verify critical safety engineering calculations with specialized professional software.

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 or simply a math enthusiast, understanding how to solve quadratic equations is an essential skill.

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.

The standard form of a quadratic equation is:

ax² + bx + c = 0

In this equation:

Graphically, a quadratic equation represents a parabola, which is 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, many cannot. When the roots are decimals, fractions, or irrational numbers, factoring becomes difficult. This is where the Quadratic Formula shines. It provides a universal solution that works for all quadratic equations.

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.

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 (b² - 4ac > 0)

If the discriminant is a positive number, its square root will be a real number. Because of the plus-minus symbol, you will get two distinct answers.

2. Zero Discriminant (b² - 4ac = 0)

If the discriminant is exactly zero, the square root of zero is zero. Adding or subtracting zero yields the same result.

3. Negative Discriminant (b² - 4ac < 0)

If the discriminant 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.

Step-by-Step Derivation of the Formula

Students often wonder where this formula comes from. It is 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 us look at two manually solved examples.

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

Common Mistakes to Avoid

Watch out for these common math pitfalls when solving manually:

  1. Sign Errors with 'b': If b is negative (e.g., -5), then -b becomes positive (5). Do not forget the double negative rule.
  2. Squaring Negative Numbers: When calculating b², remember that (-5)² is positive 25, not -25. Always treat negative numbers carefully.
  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 fully before attempting to take the square root.

Frequently Asked Questions

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 mathematically undefined. The calculator will alert you to correct this.

What happens if I enter zero for coefficient 'b' or 'c'?

The tool works perfectly. If b is 0, the equation is a pure quadratic (ax² + c = 0). If c is 0, the equation becomes ax² + bx = 0. The calculator handles both scenarios automatically.

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

The letter 'i' stands for the imaginary unit. It appears when the solution requires taking the square root of a negative number. In graph terms, this means the parabola curve never touches the horizontal x-axis.

Do I need to enter a plus sign for positive numbers?

No, you do not need to enter a plus sign. The calculator assumes any number without a minus sign is positive. Only use the minus sign for negative coefficients.

Can I enter fractions instead of decimals?

Yes. The calculator supports both format types. You can type 0.5 or 1/2 in the input fields, and the internal script will parse it correctly to compute the roots.