How to use the factoring calculator
- Enter a polynomial in
xusing^for exponents, such asx^2 + 5x + 6. - The tool parses the expression and extracts integer coefficients for each power of
x. - It pulls out any common numeric factor and any power of
x, then applies the rational root theorem to test candidate roots p/q. - Each confirmed root produces a linear factor and the quotient is factored again; a leftover quartic is also tried as a product of two quadratics.
- The fully factored form appears below the input field, with repeated factors written as powers.
How the rational root theorem works
The rational root theorem states that any rational root p/q of a polynomial with integer coefficients must have p dividing the constant term and q dividing the leading coefficient. For example, to factor 2x^2 + 7x + 3, the constant term is 3 and the leading coefficient is 2. The candidates for p are plus or minus 1 and 3, and for q are 1 and 2. Testing p/q = negative 1/2 gives 2(1/4) + 7(-1/2) + 3 = 0, confirming that (2x + 1) is a factor. Dividing out leaves (x + 3), so the full factorization is (2x + 1)(x + 3).
Common polynomial forms
These standard patterns all appear in the results. They are shown with a and b standing for any terms; the tool itself works on a single variable x, so for example x^3 + 8 becomes (x + 2)(x^2 - 2x + 4).
| Pattern | Example | Factored form |
|---|---|---|
| Difference of squares | a2 - b2 | (a - b)(a + b) |
| Perfect square trinomial | a2 + 2ab + b2 | (a + b)2 |
| Sum of cubes | a3 + b3 | (a + b)(a2 - ab + b2) |
| Difference of cubes | a3 - b3 | (a - b)(a2 + ab + b2) |
When you use this tool as a trinomial factoring calculator, it applies the same logic to quadratics of the form ax2 + bx + c.
Degree limits and irreducible factors
This calculator handles polynomials up to degree 4 with integer coefficients. It first pulls out any common numeric factor and any power of x, then removes every rational root as a linear factor, and repeated factors are grouped into powers such as (x + 1)^2. A quartic with no rational roots can still split into two quadratics, so x^4 + 4 comes out as (x^2 + 2x + 2)(x^2 - 2x + 2). Whatever is left is shown unchanged because it cannot be broken down further over the integers. For instance, x^2 + 1 has no real roots and x^2 - 2 has only irrational ones, so both stay as they are. If you need to find the individual integer divisors of a number rather than factor a polynomial, use the factor calculator. For breaking numbers into primes, the prime number checker is more appropriate. To find the roots of a quadratic directly, try the quadratic formula calculator.
Input format guidelines
Write the variable as x and use ^ for exponents. Spaces are optional but help readability. You may omit the coefficient 1 (write x^2 instead of 1x^2). Negative terms should use a minus sign directly: x^2 - 4x + 4. All coefficients must be integers. If you enter fractions or decimals, the parser will reject the expression. For working with fractional values themselves, try the fraction calculator or convert them first with the decimal to fraction tool.
Practical uses for polynomial factoring
Factoring polynomials is a core skill in algebra. It simplifies rational expressions by cancelling common factors in numerators and denominators. In calculus, factored forms make it easier to identify where a function equals zero, which helps when sketching graphs or finding intercepts. Engineers use polynomial factoring to analyze characteristic equations of systems. Students preparing for exams often rely on a factoring calculator to verify their manual work quickly.
Worked examples
| Example | Input | Result |
|---|---|---|
| Quadratic trinomial | Polynomial in x: x^2 + 5x + 6 | (x + 2)(x + 3) |
| Cubic polynomial | Polynomial in x: x^3 - 6x^2 + 11x - 6 | (x - 1)(x - 2)(x - 3) |
| Difference of squares | Polynomial in x: 4x^2 - 9 | (2x - 3)(2x + 3) |
| Leading coefficient greater than 1 | Polynomial in x: 2x^2 + 7x + 3 | (2x + 1)(x + 3) |
FAQ
What does this factoring calculator do?
It takes a polynomial expression in x with integer coefficients and rewrites it as a product of simpler factors, handling degrees up to 4.
Can I use it as a trinomial factoring calculator?
Yes. Enter any quadratic trinomial like ax^2 + bx + c and it returns the two binomial factors if they exist with integer coefficients. A common numeric factor is pulled out first, so 2x^2 + 4x + 2 becomes 2(x + 1)^2.
Why does my polynomial not factor completely?
If the remaining factor has no rational roots and does not split into integer quadratics, it cannot be broken down further over the integers. For example, x^2 + 1 has no real roots and x^2 - 2 has only irrational roots, so both are left as they are.
Does it support polynomials of degree 5 or higher?
No. This tool accepts degree 4 and below, and shows an error for higher powers. Factoring over the integers is still possible at higher degrees, but this calculator is limited to the cases it can check exhaustively.
Can I enter decimal or fractional coefficients?
No. All coefficients must be integers. Multiply through by the denominator first to clear fractions before entering the expression.
Is my data sent to a server?
No. The calculation runs entirely in your browser. Nothing you type is uploaded anywhere.