Math calculators

Factoring Calculator

Updated Nov 22, 2026 By Infinity Calculator Formulas Sources
Rate
Factoring Mode
Factoring Method
GCF pulls out only the greatest common factor. Every other choice factors the expression completely, and the steps say whether the chosen rule fits.
Expression Input
factor:
x² + 5x + 6
Use whole-number coefficients, ^ for exponents, * for multiply and a single variable (x, y, a…). Max 200 characters.

Factored Result
(x + 2)(x + 3)
Step-by-Step Solution
Details

Introduction

This Factoring Calculator helps you break down math problems into smaller parts. You can factor polynomials, like x² + 5x + 6, or whole numbers, like 48. Just type in what you want to factor and click Calculate.

The tool shows you the answer right away. It also shows each step, so you can see how the answer was found. This makes it easy to learn and check your own work.

You can pick from many factoring methods. These include finding the greatest common factor (GCF), factoring trinomials, grouping, perfect square trinomials, difference of squares, and the sum or difference of cubes. For whole numbers, you get the prime factorization, a list of factor pairs, and more.

This calculator gives clear answers and simple steps to help you understand factoring.

How to use our Factoring Calculator

Pick what you want to factor, type your number or expression, and the calculator shows the factored answer with clear steps.

Factoring Mode: Choose "Polynomial Factoring" to break down an expression like x² + 5x + 6, or "Integer Factoring" to find the factors of a whole number.

Factoring Method: For polynomials, pick how you want to factor, such as Factor Completely, GCF, Trinomials, Grouping, Difference of Squares, or Cubes. The steps say whether the rule you picked fits your expression. GCF pulls out only the greatest common factor, and every other choice factors the expression completely.

Expression Input: Type the polynomial you want to factor. Use whole-number coefficients, ^ for powers, * for multiply, and one variable like x or y. The ± button flips the sign, and the keypad helps you add symbols.

Integer Input: Type the whole number you want to factor. It can be positive or negative, up to 10 digits. The ± button switches it between positive and negative.

Calculate: Click this button to get your factored result, step-by-step solution, and a graph or factor table.

Reset: Click this button to clear your work and start over with the default values.

What Is Factoring?

Factoring means breaking a number or a math expression into smaller parts that multiply together to make the original.1 Those parts are called factors. For example, you can factor 6 into 2 × 3. You can factor x² + 5x + 6 into (x + 2)(x + 3). When you multiply the factors back, you get what you started with.

Factoring Whole Numbers

Every whole number greater than 1 is either prime or composite.4 The number 1 is neither prime nor composite.4 A prime number can only be split into 1 and itself, like 7 or 13.2 The other numbers, called composite numbers, break down into prime factors.2 For example, 48 = 2 × 2 × 2 × 2 × 3. This list of primes is called the prime factorization, and it is the same for every number, no matter how you find it.2

Factoring Polynomials

A polynomial is a math expression with terms like x², x, and plain numbers. Factoring a polynomial means writing it as factors multiplied together. There are a few common ways to do this:

  • GCF (Greatest Common Factor): Pull out the biggest part every term shares.1
  • Trinomials: Factor three-term expressions like x² + 5x + 6 into two sets of parentheses.1
  • Difference of Squares: Use the rule a² − b² = (a − b)(a + b).1
  • Perfect Square Trinomial: A trinomial that turns into one squared factor.1
  • Sum or Difference of Cubes: Special rules for terms raised to the third power.1
  • Grouping: Group terms in pairs to find shared factors.1

Why Factoring Matters

Factoring helps you solve equations, simplify fractions, and find where a graph crosses the x-axis. It is a key skill in algebra that you use again and again in higher math. Learning to factor by hand also helps you spot patterns faster.

Tips for Good Input

For numbers, type any whole number up to 10 digits, even a negative one. For polynomials, use ^ for powers, like x^2, and stick to one variable. The step-by-step solution shows how the answer is found, so you can check your work and learn the method too.


Formulas used

Difference of Squares 1
a^2 - b^2 = (a - b)(a + b)
Difference of Cubes 1
a^3 - b^3 = (a - b)(a^2 + ab + b^2)
Sum of Cubes 1
a^3 + b^3 = (a + b)(a^2 - ab + b^2)
Quadratic Discriminant (for trinomial factoring) 3
\Delta = b^2 - 4ac
Quadratic Roots 3
r = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
GCD (Greatest Common Factor) 4
\gcd(a, b) = \gcd(b,\; a \bmod b)
Prime Factorization of an Integer 4
n = p_1^{e_1} \times p_2^{e_2} \times \cdots \times p_k^{e_k}

Frequently asked questions

What does the ^ symbol mean in math?

The ^ symbol means a power or exponent. So x^2 is x squared and x^3 is x cubed.

What does it mean when a polynomial cannot be factored?

A polynomial that cannot break down into smaller parts using whole numbers is called prime or irreducible.1 This means it is already in its simplest form.

What is a factor pair?

A factor pair is two numbers that multiply to make your number. For example, 6 and 8 are a pair for 48 because 6 × 8 = 48. The table lists every pair for your number.

What is the sum of divisors shown for integers?

The sum of divisors adds up every positive number that divides your number evenly. For 6, that is 1 + 2 + 3 + 6 = 12. It is a quick fact about your number.

How do I know if a number is prime?

Type the number and click Calculate. If it has no factors except 1 and itself, the tool marks it with a Prime Number badge.2 If not, it shows the prime factors instead.

What is the difference of squares rule?

It is a pattern: a² − b² = (a − b)(a + b).1 It works when you have two perfect squares with a minus sign between them, like x² − 9.1


Sources

  1. Abramson J. College Algebra 2e, 1.5 Factoring Polynomials. OpenStax. 2021;§ 1.5. Accessed September 28, 2026.
  2. Marecek L, Anthony-Smith M, Honeycutt Mathis A. Prealgebra 2e, 2.5 Prime Factorization and the Least Common Multiple. OpenStax. 2020;§ 2.5. Accessed September 28, 2026.
  3. Abramson J. College Algebra 2e, 2.5 Quadratic Equations. OpenStax. 2021;§ 2.5. Accessed September 28, 2026.
  4. Stein W. Elementary Number Theory: Primes, Congruences, and Secrets. Springer (free author edition). 2009;Algorithm 1.1.13, p. 5-6. Accessed October 8, 2026.