Quadratic Formula Calculator

Solve quadratic equations instantly with step-by-step factoring, real or complex roots, discriminant analysis, and parabola vertex coordinates.

Calculator Inputs

Quadratic coefficient (a ≠ 0).
Linear coefficient.
Constant term.

Calculated Results

Real Roots (x₁, x₂)
x₁ = 2.00, x₂ = -3.00
Discriminant (b² - 4ac) 25.00 (Two Real Roots)
Parabola Vertex (h, k) (-0.50, -6.25)
Y-Intercept (0, -6.00)
Values calculate live as you adjust inputs.

About Quadratic Formula Calculator

The roots of a quadratic equation tell you which values of (x) make the expression equal to zero. They are also called solutions or zeros of the equation. When you look at a quadratic graph, these values correspond to the points where the parabola crosses or touches the x-axis.

Not every quadratic equation produces two different real answers. Depending on its coefficients, it can have two distinct real roots, one repeated real root, or two complex roots. The discriminant helps identify which situation applies before you even calculate the solutions.

Consider these three equations:

Quadratic equation Roots What happens on the graph?
(x^2-5x+6=0) 2 and 3 The parabola crosses the x-axis twice
(x^2-4x+4=0) 2 and 2 The parabola touches the x-axis at one point
(x^2+2x+5=0) (-1+2i) and (-1-2i) The parabola has no real x-intercepts

The second equation has a repeated root. Although the calculator may display the same value for both solutions, it is still a valid quadratic result. The third equation also has solutions, but they belong to the complex number system rather than the real number line.

Understanding this distinction makes the calculator’s results easier to interpret. A result with no real roots does not mean the equation is unsolvable; it means its solutions cannot be represented as ordinary real numbers.

How Do the Coefficients Change the Roots and the Graph?

A quadratic equation is commonly written as (ax^2+bx+c=0). The three coefficients do more than determine the final answers. Together, they shape the parabola, affect its position, and determine where it meets the x-axis.

The coefficient (a): the direction and shape of the parabola

The value of (a) determines whether the parabola opens upward or downward. A positive value produces an upward-opening curve, while a negative value produces a downward-opening curve. Its magnitude also affects how wide or narrow the curve appears.

For example, compare:

  • (y=x^2)

  • (y=3x^2)

  • (y=-x^2)

The first two open upward, but the curve for (3x^2) is narrower. The third opens downward. Changing (a) can also change the roots and the position of the vertex.

The coefficient (b): the horizontal position of the vertex

The coefficient (b) influences where the vertex sits along the x-axis. Its relationship with (a) determines the axis of symmetry:

[
x=-\frac{b}{2a}
]

For example, in (y=x^2-6x+5), the vertex lies at (x=3). If the coefficient of (x) changes, the vertex’s horizontal position may change as well.

The constant (c): the y-intercept

The constant term determines where the graph crosses the y-axis. When (x=0), the quadratic expression becomes (y=c), so the y-intercept is always ((0,c)).

Changing (c) can also change the number of real roots. This is easy to see when the other two coefficients stay the same.

Take the equation:

[
y=x^2-4x+c
]

Now change only the constant term:

Constant (c) Equation Discriminant Roots
3 (x^2-4x+3=0) 4 1 and 3
4 (x^2-4x+4=0) 0 2 and 2
5 (x^2-4x+5=0) -4 (2+i) and (2-i)

Notice what happens: the vertex stays directly above or below (x=2), but its height changes as (c) changes. The graph first crosses the x-axis twice, then touches it once, and finally moves completely above it. This is a useful way to understand why a small change in a coefficient can produce a different type of solution.

Understanding the Vertex Alongside the Roots

The roots tell you where a parabola meets the x-axis, while the vertex identifies its turning point. Looking at both results gives a clearer picture of the equation than looking at the solutions alone.

For example:

[
y=x^2-6x+5
]

The equation has two roots:

