ThisCalculator

Everyday

Quadratic Polynomial Calculator: Step-by-Step

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Quadratic Polynomial Calculator: Step-by-Step

This calculator finds the roots of a quadratic polynomial of the form ax² + bx + c = 0. You enter the coefficients a, b, and c, and it returns the real or complex solutions using the quadratic formula. It also shows the discriminant and the vertex coordinates, so you can understand the shape of the parabola without doing the algebra by hand.

Formula

The quadratic formula gives the solutions to ax² + bx + c = 0:

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

  • a – coefficient of x² (must be non‑zero)
  • b – coefficient of x
  • c – constant term
  • Discriminant = b² − 4ac – determines the nature of the roots

The vertex (turning point) of the parabola has x‑coordinate −b/(2a). The y‑coordinate can be found by plugging that x back into the original equation.

Worked Example

Using the default values: a = 1, b = −3, c = 2.

  1. Discriminant: (−3)² − 4·1·2 = 9 − 8 = 1
  2. First root: (−(−3) + √1) / (2·1) = (3 + 1) / 2 = 2
  3. Second root: (3 − 1) / 2 = 1
  4. Vertex x‑coordinate: −(−3) / (2·1) = 3/2 = 1.5

The calculator returns x� = 2, x₂ = 1, discriminant = 1, and vertex x = 1.5. Those match the step‑by‑step results above.

When to Use a Quadratic Polynomial Calculator

Quadratic equations appear in physics (projectile motion), geometry (area problems), economics (profit maximization), and engineering (stress‑strain curves). Use this tool whenever you need to find where a parabola crosses the x‑axis, or when you need the exact roots to factor or graph a quadratic.

It is especially helpful when the roots are irrational or complex – for example, x² + 2x + 5 = 0 has no real roots, and the calculator will show that clearly through a negative discriminant.

How to Read the Results

  • Discriminant > 0 – two distinct real roots. The parabola crosses the x‑axis twice.
  • Discriminant = 0 – one repeated real root (the vertex touches the x‑axis).
  • Discriminant < 0 – no real roots; the solutions are complex conjugates. The calculator shows them as two complex numbers.

The vertex x‑coordinate tells you the axis of symmetry. If a > 0 the parabola opens upward and the vertex is a minimum; if a < 0 it opens downward and the vertex is a maximum.

Common Mistakes and How to Avoid Them

  • Entering a = 0 – that makes the equation linear, not quadratic. The calculator will give an error because you cannot divide by zero.
  • Sign errors – if b is negative, make sure you enter it as a negative number. For example, 2x² − 5x + 3 requires b = −5, not 5.
  • Forgetting the ± – the formula gives two roots; the calculator computes both, but when solving by hand students often forget the second one.
  • Unit mix‑ups – if the coefficients come from a real‑world problem, ensure all units are consistent (e.g., all in meters, all in seconds).

Limits of the Formula

The quadratic formula works for all real coefficients a, b, c (with a ≠ 0). However, it does not handle equations of higher degree, and it assumes the variable is a real number. If you need to solve cubic or quartic equations, you will need a different calculator.

Also note that the formula gives exact algebraic solutions, but when a, b, c are very large or very small, floating‑point rounding can occur in any calculator. For most practical purposes, the precision shown (4 decimal places) is sufficient.

Frequently Asked Questions

What if the discriminant is negative?

When b² − 4ac < 0, the equation has no real solutions. The two roots are complex conjugates of the form p ± qi. The calculator will show them as complex numbers, but if you only need real roots, the answer is “no real roots�.

Can I use this calculator for factoring?

Yes. If the roots are r� and r₂, the quadratic factors as a(x − r�)(x − r₂). For example, with roots 2 and 1, x² − 3x + 2 = (x − 2)(x − 1).

How do I find the vertex y‑coordinate?

Plug the vertex x‑coordinate (−b/(2a)) back into the original equation. For the default example, y = (1.5)² − 3(1.5) + 2 = 2.25 − 4.5 + 2 = −0.25, so the vertex is (1.5, −0.25).

Does the calculator work with decimals or fractions?

Yes, you can enter decimal coefficients (e.g., 0.5, −1.25). For fractions, convert them to decimals first (e.g., 1/3 = 0.3333). The results will be approximate if the roots are irrational.

Why is there no “solve for x� button?

The calculator computes the roots automatically as you type. There is no need for a separate solve button – the results update in real time.

Related

Formula used
in a | Coefficient a | - | 1 | 0
in b | Coefficient b | - | -3 | 0
in c | Coefficient c | - | 2 | 0
out x1 | First root | - | (-b + sqrt(b^2 - 4*a*c)) / (2*a) | 4
out x2 | Second root | - | (-b - sqrt(b^2 - 4*a*c)) / (2*a) | 4
out disc | Discriminant | - | b^2 - 4*a*c | 2
out vertex | Vertex x-coordinate | - | -b / (2*a) | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.