Home › Math › Factor Calculator

Factor Calculator

List every factor of a number, with its factor pairs, prime factorization and the sum of its factors.

You can use any whole number from 1 up to 1,000,000,000,000 (one trillion).

Factors

-

factors in total

Prime factorization-
Sum of all factors-
Sum of proper factors-

Factor pairs

Every factor is found exactly by splitting the number into primes, not by guessing.

What are factors?

A factor of a number is a whole number that divides it exactly, with nothing left over. Factors come in pairs that multiply to give the number. For example, 6 × 4 = 24, so 6 and 4 are both factors of 24. Every number has at least two factors, 1 and itself, except 1, which has only one.

Factors are one of the first big ideas in number theory, the branch of math that studies whole numbers. They explain why some numbers split into many equal groups and others do not. The number 12 can be shared evenly among 2, 3, 4 or 6 people, but 13 can only be shared among 1 or 13. Understanding factors makes fractions, division and algebra much easier.

How to find all the factors

Test each whole number from 1 up to the square root of your number. Each time one divides evenly, you get a pair: the divisor and the answer. Once you pass the square root, the pairs repeat.

Factors of 36: 1×36, 2×18, 3×12, 4×9, 6×6
So the factors are 1, 2, 3, 4, 6, 9, 12, 18, 36

This calculator uses the prime factorization instead, which is faster for big numbers. It splits the number into primes, then combines them in every possible way.

Here is another example with 48. Start at 1 and work upward: 1 × 48, 2 × 24, 3 × 16, 4 × 12 and 6 × 8. The next number to test would be 7, but 7 does not divide 48, and the square root of 48 is just under 7, so we are done. The factors of 48 are 1, 2, 3, 4, 6, 8, 12, 16, 24 and 48.

Prime factorization

Every whole number greater than 1 can be written as a product of prime numbers in exactly one way, apart from the order. This is called the fundamental theorem of arithmetic. For example, 60 = 2 × 2 × 3 × 5, which is written as 2² × 3 × 5. To find it, divide by the smallest prime that fits, then repeat with the answer until you reach 1.

Once you have the prime factorization, every factor of the number is a product of some of those primes. This is why the method is so reliable, and why it works well for large numbers where checking every value one by one would take too long.

Counting and adding factors

If n = pa × qb × rc ...
Number of factors = (a+1)(b+1)(c+1) ...

For 360 = 2³ × 3² × 5, the count is (3+1) × (2+1) × (1+1) = 24 factors. Their sum is 1,170.

Try it with 84 = 2² × 3 × 7. The count is (2+1) × (1+1) × (1+1) = 12 factors, and they are 1, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42 and 84. Doing this by hand would be slow for large numbers, but the formula makes the count easy.

Types of numbers

  • Prime: exactly two factors, 1 and itself, such as 13.
  • Composite: more than two factors, such as 12.
  • Perfect square: has an odd number of factors, because one pair repeats, such as 36.
  • Perfect number: equals the sum of its proper factors (all factors except itself). 6 = 1 + 2 + 3, and 28 = 1 + 2 + 4 + 7 + 14.
  • Abundant: the proper factors add up to more than the number, such as 12 (1+2+3+4+6 = 16).
  • Deficient: the proper factors add up to less than the number, such as 10 (1+2+5 = 8).

The number 2 is the only even prime, since every other even number has 2 as a factor. The number 1 is neither prime nor composite. The next perfect numbers after 6 and 28 are 496 and 8,128, and they become very rare as numbers grow.

Divisibility rules

These quick tests tell you whether a small number is a factor without doing the division.

  • 2: the last digit is even.
  • 3: the digits add up to a multiple of 3. For 123, 1+2+3 = 6, so 3 is a factor.
  • 4: the last two digits form a number divisible by 4.
  • 5: the number ends in 0 or 5.
  • 6: the number passes both the 2 test and the 3 test.
  • 9: the digits add up to a multiple of 9.
  • 10: the number ends in 0.

Factors and multiples

Factors and multiples are opposites. 3 is a factor of 12, and 12 is a multiple of 3. Factors are never larger than the number, while multiples are never smaller. Two numbers often share factors, and the biggest shared one is the HCF (highest common factor). Our LCM and HCF Calculator finds it for you.

For example, the factors of 12 are 1, 2, 3, 4, 6 and 12, and the factors of 18 are 1, 2, 3, 6, 9 and 18. The common factors are 1, 2, 3 and 6, so the HCF of 12 and 18 is 6.

Where factors are useful

  • Simplifying fractions by dividing top and bottom by a common factor.
  • Splitting things into equal groups, such as 24 students into teams of 2, 3, 4, 6, 8 or 12.
  • Factorising expressions in algebra.
  • Finding the LCM and HCF of numbers.

To simplify 18/24, find the HCF of 18 and 24, which is 6. Divide both numbers by 6 to get 3/4. In planning, factors help you arrange 36 chairs in a neat grid, as 4 rows of 9 or 6 rows of 6. Factors also play a part in computer security, where some encryption methods rely on the fact that multiplying two large primes is easy, but splitting the result back into those primes is very hard.

How to use this calculator

Type a whole number into the input box and press the button. The calculator shows the factors of the number, based on its prime factorization. You can use it to check homework, prepare teaching examples or save time on long divisions. The tool is free, needs no sign up and works on phones, tablets and computers.

If you want to learn the method, work a few examples by hand first and then use the calculator to check your answers. That is the fastest way to build confidence with factors.

Frequently asked questions

Can a factor be negative?

Strictly, every positive number also has negative factors, because (−3) × (−4) = 12. In most school work, and in this calculator, factors are the positive whole numbers.

What are the factors of 1 and of a prime number?

The only factor of 1 is 1. A prime number has exactly two factors, 1 and the number itself, so the factors of 17 are 1 and 17.

What is the difference between a factor and a prime factor?

A factor is any number that divides evenly. A prime factor is a factor that is also prime. The prime factors of 12 are 2 and 3, while all its factors are 1, 2, 3, 4, 6 and 12.

Related tools: Prime Number Checker, LCM and HCF Calculator and Fraction Calculator.

Need another calculator?

Browse all calculators
Scroll to Top