[
x=1 \quad \text{and} \quad x=5
]

Its vertex is:

[
(3,-4)
]

The x-coordinate of the vertex is exactly halfway between the two roots. This happens because a parabola is symmetrical around its axis of symmetry. When two distinct real roots exist, the vertex lies midway between their x-values.

The vertex also helps explain why an equation may have two, one, or no real roots:

  • For an upward-opening parabola, a vertex below the x-axis means the curve crosses the x-axis twice.

  • If its vertex sits directly on the x-axis, the equation has one repeated real root.

  • If its vertex is above the x-axis, the parabola never reaches the x-axis, so there are no real roots.

The situation is reversed for a downward-opening parabola. Its vertex is the highest point rather than the lowest point.

There is also a direct mathematical relationship between the discriminant and the vertex’s y-coordinate. If the discriminant is represented by (\Delta), then:

[
k=-\frac{\Delta}{4a}
]

Here, (k) is the y-coordinate of the vertex. This connects two results shown by the quadratic formula calculator and explains why the discriminant can tell you about the graph’s position.

Why the Y-Intercept Matters When Solving a Quadratic

The y-intercept is the point where a parabola crosses the vertical axis. It is determined by the constant term because the x-coordinate is zero at every point on that axis.

For example:

[
y=2x^2-5x+3
]

Setting (x=0) gives:

[
y=2(0)^2-5(0)+3=3
]

The y-intercept is therefore ((0,3)).

It is important not to confuse this point with a root. A root is a value of (x) that makes the entire expression equal to zero. The y-intercept, on the other hand, tells you the value of (y) when (x=0).

This difference becomes useful when checking a graph. If the equation has a constant term of 3, its graph must cross the y-axis at 3. If a plotted graph shows a different y-intercept, either the equation or the graph has been entered incorrectly.

The y-intercept can also help you sketch a parabola by hand. Along with the vertex, axis of symmetry, and roots, it gives you another reference point for understanding the curve.

When the Quadratic Formula Gives Complex Roots

A negative discriminant does not mean the quadratic formula has failed. It means the equation has no real-number solutions and that its roots involve imaginary numbers.

Consider:

[
x^2+2x+5=0
]

The discriminant is:

[
\Delta=b^2-4ac
]

[
\Delta=2^2-4(1)(5)=-16
]

The square root of a negative number is not a real number. In complex arithmetic, the imaginary unit (i) is defined by:

[
i=\sqrt{-1}
]

Using this relationship, the solutions become:

[
x=\frac{-2\pm\sqrt{-16}}{2}
]

[
x=-1\pm2i
]

The two roots are (-1+2i) and (-1-2i). They have the same real part but opposite imaginary parts. This is called a pair of complex conjugate roots, and it is the pattern produced by quadratic equations with real coefficients when their discriminant is negative.

What does this mean for the graph? The equation (y=x^2+2x+5) has its vertex at ((-1,4)) and opens upward. Its lowest point is already above the x-axis, so the curve never crosses it. That is why there are no real x-intercepts, even though the equation still has two complex solutions.

If your calculator displays no real roots for an equation with a negative discriminant, this is a mathematical result rather than an error.

What If the Equation Is Not in Standard Form?

The quadratic formula calculator needs the coefficients of an equation in standard form:

[
ax^2+bx+c=0
]

However, equations in homework, textbooks, and practical problems are not always written this way. You may need to expand brackets, combine like terms, or move a value from one side of the equation to the other before entering the coefficients.

Example 1: An equation with brackets

Suppose you have:

[
2x(x-3)=5
]

First, expand the brackets:

[
2x^2-6x=5
]

Move 5 to the left side:

[
2x^2-6x-5=0
]

Now the coefficients are clear:

  • (a=2)

  • (b=-6)

  • (c=-5)

These are the values to enter into the calculator.

Example 2: An equation with a squared bracket

Consider:

[
(x+2)^2=9
]

