Quadratic Formula Calculator

Solve any quadratic equation in seconds enter (a), (b), and (c) to find the roots, discriminant, and step-by-step solution instantly.

Solves ax² + bx + c = 0. Fractions such as 3/4 are accepted.

Advertisement
Test ad slot: Calculator action display ad (1000000003)

Was this calculator helpful?

Your feedback helps us improve our calculators.

What Is a Quadratic Formula Calculator?

A quadratic formula calculator is an online math tool that finds the roots (solutions) of a quadratic equation using the quadratic formula.

A quadratic equation is generally written as:

ax2+bx+c=0ax^2+bx+c=0

where:

  • (a) is the coefficient of (x2x^2)

  • (b) is the coefficient of (x)

  • (c) is the constant term

  • (a0a\neq0)

The calculator uses these three coefficients to calculate the discriminant and find the possible values of (x).

How to Use the Quadratic Formula Calculator

First, write your equation in the standard form (ax2+bx+c=0ax^2+bx+c=0). Then identify the three coefficients and enter them into the quadratic formula calculator.

1. Enter Coefficient a

Enter the number multiplying (x2x^2) in the Coefficient a field.

For example, in:

2x2+5x3=02x^2+5x-3=0

the value of (a) is 2.

The coefficient (a) cannot be zero. If (a=0), the equation is linear rather than quadratic.

2. Enter Coefficient b

Enter the coefficient of (x) in the Coefficient b field.

For the equation:

2x2+5x3=02x^2+5x-3=0

Enter 5.

Remember to include a negative sign when the (x)-term is negative.

3. Enter Coefficient c

Enter the constant value in the Coefficient c field.

For:

2x2+5x3=02x^2+5x-3=0

the value of (c) is -3.

You can also enter supported fractional values such as 1/4.

4. Click Calculate

Click Calculate after entering all three coefficients.

The calculator applies the quadratic equation formula and calculates the discriminant and roots.

5. Check the Results

The result section shows the quadratic equation and its solutions, including:

  • Root (x1x_1)

  • Root (x2x_2)

  • Discriminant (D)

  • Nature of the roots

  • Calculation steps

If you want to solve another equation, click Clear and enter new coefficient values.

Quadratic Equation Formula

The quadratic equation formula is used to solve any quadratic equation written as:

ax2+bx+c=0ax^2+bx+c=0

The formula is:

x=b±b24ac2ax=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

Here:

  • (a) = coefficient of (x^2)

  • (b) = coefficient of (x)

  • (c) = constant term

  • (x) = root or solution of the equation

The symbol (\pm) means plus or minus. Therefore, the formula can produce two values:

x1=b+b24ac2ax_1=\frac{-b+\sqrt{b^2-4ac}}{2a}

and

x2=bb24ac2ax_2=\frac{-b-\sqrt{b^2-4ac}}{2a}

These values are called the roots of the quadratic equation.

What Is the Discriminant?

The discriminant is the part of the quadratic formula inside the square root:

D=b24acD=b^2-4ac

It tells you the number and type of roots before you finish solving the equation.

If (D>0)

The equation has two distinct real roots.

If (D=0)

The equation has one repeated real root, meaning:

x1=x2x_1=x_2

If (D<0)

The equation has two complex conjugate roots and no real roots.

So, checking the discriminant is a quick way to understand what type of answer a quadratic equation will produce.

How to Calculate Roots of a Quadratic Equation

To solve a quadratic equation manually, first arrange it as:

ax2+bx+c=0ax^2+bx+c=0

Then:

  1. Identify (a), (b), and (c).

  2. Calculate the discriminant using (D=b24acD=b^2-4ac).

  3. Substitute (a), (b), and (c) into the quadratic formula.

  4. Calculate the square root of the discriminant.

  5. Use both the plus and minus cases to find (x1x_1) and (x2x_2).

  6. Simplify the answers when possible.

The quadratic formula calculator follows this same mathematical process automatically.

Quadratic Formula Example

Suppose you want to solve:

x2+x+0.25=0x^2+x+0.25=0

The coefficients are:

a=1,b=1,c=0.25a=1,\quad b=1,\quad c=0.25

First, calculate the discriminant:

D=b24acD=b^2-4ac

Substitute the values:

D=(1)24(1)(0.25)D=(1)^2-4(1)(0.25)

D=11D=1-1

D=0D=0

Now use the quadratic formula:

x=b±D2ax=\frac{-b\pm\sqrt{D}}{2a}

x=1±02(1)x=\frac{-1\pm\sqrt{0}}{2(1)}

Since:

0=0\sqrt{0}=0

we get:

x=12x=\frac{-1}{2}

Therefore:

x=0.5x=-0.5

The final results are:

x1=0.5x_1=-0.5

x2=0.5x_2=-0.5

Because the discriminant is zero, the equation has one repeated real root.

Examples of Quadratic Equation Roots

The type of roots depends on the discriminant.

Example 1: Two Distinct Real Roots

Consider:

x25x+6=0x^2-5x+6=0

Here:

a=1,b=5,c=6a=1,\quad b=-5,\quad c=6

The discriminant is:

D=(5)24(1)(6)=1D=(-5)^2-4(1)(6)=1

Since (D>0), there are two distinct real roots:

x1=3,x2=2x_1=3,\quad x_2=2

Example 2: One Repeated Real Root

Consider:

x26x+9=0x^2-6x+9=0

The discriminant is:

D=(6)24(1)(9)=0D=(-6)^2-4(1)(9)=0

Therefore:

x1=x2=3x_1=x_2=3

The equation has one repeated real root.

Example 3: Two Complex Roots

Consider:

x2+2x+5=0x^2+2x+5=0

