Free Algebra Solver
Factor expressions

Factoring calculator

Find rational linear factors and verify the equivalent expression.

Interpreted as: x^2 - 5x + 6 (Factor) Ready
Examples
Solution

Step-by-step working

Your solution will appear here

Choose an operation and run it to see exact working, verification, and available visuals.

Factoring guide

Factor polynomial expressions and prove the product is equivalent

A factoring calculator rewrites a polynomial as a product of simpler factors. This guide explains the GCF-first strategy, common factoring formulas, quadratic trinomials, and the expansion check that confirms no term or sign was lost.

What does factoring an expression mean?

Factoring reverses multiplication or distribution. For example, expanding 3x(x + 2) gives 3x² + 6x, so factoring 3x² + 6x returns 3x(x + 2). The expressions are equivalent for every x, but the product form exposes zeros, common structure, and possible cancellation in later work.

A polynomial is factored completely over a chosen number system when none of its nonconstant factors can be factored further there. This calculator focuses on supported rational polynomial factors; an irreducible result over the rationals may still factor using irrational or complex numbers.

How to factor a polynomial step by step

Always check for a greatest common factor first. Removing it reduces the coefficients and degree pattern, which makes any remaining trinomial or special product easier to recognize.

  1. Write the polynomial in descending-power standard form and combine like terms.
  2. Factor out the greatest common numerical and variable factor, including −1 when useful.
  3. Count the remaining terms and inspect the degree pattern.
  4. Apply a valid pattern such as a quadratic trinomial or difference of squares.
  5. Repeat until each factor is irreducible over the selected rational scope.
  6. Expand the complete product and compare it term by term with the original polynomial.

Essential factoring formulas and patterns

A difference of squares has two squared terms separated by subtraction and factors into conjugates. A perfect-square trinomial has first and last terms that are squares and a middle term equal to twice their product. These patterns should match exactly before they are used.

Greatest common factor
ab + ac = a(b + c)
Difference of squares
a² − b² = (a − b)(a + b)
Perfect square sum
a² + 2ab + b² = (a + b)²
Perfect square difference
a² − 2ab + b² = (a − b)²

A sum of squares a² + b² does not use the real-number difference-of-squares pattern. Pattern recognition must include both the term shapes and the operation between them.

Worked example: x² − 5x + 6

For a monic trinomial x² + bx + c, look for two numbers whose product is c and whose sum is b. Here the numbers multiply to 6 and add to −5, so they are −2 and −3.

Therefore x² − 5x + 6 = (x − 2)(x − 3). Verify by expansion: x² − 3x − 2x + 6 = x² − 5x + 6. If the expression were part of the equation x² − 5x + 6 = 0, the zero-product property would then give x = 2 or x = 3.

GCF and non-monic quadratic trinomials

For 6x² + 9x, the GCF is 3x, giving 3x(2x + 3). Leaving out the GCF means the expression is not fully factored. For a non-monic trinomial such as 6x² + 7x + 2, the leading coefficient must be distributed across the factor pair: (3x + 2)(2x + 1).

The product of the first terms must equal the leading term, the product of the last terms must equal the constant, and the outer-plus-inner terms must reproduce the middle coefficient. Expansion is the fastest complete proof.

Common factoring mistakes

Common errors include skipping the GCF, using the difference-of-squares formula on a sum, choosing factor constants with the right product but the wrong sum, and stopping before all factors are complete. Sign pairs deserve special attention when c is negative.

Do not judge a factorization by appearance. Multiply every factor back together and combine like terms. If any coefficient differs from the original, the proposed factorization is not equivalent.

Frequently asked questions

Concise answers about the method, notation, checks, and calculator limits.

What does a factoring calculator do?

It rewrites a supported polynomial as a product of rational factors and checks the result by expansion.

What should I look for first when factoring?

Check for a greatest common factor in every term before applying another pattern.

How do I factor x² + bx + c?

Find two numbers whose product is c and whose sum is b, then use them in the two binomial factors.

What is the difference-of-squares formula?

a² − b² = (a − b)(a + b). It applies to subtraction, not a sum of squares over the reals.

Why might a polynomial not factor?

It may be irreducible over the rational numbers or outside the calculator’s supported polynomial range.

How do I verify a factorization?

Expand the entire product and confirm that every resulting coefficient matches the original polynomial.

Math keypad

Factor mode

Use the keypad below or tap the expression to use your phone keyboard.

Keyboard tips

Ctrl + Enter
Run the selected operation
^
Enter a power, such as x^2
sqrt(
Calculate an exact or simplified square root
a:b
Separate quantities in a ratio
12, 18
Separate integers in an LCM and GCD calculation
@ x =
Assign x when evaluating an expression
y =
Enter a polynomial function to graph
|
Wrap an absolute-value expression