Smekys
Ad Space

Polynomial Calculator

Free polynomial calculator: evaluate a quadratic ax²+bx+c at any x, compute the discriminant, and find the real roots in seconds.

Enter Values

coeff

Leading coefficient; enter 1, -1, 2, etc. Enter 0 to solve the linear equation bx + c = 0.

coeff

The middle coefficient; may be positive or negative.

coeff

The constant term; enter 0 when there is no constant.

x

The point at which P(x) = ax² + bx + c is evaluated.

Result

Value P(x)
6
Discriminant (b² − 4ac)
1
Real Root 1 (0 = no real roots; linear root when a=0)
2
Real Root 2 (0 = no second real root)
3

A polynomial is one of the most common ways to model how a quantity changes with another. A revenue curve, a cost model, a projectile's height, or a supplier's price break can all be written as a polynomial — and once it is written down, two questions come up again and again: what is the value at a specific point, and where does the curve cross zero? This polynomial calculator answers both for a quadratic polynomial of the form P(x) = ax² + bx + c.

Type the three coefficients a, b, and c, pick the value of x you want to test, and the tool instantly computes P(x), the discriminant, and the real roots of the equation. Because the math behind it is the standard quadratic formula used in every algebra textbook and in numerical libraries such as NumPy, you can trust the numbers before you put them into a budget, a price model, or a homework problem.

How to Use

  1. Enter the Coefficient of x² (a) — the number multiplied by x squared. This is the leading coefficient. Normally it is non-zero; if you enter a = 0 the equation collapses into the linear form bx + c = 0, and the tool returns the single linear root x = −c/b instead of dividing by zero.
  2. Enter the Coefficient of x (b) — the middle term. It may be positive or negative. For example, in x² − 5x + 6 the value is −5.
  3. Enter the Constant term (c) — the number with no x attached. Enter 0 when there is no constant term at all.
  4. Set Evaluate at x = to the point you want to test, such as x = 5.
  5. Read the result card: Value P(x) is the evaluated result, Discriminant tells you the shape of the curve, and Real Root 1 / Real Root 2 are the solutions to ax² + bx + c = 0.

The discriminant is the quickest way to interpret the result. If it is positive, the parabola crosses the x-axis twice. If it is exactly zero, the curve touches the axis at a single repeated point. If it is negative, the parabola never crosses the real x-axis, and the two roots are complex numbers. On the result card, when the discriminant is negative both root fields read 0 — that is the calculator's way of telling you there are no real roots (the solutions are complex, with an imaginary part). When you set a = 0, the equation collapses to a line and Real Root 1 shows the single linear solution while Real Root 2 reads 0.

Quadratic Equation Calculator: The Math Behind It

Evaluating a polynomial is just substitution. For P(x) = 2x² + 3x + 1 at x = 5:

  • x² = 25
  • 2 × 25 = 50
  • 3 × 5 = 15
  • P(5) = 50 + 15 + 1 = 66

Finding the roots uses the quadratic formula, taught in every high-school algebra course:

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

The part under the square root, b² − 4ac, is the discriminant. Worked example: x² − 5x + 6 = 0. Here a = 1, b = −5, c = 6. The discriminant is 25 − 24 = 1. The roots are (5 ± 1) / 2, which gives x = 2 and x = 3. Check it: 2² − 10 + 6 = 0, and 3² − 15 + 6 = 0. Both check out.

Why This Matters in Business

Polynomials are not just classroom objects. Small businesses fit quadratic revenue and cost curves all the time. Suppose a café models its daily profit as P(x) = −0.01x² + 4x − 300, where x is the number of lattes sold. The roots of that equation are the break-even volumes: the shop makes about $0 of profit below the lower root and above the upper root, and profits between them. The vertex of the parabola gives the sales volume that maximizes the daily take.

Or consider a freelance agency pricing a fixed project: its delivered-cost model might scale quadratically with revision rounds, while its quoted fee stays linear. Finding where the two curves meet — i.e., the root of their difference — tells you the revision count at which the job stops being worth the quoted $2,000 fee. Business owners use exactly this kind of calculation to decide what percentage margin is realistic before they quote a client.