Expand the squared expression:

[
x^2+4x+4=9
]

Move 9 to the left:

[
x^2+4x-5=0
]

The correct coefficients are (a=1), (b=4), and (c=-5).

A common mistake is to enter the numbers from the original equation directly without rearranging it. Always simplify the equation and make one side equal to zero first. Also check that (a) is not zero. If the coefficient of (x^2) is zero, the equation is linear rather than quadratic, so the quadratic formula does not apply.

How to Check Whether Your Calculated Roots Are Correct

Getting an answer from a quadratic formula calculator is useful, but knowing how to verify it gives you more confidence in the result. Two simple checks can help you identify mistakes.

1. Substitute each root into the original equation

A correct root should make the quadratic expression equal to zero.

For example:

[
x^2-5x+6=0
]

The roots are 2 and 3.

Substitute (x=2):

[
2^2-5(2)+6=4-10+6=0
]

Now substitute (x=3):

[
3^2-5(3)+6=9-15+6=0
]

Both values satisfy the original equation, confirming that the solutions are correct.

2. Check the sum and product of the roots

For a quadratic equation (ax^2+bx+c=0), the sum and product of its two roots follow these relationships:

[
x_1+x_2=-\frac{b}{a}
]

[
x_1x_2=\frac{c}{a}
]

Using (x^2-5x+6=0), the expected sum is 5 and the expected product is 6.

The calculated roots give:

[
2+3=5
]

[
2\times3=6
]

Both checks match the coefficients. These relationships are particularly helpful when checking answers in algebra exercises or spotting a possible sign error.

Why You May Get a Different Answer When Solving the Same Equation

Two calculators or two methods may show slightly different-looking answers without either being incorrect. The difference often comes from how the result is displayed rather than from the underlying mathematics.

Exact answers versus decimal approximations

Consider:

[
x^2-2x-1=0
]

Its exact solutions are:

[
x=1+\sqrt{2}
]

and

[
x=1-\sqrt{2}
]

In decimal form, these are approximately 2.4142 and -0.4142. A calculator that displays 2.41 and -0.41 is simply rounding the results to fewer decimal places.

Negative signs and coefficient errors

A sign mistake can change the discriminant and both roots. For example, in (x^2-5x+6=0), the coefficient (b) is -5, not 5. Entering the wrong sign changes the calculation.

Forgetting to divide the entire numerator

The denominator in the quadratic formula is (2a). It applies to the complete numerator, including both (-b) and the square-root term. Dividing only one part of the numerator produces an incorrect answer.

Using coefficients before rearranging the equation

If an equation is written with terms on both sides, move everything to one side before identifying (a), (b), and (c). Otherwise, you may be solving a different equation from the one in your question.

Rounding too early

If you round the discriminant’s square root before finishing the calculation, the final roots may differ slightly from a calculator that keeps more decimal places during intermediate steps. Keep exact values as long as possible and round only when presenting the final answer.

Quadratic Formula vs. Factoring vs. Completing the Square

There is more than one way to solve a quadratic equation. The best method depends on the expression and what you are trying to find. The quadratic formula works for every quadratic equation with (a\neq0), while factoring and completing the square can be more convenient in particular situations.

Method When it is useful
Quadratic formula When you need a general method, especially if the equation does not factor easily
Factoring When the expression can be broken into simple factors
Completing the square When you want to rewrite the equation in vertex form or study the structure of the parabola

For example, (x^2-5x+6=0) is easy to factor:

[
(x-2)(x-3)=0
]

This immediately gives roots of 2 and 3.

Now consider:

[
x^2-2x-1=0
]

This equation does not factor neatly into integer factors. The quadratic formula gives its exact solutions:

[
x=1\pm\sqrt{2}
]

Completing the square is another option:

[
x^2-2x=1
]

[
(x-1)^2=2
]

[
x=1\pm\sqrt{2}
]

