Take out the common factor
Look for the largest number and power of x that divides every term. 6x + 12 has a common factor of 6.
Factor polynomials and whole numbers step by step. Type an expression such as x² + 5x + 6, and see the factored form, the method used at each step, and the zeros.
Checked: multiplying the factors back out gives the original expression.
Multiply a·c = 1·6 = 6. Find two numbers with product 6 and sum 5: 3 and 2. Split 5x into 3x + 2x, group the terms, and take out the common factor to get (x + 2)(x + 3).
Factoring means writing a number or an expression as a product of smaller pieces called factors. For example, x² − 4 = (x − 2)(x + 2) and 12 = 2 · 2 · 3. It is the reverse of multiplying out brackets. Factoring is how you solve quadratic equations, simplify fractions, cancel terms in limits, and find where a graph crosses the x-axis. This free factoring calculator factors polynomials and whole numbers, shows which method it used at each step, and checks every answer by multiplying the factors back out.
x^2+5x+6. You can also type brackets such as (x+1)(x-2) or a whole number such as 360.Work in this order: take out the common factor, look for a pattern, then try a method for the number of terms and the degree. These examples come straight from the calculator, so you can compare them with your own work.
Look for the largest number and power of x that divides every term. 6x + 12 has a common factor of 6.
For x² + bx + c, find two numbers that multiply to c and add to b. Here 2 · 5 = 10 and 2 + 5 = 7.
Multiply a·c = 6·(−2) = −12. Find two numbers with that product that add to 1: 4 and −3. Split the middle term and group.
Use a² − b² = (a − b)(a + b). Here a = x and b = 2.
When a² ± 2ab + b² appears, it equals (a ± b)². Here a = 2x and b = 3.
Use a³ + b³ = (a + b)(a² − ab + b²). Here a = x and b = 3.
Use a³ − b³ = (a − b)(a² + ab + b²). Here a = x and b = 2.
With four terms, factor each pair: 3x²(x + 2) + 2(x + 2). Both pairs share (x + 2).
For x³ − 6x² + 11x − 6, the possible rational roots are factors of 6. Testing shows x = 1, 2, and 3 are roots.
Treat x² as a single variable y. Then x⁴ − 5x² + 4 becomes y² − 5y + 4 = (y − 1)(y − 4).
Divide by the smallest prime that fits, again and again, until nothing is left.
A sum of squares such as x² + 1 has no factors with real numbers, so it is left as it is.
It factors polynomials in one variable, x, with whole-number or fraction coefficients, up to degree 8, and it factors whole numbers up to 1,000,000,000,000. It works over the rational numbers, so a result such as x² − 2 is left as it is, even though it factors with √2. For polynomials of high degree with large coefficients, it says so when it cannot be sure a factor is fully broken down. It does not factor expressions with several variables, and it does not find the greatest common factor or least common multiple of several numbers.
Factoring is the key to cancelling in limits, so try the limit calculatornext. You can also use the derivative calculator or thematrix calculator.
Factoring means writing a number or an expression as a product of smaller pieces called factors. For example, x² − 4 = (x − 2)(x + 2), and 12 = 2 · 2 · 3. Factoring is the reverse of multiplying out brackets.
First take out the greatest common factor. Then look for a pattern: a difference of squares, a sum or difference of cubes, or a trinomial. For a trinomial x² + bx + c, find two numbers that multiply to c and add to b. With four terms, try grouping. For higher degrees, try the rational root theorem. This calculator tries these methods in turn and shows which one it used.
Find two numbers that multiply to the constant term (6) and add to the middle coefficient (5). Here they are 2 and 3, so x² + 5x + 6 = (x + 2)(x + 3). When the first coefficient is not 1, multiply it by the constant term, find two numbers with that product and the middle coefficient as their sum, split the middle term, and factor by grouping.
It is the pattern a² − b² = (a − b)(a + b). For example, x² − 4 = x² − 2² = (x − 2)(x + 2). It only works for a difference. A sum of squares such as x² + 9 cannot be factored using real numbers.
a³ + b³ = (a + b)(a² − ab + b²) and a³ − b³ = (a − b)(a² + ab + b²). For example, x³ − 8 = (x − 2)(x² + 2x + 4). The quadratic factor in each formula cannot be factored further with real numbers.
With four terms, split them into two pairs, take the common factor out of each pair, and look for a shared bracket. For example, 3x³ + 6x² + 2x + 4 = 3x²(x + 2) + 2(x + 2) = (x + 2)(3x² + 2).
The calculator factors over the rational numbers, which means whole-number and fraction coefficients only. An expression that cannot be broken down that way is called irreducible. For example, x² + 1 is irreducible, and x² − 2 is irreducible over the rationals even though it equals (x − √2)(x + √2) with irrational numbers.
Yes. Enter a whole number such as 360 and the calculator gives its prime factorization, 2³ · 3² · 5, with the division steps. A prime number is reported as prime. Numbers can have an absolute value up to 1,000,000,000,000.
Use x as the variable and type the expression as you would on a calculator: x^2 for x squared, 2x or 2*x for 2 times x, and brackets such as (x+1)(x-2). Fractions are allowed as coefficients, for example x^2/2 − 2. The degree can be up to 8 and coefficients up to 1,000,000.
Yes. Each method is listed in order, with the product after that step. The answer is also checked automatically by multiplying the factors back out and comparing with your expression.
Not yet. This calculator works with polynomials in a single variable, x, and with whole numbers. It also does not find the greatest common factor or least common multiple of several numbers.