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.
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:
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):
- Take out any common factor first.
- Find two numbers that multiply to a × c and add to b.
- Split the middle term with those numbers, then factor by grouping.
Special Patterns
| Pattern | Factored form | Example |
|---|---|---|
| Difference of squares | a² − b² = (a − b)(a + b) | x² − 9 = (x − 3)(x + 3) |
| Perfect square trinomial | a² + 2ab + b² = (a + b)² | x² + 6x + 9 = (x + 3)² |
| Perfect square trinomial | a² − 2ab + b² = (a − b)² | 4x² − 4x + 1 = (2x − 1)² |
| Common factor | ab + 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
| Number | Factors | Prime factorization | Count |
|---|---|---|---|
| 2 | 1, 2 | 2 | Prime |
| 3 | 1, 3 | 3 | Prime |
| 4 | 1, 2, 4 | 22 | 3 |
| 5 | 1, 5 | 5 | Prime |
| 6 | 1, 2, 3, 6 | 2 × 3 | 4 |
| 7 | 1, 7 | 7 | Prime |
| 8 | 1, 2, 4, 8 | 23 | 4 |
| 9 | 1, 3, 9 | 32 | 3 |
| 10 | 1, 2, 5, 10 | 2 × 5 | 4 |
| 11 | 1, 11 | 11 | Prime |
| 12 | 1, 2, 3, 4, 6, 12 | 22 × 3 | 6 |
| 13 | 1, 13 | 13 | Prime |
| 14 | 1, 2, 7, 14 | 2 × 7 | 4 |
| 15 | 1, 3, 5, 15 | 3 × 5 | 4 |
| 16 | 1, 2, 4, 8, 16 | 24 | 5 |
| 17 | 1, 17 | 17 | Prime |
| 18 | 1, 2, 3, 6, 9, 18 | 2 × 32 | 6 |
| 19 | 1, 19 | 19 | Prime |
| 20 | 1, 2, 4, 5, 10, 20 | 22 × 5 | 6 |
| 21 | 1, 3, 7, 21 | 3 × 7 | 4 |
| 22 | 1, 2, 11, 22 | 2 × 11 | 4 |
| 23 | 1, 23 | 23 | Prime |
| 24 | 1, 2, 3, 4, 6, 8, 12, 24 | 23 × 3 | 8 |
| 25 | 1, 5, 25 | 52 | 3 |
| 26 | 1, 2, 13, 26 | 2 × 13 | 4 |
| 27 | 1, 3, 9, 27 | 33 | 4 |
| 28 | 1, 2, 4, 7, 14, 28 | 22 × 7 | 6 |
| 29 | 1, 29 | 29 | Prime |
| 30 | 1, 2, 3, 5, 6, 10, 15, 30 | 2 × 3 × 5 | 8 |
| 31 | 1, 31 | 31 | Prime |
| 32 | 1, 2, 4, 8, 16, 32 | 25 | 6 |
| 33 | 1, 3, 11, 33 | 3 × 11 | 4 |
| 34 | 1, 2, 17, 34 | 2 × 17 | 4 |
| 35 | 1, 5, 7, 35 | 5 × 7 | 4 |
| 36 | 1, 2, 3, 4, 6, 9, 12, 18, 36 | 22 × 32 | 9 |
| 37 | 1, 37 | 37 | Prime |
| 38 | 1, 2, 19, 38 | 2 × 19 | 4 |
| 39 | 1, 3, 13, 39 | 3 × 13 | 4 |
| 40 | 1, 2, 4, 5, 8, 10, 20, 40 | 23 × 5 | 8 |
| 41 | 1, 41 | 41 | Prime |
| 42 | 1, 2, 3, 6, 7, 14, 21, 42 | 2 × 3 × 7 | 8 |
| 43 | 1, 43 | 43 | Prime |
| 44 | 1, 2, 4, 11, 22, 44 | 22 × 11 | 6 |
| 45 | 1, 3, 5, 9, 15, 45 | 32 × 5 | 6 |
| 46 | 1, 2, 23, 46 | 2 × 23 | 4 |
| 47 | 1, 47 | 47 | Prime |
| 48 | 1, 2, 3, 4, 6, 8, 12, 16, 24, 48 | 24 × 3 | 10 |
| 49 | 1, 7, 49 | 72 | 3 |
| 50 | 1, 2, 5, 10, 25, 50 | 2 × 52 | 6 |
| 51 | 1, 3, 17, 51 | 3 × 17 | 4 |
| 52 | 1, 2, 4, 13, 26, 52 | 22 × 13 | 6 |
| 53 | 1, 53 | 53 | Prime |
| 54 | 1, 2, 3, 6, 9, 18, 27, 54 | 2 × 33 | 8 |
| 55 | 1, 5, 11, 55 | 5 × 11 | 4 |
| 56 | 1, 2, 4, 7, 8, 14, 28, 56 | 23 × 7 | 8 |
| 57 | 1, 3, 19, 57 | 3 × 19 | 4 |
| 58 | 1, 2, 29, 58 | 2 × 29 | 4 |
| 59 | 1, 59 | 59 | Prime |
| 60 | 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60 | 22 × 3 × 5 | 12 |
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.