Each method reaches the same answer. The advantage of the quadratic formula is that you do not need to guess factors or rearrange the equation into a special form. Once you have identified the three coefficients, you can use the same process for a wide range of quadratic equations.

What is Quadratic Formula Calculator?

The quadratic formula provides the analytic solutions to any second-degree polynomial equation ax² + bx + c = 0, determining where the parabola crosses the x-axis.

How to Use This Calculator

  1. Enter coefficients a, b, and constant c.
  2. The tool evaluates the discriminant (b² - 4ac).
  3. Examine roots (real or imaginary) and graph vertex coordinates.

The Mathematical Formula & Variables

x = (-b ± Sqrt(b^2 - 4*a*c)) / (2*a)

Variables Definition

Symbol / Variable Name Description
Δ Discriminant b² - 4ac determines root nature (>0 real distinct, =0 duplicate, <0 complex).

Step-by-Step Worked Example

Scenario: Solve x² + x - 6 = 0 (a=1, b=1, c=-6).

  1. Discriminant = 1² - 4(1)(-6) = 1 + 24 = 25.
  2. √25 = 5.
  3. x₁ = (-1 + 5) / 2 = 4 / 2 = 2.
  4. xâ‚‚ = (-1 - 5) / 2 = -6 / 2 = -3.

Result: x = 2 or x = -3

Frequently Asked Questions

Can a quadratic equation have only one solution?

Yes. A quadratic equation can have one repeated real solution when its discriminant is zero. For example, (x^2-8x+16=0) has a repeated root of 4. On a graph, the parabola touches the x-axis at its vertex rather than crossing it at two separate points.

Why does my quadratic formula calculator show the same root twice?

This usually happens when the discriminant is zero. The positive and negative square-root parts of the quadratic formula become zero, so both solution calculations return the same value. Mathematically, this is called a repeated or double root.

What does a negative discriminant mean on a graph?

A negative discriminant means the quadratic equation has no real roots. Its parabola does not cross or touch the x-axis. If it opens upward, its vertex is above the x-axis; if it opens downward, its vertex is below it.

Can a quadratic equation have complex roots and no real roots?

Yes. When the discriminant is negative, the equation has two complex conjugate roots and no real-number solutions. The complex roots are valid solutions in the complex number system, even though they do not appear as x-intercepts on an ordinary real-coordinate graph.

How do I find the coefficients when an equation is not in standard form?

First, expand any brackets and combine like terms. Then move all terms to one side so the other side equals zero. Once the equation is written as (ax^2+bx+c=0), identify the coefficient of (x^2), the coefficient of (x), and the constant term.

Why is the coefficient (a) not allowed to be zero?

If (a=0), the squared term disappears and the equation becomes linear rather than quadratic. The quadratic formula is specifically designed for equations containing a nonzero (x^2) coefficient.

Can the quadratic formula produce fractions or irrational roots?

Yes. The roots can be whole numbers, fractions, irrational numbers, or complex numbers. For example, (x^2-2x-1=0) produces the irrational solutions (1+sqrt{2}) and (1-sqrt{2}). The form of the answer depends on the coefficients and the discriminant.

How can I check whether both calculated roots are correct?

Substitute each root into the original quadratic equation. If the result is zero for both values, they satisfy the equation. You can also check whether their sum equals (-b/a) and their product equals (c/a).

What is the difference between a root, a zero, and an x-intercept?

A root or zero is a value of (x) that makes the quadratic expression equal to zero. An x-intercept is the corresponding point on the graph where the curve meets the x-axis. For a real root such as (x=3), the graph's x-intercept is ((3,0)). Complex roots do not correspond to ordinary x-intercepts.

Does the vertex always lie halfway between the two roots?

When a quadratic has two distinct real roots, the vertex's x-coordinate is halfway between them. This follows from the parabola's symmetry. If the equation has a repeated real root, the vertex lies directly at that root. If there are no real roots, there are no two real x-values to average.