The discriminant is:

D=(2)24(1)(5)D=(2)^2-4(1)(5)

D=16D=-16

Since the discriminant is negative, the equation has two complex roots:

x=1±2ix=-1\pm2i

where (i=1i=\sqrt{-1}).

Quadratic Roots and the Graph of a Parabola

A quadratic function:

y=ax2+bx+cy=ax^2+bx+c

produces a U-shaped or inverted U-shaped graph called a parabola.

The real roots of the quadratic equation are the x-values where the parabola meets the x-axis.

  • Two distinct real roots: The parabola crosses the x-axis at two points.

  • One repeated real root: The parabola touches the x-axis at one point.

  • Complex roots: The parabola does not intersect the x-axis.

This is why the discriminant also tells you useful information about the graph of a quadratic function.

Benefits of Using a Quadratic Equation Calculator

A solve quadratic equation calculator makes it easier to work with equations that would otherwise require several manual steps. It can help you:

  • Find quadratic roots quickly

  • Calculate the discriminant automatically

  • Identify real, repeated, or complex roots

  • Work with decimal and fractional coefficients

  • Reduce arithmetic errors

  • Check manually solved equations

  • Follow the calculation steps to understand the solution

It is especially useful when the coefficients or discriminant make the manual calculation more difficult.

Common Mistakes When Solving Quadratic Equations

Using the wrong signs: A negative coefficient must be entered with its negative sign. For example, (x25x+6=0x^2-5x+6=0) has (b=-5), not (5).

Not putting the equation in standard form: Rearrange the equation into (ax2+bx+c=0ax^2+bx+c=0) before identifying the coefficients.

Using (a=0): A quadratic equation requires (a0a\neq0).

Forgetting the ± symbol: The plus and minus cases are necessary for finding both roots when two distinct solutions exist.

Using (2) instead of (2a): The denominator of the quadratic formula is (2a).

Calculating the discriminant incorrectly: Square (b) first and carefully account for negative values of (a), (b), or (c).

Rounding too early: Keep exact values or enough decimal places until the final step to reduce rounding errors.

Tips for Accurate Results

Write the equation in standard form before entering the coefficients. Double-check negative signs, especially for (b) and (c), because a sign error can completely change the discriminant and roots.

When possible, enter exact fractions instead of converting them to rounded decimals. You can also verify a real root by substituting its value back into the original equation. If the result equals zero, the root satisfies the equation.

Frequently Asked Questions (FAQs)

What is the quadratic equation formula?

The quadratic formula is:

x=b±b24ac2ax=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

It finds the roots of a quadratic equation written as (ax2+bx+c=0ax^2+bx+c=0), where (a0a\neq0).

How do you solve a quadratic equation?

Write the equation as (ax2+bx+c=0ax^2+bx+c=0), identify (a), (b), and (c), and substitute them into the quadratic formula. You can also calculate (D=b24acD=b^2-4ac) first to determine the type of roots.

What is the discriminant of a quadratic equation?

The discriminant is:

D=b24acD=b^2-4ac

Its value determines whether a quadratic equation has two distinct real roots, one repeated real root, or two complex roots.

How do you find the roots of a quadratic equation?

For a quadratic equation (ax2+bx+c=0ax^2+bx+c=0), calculate the roots using:

x1=b+b24ac2ax_1=\frac{-b+\sqrt{b^2-4ac}}{2a}

x2=bb24ac2ax_2=\frac{-b-\sqrt{b^2-4ac}}{2a}

What happens when the discriminant is zero?

When (D=0), the quadratic equation has one repeated real root:

x=b2ax=-\frac{b}{2a}

Both (x1x_1) and (x2x_2) have the same value.

What happens when the discriminant is negative?

If (D<0), the quadratic equation has no real roots. Instead, it has two complex conjugate roots.

Can a quadratic equation have only one root?

Yes. A quadratic equation has one distinct real root when its discriminant is zero. This is called a repeated or double root.

Can a quadratic equation have no real roots?

Yes. If (b24ac<0b^2-4ac<0), the equation has no real roots, but it has two complex conjugate roots.

Can coefficient a be zero?

No. In a quadratic equation (ax2+bx+c=0ax^2+bx+c=0), (a) cannot equal zero. If (a=0), the (x2x^2) term disappears and the equation is no longer quadratic.

Can I use fractions in a quadratic equation?

Yes. The coefficients of a quadratic equation can be fractions. For example:

x2+x+14=0x^2+x+\frac14=0

is a valid quadratic equation.

How many roots does a quadratic equation have?

Over the complex numbers, a quadratic equation has two roots when multiplicity is counted. They may be two distinct real roots, one repeated real root, or two complex conjugate roots.

Are roots and solutions the same in a quadratic equation?

Yes. A root or solution is a value of (x) that makes the quadratic equation equal to zero.

Conclusion

Quadratic formula calculator provides a quick way to solve (ax2+bx+c=0ax^2+bx+c=0). Enter coefficients (a), (b), and (c) to calculate the discriminant, find (x1x_1) and (x2x_2), identify the type of roots, and review the calculation steps.

It can be used to solve quadratic equations, verify manual calculations, and better understand how the quadratic formula and discriminant work together.

Helpful Resources

Pro Tips

  • Ensure the value of coefficient 'a' is not zero, because the equation would no longer be quadratic.

  • Enter coefficients exactly as they appear in the equation ax² + bx + c = 0.

  • Fraction values such as 3/4 or decimal numbers can be used for more precise calculations.

  • Check the discriminant value to understand whether the equation has real or complex solutions.

  • Use the calculator to verify solutions when solving quadratic equations manually in algebra or mathematics studies.