Everyday tool

Polynomial Factorization Calculator

Enter the three coefficients of ax² + bx + c.

Runs in your browser. No upload.

Values are processed locally in this browser.

Result

—

About this tool

Polynomial Factorization Calculator made simple.

This first version factors quadratics with integer roots. If roots are not integers, it reports that limitation instead of inventing factors.

Guide

Using Polynomial Factorization Calculator

The Polynomial Factorization Calculator factors a quadratic, ax² + bx + c, when both of its roots are whole numbers. You type the three coefficients and press Calculate. It shows the roots and the factored form. If the roots are not both integers, it says so and leaves the polynomial as it is. It does not handle cubics, higher degrees, fractions or several variables.

How to use it

  1. Type whole numbers into the Coefficient a, Coefficient b and Coefficient c boxes for ax² + bx + c. The value of a cannot be zero.
  2. Use negative numbers with a minus sign, and 0 for a missing term. For x² − 9, enter a = 1, b = 0 and c = −9.
  3. Press Calculate and read the result: the roots, the factored form and a line repeating your coefficients.
  4. Press Copy result to keep the text, or Clear to start again. If you see a message instead of factors, the roots are not both whole numbers.

Worked examples

x² + 5x + 6

You enter
A
1
B
5
C
6
You get
Roots
-2, -3
Factorization
(x + 2)(x + 3)

The discriminant is 25 − 24 = 1, so the roots are (−5 ± 1) ÷ 2, which are −2 and −3. A root of −2 gives the factor (x + 2), and −3 gives (x + 3).

Run through the tool’s own code.

2x² − 8x + 6 with a leading number

You enter
A
2
B
-8
C
6
You get
Roots
3, 1
Factorization
2 · (x − 3)(x − 1)

The roots are 3 and 1, and the leading coefficient 2 is kept in front. Multiplying 2(x − 3)(x − 1) out gives 2x² − 8x + 6 again.

Run through the tool’s own code.

A quadratic that does factor, but not with whole roots

You enter
A
2
B
-3
C
-2
You get
Message
The roots are not both integers, so this version cannot show integer factors.

The roots are −0.5 and 2. The polynomial equals (2x + 1)(x − 2), but one root is a fraction, so this version stops and shows a message.

Run through the tool’s own code.

When it helps

  • Check a factoring exercise from algebra class.
  • Find the whole-number roots of a quadratic quickly.
  • See how the leading coefficient is pulled out in front of the two brackets.
  • Test whether a quadratic with small integer coefficients splits neatly.

Limits to keep in mind

  • Only quadratics are handled. The coefficients must be whole numbers from −1,000,000 to 1,000,000, and a cannot be zero.
  • Factoring works only when both roots are integers. Quadratics with fractional, irrational or complex roots get a message instead of factors.
  • A quadratic such as 2x² − 3x − 2 factors as (2x + 1)(x − 2) but is not shown, because that form has a fractional root.
  • The line called Expanded coefficients repeats the numbers you typed. It does not multiply the factors out as a separate check.

Tips

  • If the tool says a root is a fraction, try the quadratic formula by hand, or look for a form with a leading number inside the brackets, such as (2x + 1)(x − 2).
  • Check the answer by multiplying the two brackets yourself and comparing with the original, since the tool does not do this step.
  • Remember that a root of 3 shows as (x − 3), because each factor equals zero at its root.

Common questions

About Polynomial Factorization Calculator.

How does the tool factor a quadratic?

It computes the discriminant b² − 4ac and takes its square root. If that is a whole number and both roots (−b ± root) ÷ 2a are whole, it writes a·(x − r1)(x − r2). Otherwise it reports that no integer factorization was found.

Why do I get a message instead of factors?

Either the discriminant is negative, it is not a perfect square, or the roots work out as fractions. In each case this version does not show factors. It leaves the polynomial unchanged and says so.

Can it factor cubics or higher degrees?

No. The tool takes three coefficients for ax² + bx + c and nothing else. Expressions with a cube, a fourth power or more than one variable are outside what it can handle.

What if a is negative or not one?

That works. A leading number other than 1 is shown in front, as in 2 · (x − 3)(x − 1), and a negative one appears as -1 · (x + 2)(x − 2) for −x² + 4. The number is kept in front of the two brackets.

Why are the roots listed in an odd order?

The tool lists the plus-root first, then the minus-root, from the quadratic formula. For a positive a, that puts the larger root first, so 2x² − 8x + 6 lists 3, then 1. The order has no mathematical meaning.

Can I enter decimals or fractions?

No. The coefficients must be whole numbers, and a decimal such as 2.5 shows an error asking for integers. Multiply the whole polynomial by a number that clears the decimals first, then enter the new coefficients.

Is my input uploaded?

No. The sums run in your browser and the numbers are not sent to a server. The page forgets them when you reload it, so use Copy result if you want to keep an answer.

How do I use Polynomial factoring?

Enter the three coefficients of ax² + bx + c.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.