Skip to content

Factor Calculator: All Factors and Prime Factorization

List every factor of a whole number, count them, check whether it is prime and see its prime factorization, with methods for finding factor pairs by hand.

3 min read

A factor of a number divides it exactly, leaving no remainder. The factors of 12 are 1, 2, 3, 4, 6 and 12. Factors are the building blocks for simplifying fractions, finding common denominators and solving many puzzles. Our factor calculator lists every factor of a whole number, counts them, tells you whether the number is prime and gives its prime factorization. This guide explains how to find factors yourself and what they are used for.

How to use the calculator

Enter a whole number. With the default 360, the results are:

  • Prime factorization: 2³ × 3² × 5
  • Prime? No
  • Factors (24): 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360

360 has an unusually large number of factors, which is one reason it was chosen as the number of degrees in a circle.

Finding factors in pairs

Factors come in pairs that multiply to the number. Start at 1 and work upward, stopping when you reach the square root.

Factors of 36:

PairProduct
1 × 3636
2 × 1836
3 × 1236
4 × 936
6 × 636

Once you reach 6 (√36), every remaining factor has already appeared. So the factors are 1, 2, 3, 4, 6, 9, 12, 18 and 36. Perfect squares have an odd number of factors because the middle pair repeats.

Divisibility shortcuts

These quick tests save a lot of trial division:

  • 2: the last digit is even.
  • 3: the digit sum is divisible by 3 (3 + 6 + 0 = 9 for 360).
  • 4: the last two digits form a multiple of 4.
  • 5: the number ends in 0 or 5.
  • 6: it passes the tests for 2 and 3.
  • 9: the digit sum is divisible by 9.
  • 10: it ends in 0.

Prime factorization

Every whole number greater than 1 can be written as a product of primes in exactly one way. For 360:

360 = 2 × 180 = 2 × 2 × 90 = 2 × 2 × 2 × 45 = 2 × 2 × 2 × 3 × 15 = 2 × 2 × 2 × 3 × 3 × 5

Written with exponents: 2³ × 3² × 5. The prime factorization calculator shows this as a step-by-step factor tree.

Counting factors from the prime factorization

Add 1 to each exponent and multiply:

For 360 = 2³ × 3² × 5¹: (3 + 1)(2 + 1)(1 + 1) = 4 × 3 × 2 = 24 factors. This works because each factor picks 0 to 3 twos, 0 to 2 threes and 0 or 1 five.

Prime, composite and special numbers

  • Prime: exactly two factors, 1 and itself (2, 3, 5, 7, 11, 13…).
  • Composite: more than two factors.
  • 1 is neither prime nor composite.
  • Perfect numbers equal the sum of their factors other than themselves: 6 = 1 + 2 + 3 and 28 = 1 + 2 + 4 + 7 + 14.

Uses for factors

  • Simplifying fractions: divide the top and bottom by a common factor. The fraction calculator does this automatically.
  • Common factors: the largest factor two numbers share is their GCF, found with the GCF calculator or the common factor calculator.
  • Arranging things: 24 chairs can be set out in rows of 1, 2, 3, 4, 6, 8, 12 or 24, so the factors show every possible rectangle.
  • Scheduling: a 360-minute shift divides evenly into many slot lengths.
  • Multiples: the opposite idea. The LCM calculator finds the smallest shared multiple.

Frequently asked questions

What is the difference between a factor and a multiple?

A factor divides into a number exactly; a multiple is the number times a whole number. 4 is a factor of 12, and 12 is a multiple of 4.

Is 1 a factor of every number?

Yes. 1 divides every whole number exactly, and every number is a factor of itself.

How do I know if a large number is prime?

Test division by primes up to its square root. If none divide it, it is prime. The calculator does this for you.

Do negative numbers have factors?

Yes, the negatives of the positive factors also divide exactly. The calculator lists the positive factors, which is the usual convention.

Share

Try it yourself

Run your own numbers with our free tool: Factor calculator. No sign-up, and it works on any device.

Open the calculator