Factor Calculator

Find every factor, factor pair and the prime factorization of a number, or factor a quadratic like 2x² + 7x + 3 with each step shown.

  • Factors and factor pairs
  • Prime factorization
  • Quadratics with steps

Factor Calculator

Find the factors of a number, or factor a quadratic expression step by step.

Up to 1,000,000,000,000

Whole-number coefficients, for example 2x² + 7x + 3 → a = 2, b = 7, c = 3. Use negatives for minus signs.

–

Your numbers stay in your browser. Nothing is sent or saved.

How to Find the Factors of a Number

A factor divides a number exactly, with no remainder. To list them all, test every whole number from 1 up to the square root of the number. Each divisor you find gives a pair:

Factors of 36: test 1 to 6 (√36 = 6) 1 × 36, 2 × 18, 3 × 12, 4 × 9, 6 × 6 Factors: 1, 2, 3, 4, 6, 9, 12, 18, 36

The prime factorization writes the number as a product of primes: 36 = 2² × 3². Every whole number above 1 has exactly one prime factorization.

How to Factor a Quadratic (ax² + bx + c)

When a = 1: find two numbers that multiply to c and add to b. For x² + 5x + 4: 1 and 4 (1 × 4 = 4, 1 + 4 = 5), so x² + 5x + 4 = (x + 1)(x + 4).

When a ≠ 1 (AC method):

  1. Take out any common factor first.
  2. Find two numbers that multiply to a × c and add to b.
  3. Split the middle term with those numbers, then factor by grouping.
2x² + 7x + 3: a × c = 6, numbers 6 and 1 2x² + 6x + x + 3 = 2x(x + 3) + 1(x + 3) = (2x + 1)(x + 3)

Special Patterns

PatternFactored formExample
Difference of squaresa² − b² = (a − b)(a + b)x² − 9 = (x − 3)(x + 3)
Perfect square trinomiala² + 2ab + b² = (a + b)²x² + 6x + 9 = (x + 3)²
Perfect square trinomiala² − 2ab + b² = (a − b)²4x² − 4x + 1 = (2x − 1)²
Common factorab + ac = a(b + c)3x² + 12x = 3x(x + 4)

When a Quadratic Cannot Be Factored

Check the discriminant b² − 4ac. If it is a perfect square (0, 1, 4, 9, 16, …), the quadratic factors over the integers. If not, it is called prime: x² + x + 1 has a discriminant of −3 and x² + 2x − 1 has 8, so neither factors. The calculator then gives the roots from the quadratic formula instead.

Factors and Prime Factorization of 2 to 60

NumberFactorsPrime factorizationCount
21, 22Prime
31, 33Prime
41, 2, 4223
51, 55Prime
61, 2, 3, 62 × 34
71, 77Prime
81, 2, 4, 8234
91, 3, 9323
101, 2, 5, 102 × 54
111, 1111Prime
121, 2, 3, 4, 6, 1222 × 36
131, 1313Prime
141, 2, 7, 142 × 74
151, 3, 5, 153 × 54
161, 2, 4, 8, 16245
171, 1717Prime
181, 2, 3, 6, 9, 182 × 326
191, 1919Prime
201, 2, 4, 5, 10, 2022 × 56
211, 3, 7, 213 × 74
221, 2, 11, 222 × 114
231, 2323Prime
241, 2, 3, 4, 6, 8, 12, 2423 × 38
251, 5, 25523
261, 2, 13, 262 × 134
271, 3, 9, 27334
281, 2, 4, 7, 14, 2822 × 76
291, 2929Prime
301, 2, 3, 5, 6, 10, 15, 302 × 3 × 58
311, 3131Prime
321, 2, 4, 8, 16, 32256
331, 3, 11, 333 × 114
341, 2, 17, 342 × 174
351, 5, 7, 355 × 74
361, 2, 3, 4, 6, 9, 12, 18, 3622 × 329
371, 3737Prime
381, 2, 19, 382 × 194
391, 3, 13, 393 × 134
401, 2, 4, 5, 8, 10, 20, 4023 × 58
411, 4141Prime
421, 2, 3, 6, 7, 14, 21, 422 × 3 × 78
431, 4343Prime
441, 2, 4, 11, 22, 4422 × 116
451, 3, 5, 9, 15, 4532 × 56
461, 2, 23, 462 × 234
471, 4747Prime
481, 2, 3, 4, 6, 8, 12, 16, 24, 4824 × 310
491, 7, 49723
501, 2, 5, 10, 25, 502 × 526
511, 3, 17, 513 × 174
521, 2, 4, 13, 26, 5222 × 136
531, 5353Prime
541, 2, 3, 6, 9, 18, 27, 542 × 338
551, 5, 11, 555 × 114
561, 2, 4, 7, 8, 14, 28, 5623 × 78
571, 3, 19, 573 × 194
581, 2, 29, 582 × 294
591, 5959Prime
601, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 6022 × 3 × 512

Frequently Asked Questions

What are the factors of 24?

1, 2, 3, 4, 6, 8, 12 and 24. Prime factorization: 2³ × 3.

What are the factors of 36?

1, 2, 3, 4, 6, 9, 12, 18 and 36.

How do you factor x² + 5x + 6?

Find two numbers that multiply to 6 and add to 5: 2 and 3. So x² + 5x + 6 = (x + 2)(x + 3).

How do you factor completely?

Take out the greatest common factor first, then factor what is left until no factor can be broken down further. 2x² + 10x + 12 = 2(x + 2)(x + 3).

What does it mean if a polynomial is prime?

It cannot be written as a product of simpler polynomials with integer coefficients, like x² + 1.

What is the difference between factors and multiples?

Factors divide a number exactly (factors of 12: 1, 2, 3, 4, 6, 12); multiples are the number times whole numbers (multiples of 12: 12, 24, 36, …).

Related Calculators

Quadratics are factored over the integers. Expressions that cannot be factored this way are shown with their roots instead.

Scroll to Top