Polynomial Factoring Calculator

Use this Polynomial Factoring Calculator to enter values, adjust options, and review results in a compact responsive workspace.

Results are calculated automatically as you enter data.

Factored form

▼ See explanations and tips below ▼

What Is Polynomial Factoring?

Polynomial factoring means rewriting a polynomial as a product of simpler expressions. Instead of looking at an expanded expression such as \(x^2 - 5x + 6\), factoring asks which expressions multiply together to make it. In this case, the answer is:

$$ x^2 - 5x + 6 = (x - 2)(x - 3) $$

Factoring is useful because a product form often reveals information that is harder to see in expanded form. For example, the factors \((x - 2)\) and \((x - 3)\) show that the polynomial becomes zero when \(x = 2\) or \(x = 3\).

For linear and quadratic polynomials, factoring is closely connected to roots, also called zeros. A root is a value of \(x\) that makes the polynomial equal to zero. Factored form makes many roots easier to identify, while formulas such as the quadratic formula help interpret roots when a rational factorization is not available.


Why Polynomial Factoring Matters

Factoring is one of the main tools of algebra because it connects expressions, equations, and graphs. Students use it to solve equations, find x-intercepts, simplify work, and check whether an expanded expression was multiplied correctly.

Factoring over the rational numbers keeps terminating-decimal inputs exact. A factorization such as \(\frac{1}{2}(x + 1)(x + 2)\) gives precise roots, an exact scalar, and a clear structure. When a quadratic is prime over the rationals, the exact discriminant and root form still explain what kind of roots it has.


Key Terms to Know

  • Polynomial: An algebraic expression made from terms with whole-number powers of a variable, such as \(3x^2 - 2x + 7\).
  • Term: One part of a polynomial, such as \(3x^2\), \(-2x\), or \(7\).
  • Coefficient: The number multiplying a variable term. In \(3x^2 - 2x + 7\), the coefficient of \(x^2\) is \(3\), and the coefficient of \(x\) is \(-2\).
  • Constant term: The term without a variable. In \(3x^2 - 2x + 7\), the constant term is \(7\).
  • Degree: The highest power of the variable in the polynomial. A linear polynomial has degree \(1\); a quadratic polynomial has degree \(2\).
  • Content: The exact rational scalar removed before the primitive polynomial is factored. For integer coefficients, this agrees with the usual GCF up to the normalized leading sign.
  • Root or zero: A value of \(x\) that makes the polynomial equal to zero.
  • Discriminant: For a quadratic \(ax^2 + bx + c\), the value \(D = b^2 - 4ac\). It helps predict the number and type of roots.
  • Prime over rationals: The quadratic cannot be written as a product of rational-coefficient linear factors. It may still have irrational real roots or complex roots.

How Factoring Linear and Quadratic Polynomials Works

A supported polynomial is interpreted in the form:

$$ ax^2 + bx + c $$

For a linear polynomial, the \(x^2\) coefficient is zero, so the expression is essentially:

$$ bx + c $$

If \(b \ne 0\), the root is found by solving \(bx + c = 0\):

$$ x = -\frac{c}{b} $$

For a quadratic polynomial, the expression has the form:

$$ ax^2 + bx + c, \quad a \ne 0 $$

A practical factoring process usually starts by looking for a common factor. For example:

$$ 6x^2 + 12x = 6x(x + 2) $$

After removing any common integer factor, several common patterns may apply.

Factoring out an x

If the constant term is zero, every term has an \(x\) factor:

$$ ax^2 + bx = x(ax + b) $$

For example:

$$ 3x^2 - 12x = 3x(x - 4) $$

This form immediately shows that one root is \(x = 0\) and the other comes from the remaining linear factor.

Difference of squares

A difference of squares has the pattern:

$$ u^2 - v^2 = (u - v)(u + v) $$

For example:

$$ 4x^2 - 25 = (2x)^2 - 5^2 $$

So:

$$ 4x^2 - 25 = (2x - 5)(2x + 5) $$

Factoring a quadratic trinomial

A quadratic trinomial can sometimes be written as:

$$ (px + q)(rx + s) $$

Multiplying these factors gives:

$$ (px + q)(rx + s) = prx^2 + (ps + qr)x + qs $$

So the coefficients must match:

$$ a = pr, \quad b = ps + qr, \quad c = qs $$

That is why integer factoring often feels like a search for factor pairs: the outside and inside products must combine to make the middle coefficient.

Using the discriminant and quadratic formula