Examples

Example 1 — A plain evaluation. Enter a = 2, b = 3, c = 1, and evaluate at x = 5. The polynomial is 2x² + 3x + 1. Substitution gives 2(25) + 15 + 1 = 66. The discriminant is 9 − 8 = 1, so the roots are (−3 ± 1)/4, or −1 and −0.5.

Example 2 — Finding the roots. Enter a = 1, b = −5, c = 6, and evaluate at x = 0. P(0) = 6, the discriminant is 1, and the two real roots are 2 and 3. This is the classic "solve x² − 5x + 6 = 0" problem, and the answer factors cleanly as (x − 2)(x − 3).

Example 3 — Zero on the axis. Enter a = 1, b = 1, c = 0, and evaluate at x = 0. Because c = 0, the polynomial is x² + x, and at x = 0 the value is exactly 0 — the origin is one of the roots, and the other is −1.

Example 4 — Large coefficients. Enter a = 1,000,000, b = 2, c = 1, and evaluate at x = 2. The result is 1,000,000 × 4 + 4 + 1 = 4,000,005. The calculator handles magnitudes above one million without rounding away the leading digits, so engineering and finance models with large coefficient scales still return an accurate figure.

Example 5 — No real roots. Enter a = 1, b = 2, c = 5, and evaluate at x = 0. P(0) = 5, and the discriminant is 4 − 20 = −16. Because the discriminant is negative, the parabola never crosses the x-axis, so both root fields read 0 — meaning "no real roots." The actual solutions are the complex numbers −1 ± 2i, which this closed-form arithmetic engine cannot display as text.

FAQ

How do you evaluate a polynomial at a given value of x?

Substitute the value of x into each term and sum them. For P(x) = ax² + bx + c at x = 5, compute a × 25 + b × 5 + c. For example, 2x² + 3x + 1 at x = 5 equals 50 + 15 + 1 = 66. The order of operations matters: square first, multiply by the coefficient second, and add all terms last.

What is a root of a polynomial?

A root (or zero) is an x-value where the polynomial evaluates to 0. For x² − 5x + 6, the roots are 2 and 3, because substituting either number into the expression gives 0. Graphically, roots are the points where the parabola crosses the horizontal axis.

What does the discriminant tell me?

The discriminant is b² − 4ac. If it is positive, there are two distinct real roots. If it is zero, there is one repeated real root where the parabola just touches the axis. If it is negative, there are no real roots — the parabola never crosses the x-axis, and the solutions are complex numbers.

Can a polynomial have a negative leading coefficient?

Yes. The leading coefficient a can be positive or negative; both are valid parabolas. A positive a opens the curve upward, a negative a opens it downward. The middle coefficient b and the constant c can also be any real number, including negative ones. For example, x² − 5x + 6 has b = −5 and works perfectly.

What if my polynomial has no constant term?

Set c = 0. The expression then becomes ax² + bx = x(ax + b), which always has x = 0 as one of its roots. The other root is −b/a. Entering c = 0 is normal — it does not produce an error.

Can this calculator solve higher-degree polynomials?

This tool is built for quadratics, which cover the large majority of practical evaluation and root-finding tasks in algebra homework, business cost curves, and basic physics. For cubics, quartics, or higher-degree expressions, you would use a computer algebra system; the same substitution principle P(x) = Σ aᵢxⁱ applies, but the closed-form root formula becomes much longer.

Disclaimer

This polynomial calculator is provided for informational purposes only and does not constitute financial, accounting, engineering, or legal advice. Results are based on the exact coefficients and x-value you enter and on the standard quadratic evaluation and quadratic-formula methods. Always double-check results that drive pricing, budgeting, or academic decisions against your own work or a qualified professional. The operators of this site are not liable for any errors or omissions in the calculated values.

Related Calculators

Disclaimer

Results are estimates for illustration only. Verify important figures independently.