Menu
Advertisement

Factor Calculator

Every factor of a whole number, its factor pairs and its prime factorization.

By Nethanel Bar, Co-founder & CEO

Last updated

Advertisement

Want to solve these without the calculator?

The Coddy math course teaches the method itself - you work each step on an interactive board and get told exactly where a move went wrong.

What the factors of a number are

A factor of a whole number divides it exactly, with nothing left over. The factors of 36 are 1, 2, 3, 4, 6, 9, 12, 18 and 36: each one goes into 36 a whole number of times. Every number except 1 has at least two factors, 1 and itself.

Factors always come in pairs that multiply to the number: 36 is 1 × 36, 2 × 18, 3 × 12, 4 × 9 and 6 × 6. That is why you never need to test past the square root. By the time you reach it, every factor bigger than the root has already turned up as the partner of a smaller one.

The prime factorization writes the same number as a product of primes only, 36 = 2² × 3². It describes every factor at once, and it is what the GCF calculator and the LCM calculator work from.

What to watch for in the working

  • The search stops at the square root. If nothing up to the root divides the number, nothing past it can either, and the number is prime.
  • A perfect square has an odd number of factors, because its root pairs with itself: 36 has nine. Every other number has an even count.
  • The count comes from the exponents, not from the list: add 1 to each exponent of the prime factorization and multiply. 360 = 2³ × 3² × 5 has 4 × 3 × 2 = 24 factors.
  • 1 is a factor of every number and every number is a factor of itself, so they are the first and the last entry of every list.

How to find all the factors of a number

  1. Type the number

    Any whole number from 1 to 1,000,000. Thousands separators are fine: 1 000 and 1,000 both read as a thousand.

  2. Read the list, then the pairs

    The factors are at the top, smallest first, with Copy to take them as a comma-separated list. Under them, each factor pair multiplies back to your number.

  3. Follow the working

    The steps show where the search can stop (the square root), the pairs it finds on the way, the factor tree down to primes, and the exponent rule that counts the factors without listing them.

Factors of common numbers

NumberFactorsHow many
121, 2, 3, 4, 6, 126
181, 2, 3, 6, 9, 186
241, 2, 3, 4, 6, 8, 12, 248
301, 2, 3, 5, 6, 10, 15, 308
361, 2, 3, 4, 6, 9, 12, 18, 369
481, 2, 3, 4, 6, 8, 12, 16, 24, 4810
601, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 6012
1001, 2, 4, 5, 10, 20, 25, 50, 1009

Worked examples

Factors of 36

plain
36

√36 = 6, so test 1 to 6. 1, 2, 3, 4 and 6 divide 36 and 5 does not, which gives the pairs 1 × 36, 2 × 18, 3 × 12, 4 × 9 and 6 × 6. In order: 1, 2, 3, 4, 6, 9, 12, 18, 36. Nine factors, an odd count, because 6 pairs with itself.

Is 97 prime?

plain
97

The square root of 97 is between 9 and 10, so only 1 to 9 need testing. None of 2, 3, 5 or 7 divides 97, and 4, 6, 8 and 9 cannot when 2 and 3 do not. Its only factors are 1 and 97, so it is prime.

How many factors does 360 have?

plain
360

360 = 2³ × 3² × 5. Add 1 to each exponent and multiply: (3 + 1)(2 + 1)(1 + 1) = 4 × 3 × 2 = 24. The list agrees: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360.

Common mistakes

  • Stopping before the square root. Testing only 1 to 5 for 36 misses the pair 6 × 6, and testing only 2, 3 and 5 for 91 misses 7 × 13.
  • Testing past the square root. It does no harm, but every factor you find there is one you already have as a partner.
  • Forgetting 1 and the number itself. Both are factors of every number, and leaving them out is the usual reason a count comes out two short.
  • Counting a square root twice. 6 × 6 is one pair but only one factor, 6, which is why 36 has nine factors and not ten.
  • Mixing up factors and multiples. The factors of 12 divide into 12 (1, 2, 3, 4, 6, 12); the multiples of 12 are what 12 divides into (12, 24, 36 and on forever).
  • Calling 1 a prime. A prime has exactly two factors, 1 and itself, and 1 has only one, so it is neither prime nor composite.

Factor calculator FAQ

What is a factor of a number?

A whole number that divides it exactly, with no remainder. 4 is a factor of 36 because 36 ÷ 4 = 9; 5 is not, because 36 ÷ 5 leaves 1 over.

How do you find all the factors of a number?

Test each whole number from 1 up to the square root. Every one that divides exactly gives you two factors: itself and the number divided by it. List the small ones in order, then their partners back down.

Why can you stop at the square root?

Because factors pair up, and in every pair one factor is at most the square root and the other at least. Two factors that were both bigger than the root would multiply to more than the number.

What is the difference between factors and prime factors?

The factors are every number that divides it: 1, 2, 3, 4, 6 and 12 for 12. The prime factors are only the primes among them, with how often each is used: 12 = 2² × 3.

How many factors does a number have?

Write its prime factorization, add 1 to every exponent and multiply. 72 = 2³ × 3², so it has (3 + 1)(2 + 1) = 12 factors.

Which numbers have an odd number of factors?

Exactly the perfect squares. Every factor pairs with a different partner except the square root, which pairs with itself, so squares like 36, 49 and 100 end up with an odd count.

Is 1 a prime number?

No. A prime has exactly two different factors, 1 and itself. 1 has only one factor, so it is neither prime nor composite.

More math tools

Coddy programming languages illustration

Learn math with Coddy

Get started