Factoring and roots are related, but they are not the same thing. When a quadratic is not easy to factor over integers, the discriminant and quadratic formula still describe its roots.

The discriminant is:

$$ D = b^2 - 4ac $$

The quadratic formula is:

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

The sign of \(D\) tells you what kind of roots to expect:

Discriminant Root behavior
\(D > 0\) Two distinct real roots
\(D = 0\) One repeated real root
\(D < 0\) No real roots; two complex roots

Examples of Polynomial Factoring in Practice

Example 1: A linear polynomial

Factor and find the root of:

$$ 3x - 12 $$

First, factor out the GCF:

$$ 3x - 12 = 3(x - 4) $$

The root comes from setting the factor involving \(x\) equal to zero:

$$ x - 4 = 0 $$

So:

$$ x = 4 $$

The factor \(3\) changes the scale of the expression, but it does not change the root.


Example 2: A quadratic trinomial

Factor:

$$ 2x^2 + 7x + 3 $$

Look for two binomial factors:

$$ 2x^2 + 7x + 3 = (2x + 1)(x + 3) $$

Check by multiplying:

$$ (2x + 1)(x + 3) = 2x^2 + 6x + x + 3 $$

Combine like terms:

$$ 2x^2 + 6x + x + 3 = 2x^2 + 7x + 3 $$

The roots are found from each factor:

$$ 2x + 1 = 0 \Rightarrow x = -\frac{1}{2} $$
$$ x + 3 = 0 \Rightarrow x = -3 $$

Example 3: Prime over rationals but still has real roots

Consider:

$$ x^2 - 2 $$

This quadratic is not factorable into rational-coefficient linear factors. In that sense, it is prime over the rationals. However, it still has real roots.

Using the quadratic formula with \(a = 1\), \(b = 0\), and \(c = -2\):

$$ D = b^2 - 4ac = 0^2 - 4(1)(-2) = 8 $$

Then:

$$ x = \frac{-0 \pm \sqrt{8}}{2(1)} $$

Since \(\sqrt{8} = 2\sqrt{2}\):

$$ x = \pm \sqrt{2} $$

This example shows why “prime over rationals” should not be read as “no roots.” It describes the factoring domain, not whether roots exist in a larger number system.


How to Interpret the Result

The factored result shows the exact product form when a rational factorization exists. For example, \((x - 2)(x - 3)\) means the expanded polynomial can be written as two linear factors, and the corresponding real roots are \(x = 2\) and \(x = 3\).

The content result shows the exact rational scalar removed before factoring. A content of \(1\) means no scalar was removed. A negative leading sign is included in the content so the remaining primitive polynomial has a positive leading coefficient.

The discriminant applies to quadratics. A positive discriminant means two real roots, a zero discriminant means one repeated real root, and a negative discriminant means two complex roots. The calculator reports both an approximate complex pair and an exact radical form when the discriminant is negative.

The root form is useful when roots are fractions, radicals, or complex numbers. For example, a quadratic may have roots such as \(x = -\frac{1}{2}\), \(x = \sqrt{2}\), or \(x = -2 \pm i\). Decimal displays are easier to scan, but exact forms are usually better for algebra work.

If the result says Prime over rationals, no rational-coefficient linear factorization exists. The polynomial may still have irrational real roots or complex roots.

For constant polynomials, there may be no variable root to solve for. For the zero polynomial, every real number makes the expression equal to zero, but ordinary factoring is not defined in the same way as it is for a nonzero linear or quadratic expression.


Common Mistakes and Misconceptions

One common mistake is entering an expression that is already factored. Factoring starts with expanded form, such as \(x^2 - 5x + 6\), not \((x - 2)(x - 3)\).

Another mistake is mixing expression notation with equation notation. A polynomial expression such as \(x^2 - 5x + 6\) can be factored by itself. An equation such as \(x^2 - 5x + 6 = 0\) includes an equals sign and asks for solutions. The factoring process helps solve the equation, but the input format is different.

It is also easy to confuse multiplication notation. In standard written algebra, \(2x^2\) means \(2 \times x^2\). Some compact calculator inputs accept this written form but not an explicit multiplication symbol such as \(2*x^2\).

A major misconception is that a polynomial with no rational factorization has no roots. For quadratics, the discriminant and quadratic formula may still show irrational real roots or complex roots.

Rounding can also cause confusion. A decimal approximation may be convenient, but an exact fraction or radical form usually carries more algebraic meaning. When possible, use the exact root form to avoid rounding too early.


When to Use Polynomial Factoring

Use polynomial factoring when you want to:

  • Solve a linear or quadratic equation set equal to zero.
  • Find roots or x-intercepts of a polynomial.
  • Rewrite an expanded expression in a more revealing product form.
  • Recognize patterns such as a GCF, an \(x\) factor, or a difference of squares.
  • Check whether a trinomial can be factored over the rational numbers.
  • Compare factored form with roots from the quadratic formula.

Factoring is especially helpful when the factors are simple. When they are not simple, the quadratic formula and discriminant provide a reliable way to interpret the roots.


Limitations and Things to Keep in Mind

This calculator is designed for compact algebra practice with degree \(0\), \(1\), and \(2\) polynomials in the variable \(x\). It does not factor cubic, quartic, or higher-degree polynomials.

The input should be in expanded form. Parentheses, equals signs, explicit multiplication symbols, division symbols, and variables other than \(x\) are not supported. Fractional coefficients written with a slash, such as \(1/2x\), are not supported; use decimal notation instead when a non-integer coefficient is needed.

The factoring domain is the rational numbers. Terminating decimals are converted to exact fractions before calculation; for example, \(0.5\) is treated as \(\frac{1}{2}\). The calculator does not automatically factor into irrational real or complex linear factors.

Nonzero coefficients are never discarded because of their size. Inputs are limited to \(500\) characters and each coefficient literal to \(100\) decimal digits. Exact cards use fractions and integers without rounding; approximate root cards use stable rounded decimal values.

The result can help check your work, but it is not a substitute for understanding the steps. For graded assignments, proofs, or important calculations, verify the factorization by multiplying the factors back out and confirming that you get the original expanded polynomial.


How to Use This Calculator

  1. Enter a polynomial in expanded form using \(x\), such as \(x^2 - 5x + 6\) or \(4x^2 - 25\).
  2. Use standard term notation such as \(x^2\), \(-5x\), and \(6\).
  3. Do not include parentheses, multiplication symbols, division symbols, variables other than \(x\), or an equals sign.
  4. Review the main result to see the exact factored form or a status such as Prime over rationals.
  5. Check the detail information for the GCF, discriminant, roots, exact root form, and method when those details apply.
  6. Use the clear action to empty the input and start over.

Frequently Asked Questions

What does it mean to factor a polynomial?

Factoring a polynomial means rewriting it as a product of simpler expressions. For example, \(x^2 - 5x + 6\) factors as \((x - 2)(x - 3)\) because multiplying those two factors gives the original expanded polynomial.


What is the difference between a factor and a root?

A factor is part of a product expression, such as \((x - 2)\). A root is a value of \(x\) that makes the polynomial equal to zero, such as \(x = 2\). Factors and roots are connected because setting a factor equal to zero often reveals a root.


Why does the result say Prime over rationals?

It means no rational-coefficient linear factorization exists. This does not mean the polynomial has no roots. For example, \(x^2 - 2\) is prime over the rationals but has real roots \(x = \pm\sqrt{2}\).


What does the discriminant tell me?

For a quadratic \(ax^2 + bx + c\), the discriminant is \(D = b^2 - 4ac\). If \(D\) is positive, there are two distinct real roots. If \(D\) is zero, there is one repeated real root. If \(D\) is negative, there are no real roots, but there are complex roots.


Why are complex roots not shown the same way as real roots?

Real roots are the values where the graph crosses or touches the x-axis. Complex roots do not appear as x-intercepts on a real-coordinate graph. For a negative discriminant, the approximate card shows the complex pair numerically and the exact card preserves its radical form.


Why are parentheses or equals signs not accepted in the input?

The input is meant for expanded polynomial expressions, not already factored expressions or full equations. Enter \(x^2 - 5x + 6\) instead of \((x - 2)(x - 3)\) or \(x^2 - 5x + 6 = 0\).


How can I check a factorization?

Multiply the factors back together and simplify. If the product matches the original expanded polynomial, the factorization is correct. For example, \((x - 2)(x - 3)\) expands to \(x^2 - 5x + 6\).


Sources and References

Books

  1. Jay Abramson. College Algebra 2e. OpenStax, December 21, 2021. Sections 1.5 Factoring Polynomials and 2.5 Quadratic Equations.
  2. Lynn Marecek and Andrea Honeycutt Mathis. Intermediate Algebra 2e. OpenStax, May 6, 2020. Sections 6.4 General Strategy for Factoring Polynomials, 6.5 Polynomial Equations, and 9.3 Solve Quadratic Equations Using the Quadratic Formula.