Skip to main content
ponderloop

Factor Calculator

The factors of 60 are 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30 and 60: 60 has 12 factors in 6 factor pairs, adding up to 168, and since 60 = 2² × 3 × 5 the count is (2 + 1)(1 + 1)(1 + 1) = 12. The factors other than 60 itself add up to 108, more than 60, so 60 is abundant; type any whole number up to 10^20 for its factors, pairs, count and sum, or switch to the common factors of two or three numbers.

Updated Runs in your browser: nothing you enter is uploadedHow this tool works

A whole number from 1 to 10^20. Up to 10^15 is instant; between 10^15 and 10^20 it takes a moment.

Find

Factors of 60

60 has 12 factors

60 = 2² × 3 × 5; composite, abundant.

All factors of 60

1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60

Number
60
Number of factors
12
Sum of factors
168
Sum of proper factors
108
Prime factorization
2² × 3 × 5
Count from the exponents
(2 + 1)(1 + 1)(1 + 1) = 12
Prime or composite
Composite
Perfect, abundant or deficient
Abundant (108 > 60)
Perfect square
No
Factor pairs
6

The working

  1. Split 60 into primes: 60 = 2² × 3 × 5.
  2. Every factor has the form 2^a × 3^b × 5^c with a = 0 to 2, b = 0 to 1, c = 0 to 1.
  3. Count: add 1 to each exponent and multiply: (2 + 1)(1 + 1)(1 + 1) = 12.
  4. Sum: for each prime add 1 + p + … + p^e, then multiply. (1 + 2 + 4)(1 + 3)(1 + 5) = 7 × 4 × 6 = 168.
  5. The proper factors (all except 60) add up to 108, which is more than 60, so 60 is abundant.
  6. Factor pairs: each factor up to the square root (√60 is between 7 and 8) pairs with 60 ÷ that factor, which gives 6 pairs.

Factor pairs

Factor pairProductSum
1 × 606061
2 × 306032
3 × 206023
4 × 156019
5 × 126017
6 × 106016

Factors of the numbers 1 to 100

Each row is the calculator’s own answer for that number: all factors, how many there are, their sum, and what kind of number it is.
NumberFactorsHow manySumType
1111Neither prime nor composite · square
21, 223Prime
31, 324Prime
41, 2, 437Composite · square
51, 526Prime
61, 2, 3, 6412Composite · perfect
71, 728Prime
81, 2, 4, 8415Composite
91, 3, 9313Composite · square
101, 2, 5, 10418Composite
111, 11212Prime
121, 2, 3, 4, 6, 12628Composite · abundant
131, 13214Prime
141, 2, 7, 14424Composite
151, 3, 5, 15424Composite
161, 2, 4, 8, 16531Composite · square
171, 17218Prime
181, 2, 3, 6, 9, 18639Composite · abundant
191, 19220Prime
201, 2, 4, 5, 10, 20642Composite · abundant
211, 3, 7, 21432Composite
221, 2, 11, 22436Composite
231, 23224Prime
241, 2, 3, 4, 6, 8, 12, 24860Composite · abundant
251, 5, 25331Composite · square
261, 2, 13, 26442Composite
271, 3, 9, 27440Composite
281, 2, 4, 7, 14, 28656Composite · perfect
291, 29230Prime
301, 2, 3, 5, 6, 10, 15, 30872Composite · abundant
311, 31232Prime
321, 2, 4, 8, 16, 32663Composite
331, 3, 11, 33448Composite
341, 2, 17, 34454Composite
351, 5, 7, 35448Composite
361, 2, 3, 4, 6, 9, 12, 18, 36991Composite · abundant · square
371, 37238Prime
381, 2, 19, 38460Composite
391, 3, 13, 39456Composite
401, 2, 4, 5, 8, 10, 20, 40890Composite · abundant
411, 41242Prime
421, 2, 3, 6, 7, 14, 21, 42896Composite · abundant
431, 43244Prime
441, 2, 4, 11, 22, 44684Composite
451, 3, 5, 9, 15, 45678Composite
461, 2, 23, 46472Composite
471, 47248Prime
481, 2, 3, 4, 6, 8, 12, 16, 24, 4810124Composite · abundant
491, 7, 49357Composite · square
501, 2, 5, 10, 25, 50693Composite
511, 3, 17, 51472Composite
521, 2, 4, 13, 26, 52698Composite
531, 53254Prime
541, 2, 3, 6, 9, 18, 27, 548120Composite · abundant
551, 5, 11, 55472Composite
561, 2, 4, 7, 8, 14, 28, 568120Composite · abundant
571, 3, 19, 57480Composite
581, 2, 29, 58490Composite
591, 59260Prime
601, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 6012168Composite · abundant
611, 61262Prime
621, 2, 31, 62496Composite
631, 3, 7, 9, 21, 636104Composite
641, 2, 4, 8, 16, 32, 647127Composite · square
651, 5, 13, 65484Composite
661, 2, 3, 6, 11, 22, 33, 668144Composite · abundant
671, 67268Prime
681, 2, 4, 17, 34, 686126Composite
691, 3, 23, 69496Composite
701, 2, 5, 7, 10, 14, 35, 708144Composite · abundant
711, 71272Prime
721, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 7212195Composite · abundant
731, 73274Prime
741, 2, 37, 744114Composite
751, 3, 5, 15, 25, 756124Composite
761, 2, 4, 19, 38, 766140Composite
771, 7, 11, 77496Composite
781, 2, 3, 6, 13, 26, 39, 788168Composite · abundant
791, 79280Prime
801, 2, 4, 5, 8, 10, 16, 20, 40, 8010186Composite · abundant
811, 3, 9, 27, 815121Composite · square
821, 2, 41, 824126Composite
831, 83284Prime
841, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, 8412224Composite · abundant
851, 5, 17, 854108Composite
861, 2, 43, 864132Composite
871, 3, 29, 874120Composite
881, 2, 4, 8, 11, 22, 44, 888180Composite · abundant
891, 89290Prime
901, 2, 3, 5, 6, 9, 10, 15, 18, 30, 45, 9012234Composite · abundant
911, 7, 13, 914112Composite
921, 2, 4, 23, 46, 926168Composite
931, 3, 31, 934128Composite
941, 2, 47, 944144Composite
951, 5, 19, 954120Composite
961, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48, 9612252Composite · abundant
971, 97298Prime
981, 2, 7, 14, 49, 986171Composite
991, 3, 9, 11, 33, 996156Composite
1001, 2, 4, 5, 10, 20, 25, 50, 1009217Composite · abundant · square

Number of factors and sum of factors from the prime factorization

Each row is worked by the calculator: add 1 to each exponent and multiply for the count; multiply 1 + p + … + p^e over the primes for the sum.
NumberPrime factorizationNumber of factorsSum of factors
122² × 3(2 + 1)(1 + 1) = 6(1 + 2 + 4)(1 + 3) = 7 × 4 = 28
362² × 3²(2 + 1)(2 + 1) = 9(1 + 2 + 4)(1 + 3 + 9) = 7 × 13 = 91
602² × 3 × 5(2 + 1)(1 + 1)(1 + 1) = 12(1 + 2 + 4)(1 + 3)(1 + 5) = 7 × 4 × 6 = 168
1002² × 5²(2 + 1)(2 + 1) = 9(1 + 2 + 4)(1 + 5 + 25) = 7 × 31 = 217
3602³ × 3² × 5(3 + 1)(2 + 1)(1 + 1) = 24(1 + 2 + 4 + 8)(1 + 3 + 9)(1 + 5) = 15 × 13 × 6 = 1170
10242¹⁰(10 + 1) = 11(1 + 2 + 4 + … + 1024) = 2047
50402⁴ × 3² × 5 × 7(4 + 1)(2 + 1)(1 + 1)(1 + 1) = 60(1 + 2 + 4 + 8 + 16)(1 + 3 + 9)(1 + 5)(1 + 7) = 31 × 13 × 6 × 8 = 19344
997997(1 + 1) = 2(1 + 997) = 998

Common factors of two or three numbers

Each row is the calculator’s common-factors answer for the numbers in the first column. The common factors are the factors of the GCF.
NumbersCommon factorsGreatest common factorNumber of common factors
12, 181, 2, 3, 664
24, 361, 2, 3, 4, 6, 12126
48, 721, 2, 3, 4, 6, 8, 12, 24248
30, 451, 3, 5, 15154
35, 12111
24, 36, 601, 2, 3, 4, 6, 12126
18, 27, 451, 3, 993
84, 126, 2101, 2, 3, 6, 7, 14, 21, 42428

Highly composite numbers up to 10000

Found by search: each number below has more factors than every smaller positive whole number. The search checked all numbers from 1 to 10000.
NumberPrime factorizationNumber of factorsSum of factors
1111
2223
42²37
62 × 3412
122² × 3628
242³ × 3860
362² × 3²991
482⁴ × 310124
602² × 3 × 512168
1202³ × 3 × 516360
1802² × 3² × 518546
2402⁴ × 3 × 520744
3602³ × 3² × 5241170
7202⁴ × 3² × 5302418
8402³ × 3 × 5 × 7322880
12602² × 3² × 5 × 7364368
16802⁴ × 3 × 5 × 7405952
25202³ × 3² × 5 × 7489360
50402⁴ × 3² × 5 × 76019344
75602³ × 3³ × 5 × 76428800

Perfect numbers: found by search and built with Euclid’s formula

A perfect number equals the sum of its proper factors. A search of 1 to 10000 finds 6, 28, 496 and 8128; when 2^p − 1 is prime, 2^(p−1) × (2^p − 1) is perfect. Every number in the table was checked with the calculator.
p2^p − 1Is 2^p − 1 prime?Perfect number 2^(p−1) × (2^p − 1)Proper factors add toFound by search up to 10000
233 (prime)66Yes
377 (prime)2828Yes
53131 (prime)496496Yes
7127127 (prime)81288128Yes
11204723 × 89 (not prime)None——
1381918191 (prime)3355033633550336No: above 10000
17131071131071 (prime)85898690568589869056No: above 10000
19524287524287 (prime)137438691328137438691328No: above 10000
23838860747 × 178481 (not prime)None——
29536870911233 × 1103 × 2089 (not prime)None——
3121474836472147483647 (prime)23058430081399521282305843008139952128No: above 10000

Divisibility rules, tested on 2904

Each rule is applied to 2904 by the same code the tests check against the remainder of the division.
DivisorRuleTest on 2904Divisible?
2The last digit is 0, 2, 4, 6 or 8.last digit 4 is evenYes
3The digits add up to a multiple of 3.digits add to 2 + 9 + 0 + 4 = 15, a multiple of 3Yes
4The last two digits form a multiple of 4.last two digits 4, a multiple of 4Yes
5The last digit is 0 or 5.last digit 4 is not 0 or 5No
6It is divisible by both 2 and 3.divisible by 2 and divisible by 3Yes
7Cut off the last digit, subtract twice it from the rest, and repeat: the result is a multiple of 7.290 − 2 × 4 = 282, then 28 − 2 × 2 = 24; 24 is not a multiple of 7No
8The last three digits form a multiple of 8.last three digits 904, a multiple of 8Yes
9The digits add up to a multiple of 9.digits add to 2 + 9 + 0 + 4 = 15, not a multiple of 9No
10The last digit is 0.last digit is 4, not 0No
11Add and subtract the digits alternately, from the right: the result is a multiple of 11 (0 counts).4 − 0 + 9 − 2 = 11, a multiple of 11Yes
12It is divisible by both 3 and 4.divisible by 3 and divisible by 4Yes

How to find all the factors of a number

  1. Type a whole number. Enter a positive whole number such as 60. Commas are fine (1,200). A minus sign is accepted: the factors of −60 are the factors of 60. Numbers up to 10^15 are instant, and the calculator also handles numbers up to 10^20.
  2. Read the list and the pairs. The list shows every factor in order: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60 for 60. The factor pairs table shows each pair that multiplies to the number and its sum, such as 5 × 12 with a product of 60 and a sum of 17.
  3. Check the count, sum and type. The results show the number of factors (12), their sum (168), the sum of the proper factors (108), and whether the number is prime or composite, perfect, abundant or deficient, and a perfect square.
  4. Follow the working. The working splits the number into primes (2² × 3 × 5), then uses the exponents: (2 + 1)(1 + 1)(1 + 1) = 12. Every factor is a product of those primes with exponents from 0 up to each prime’s own.
  5. Switch to common factors if you need them. Choose common factors of 2 or 3 numbers and type, for example, 24, 36. The common factors are 1, 2, 3, 4, 6, 12, and the greatest is 12. To list the negative factors as well, tick include negative factors.

Frequently asked questions

What are the factors of a number?
The factors of a whole number are the whole numbers that divide it exactly, with no remainder. The factors of 60 are 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30 and 60. Factors are also called divisors. Every number greater than 1 has at least two factors, 1 and itself, and a prime has no others.
How do you find all the factors of a number?
Divide the number by 1, 2, 3 and so on up to its square root, and every exact division gives a pair: for 60, 60 ÷ 1 = 60, 60 ÷ 2 = 30, 60 ÷ 3 = 20, 60 ÷ 4 = 15, 60 ÷ 5 = 12 and 60 ÷ 6 = 10 give the 6 pairs, and 7 is the whole part of the square root, so there is nothing more to check. The calculator does it differently for speed: it splits the number into primes (2² × 3 × 5) and builds every product of those primes, which gives the same 12 factors.
How many factors does a number have?
Write the number as a product of prime powers, add 1 to each exponent and multiply. For 360 = 2³ × 3² × 5 that is (3 + 1)(2 + 1)(1 + 1) = 24, so 360 has 24 factors; for 60 it is (2 + 1)(1 + 1)(1 + 1) = 12. The sum of the factors is the product of 1 + p + … + p^e over the primes: 1170 for 360 and 168 for 60. A number has exactly two factors only if it is prime: 25 of the numbers from 1 to 100 are.
What are factor pairs?
A factor pair is two factors that multiply to the number: 60 has 6 pairs, 1 × 60, 2 × 30, 3 × 20, 4 × 15, 5 × 12, 6 × 10. Factor pairs are what you need to factor a quadratic: to write x² + 17x + 60 as a product, find the pair of 60 whose sum is 17, which is 5 × 12, so it is (x + 5)(x + 12). The sum of each pair is in the pairs table. A perfect square such as 36 has a pair made of one number twice (6 × 6), which is why it has an odd number of factors.
What is the difference between factors and multiples?
Factors divide the number and are never larger than it; multiples are what you get by multiplying it. The factors of 12 are 1, 2, 3, 4, 6, 12 and there are only 6 of them, while the multiples 12, 24, 36, 48 and so on never end. 12 is a multiple of each of its factors, and each of those is a factor of 12. For the smallest shared multiple, use the GCF and LCM calculator.
What are the factors of 1, and of 0?
The only factor of 1 is 1 itself (1 factor), and 1 is neither prime nor composite. Zero has no finite list: every nonzero whole number divides 0, so there is no set of factors to show, and the calculator says so instead of listing anything.
Do negative numbers have factors?
If a divides n, so does −a, because (−a) × (−n ÷ a) = n. Tick include negative factors and the factors of 12 become −12, −6, −4, −3, −2, −1, 1, 2, 3, 4, 6, 12: 12 has 12 factors: 6 positive and 6 negative. The positive factors are the ones usually meant, and the factors of a negative number such as −12 are the factors of 12; only the pairs change, because one number in each pair must be negative to multiply to −12.
What is the difference between factors and prime factors?
Factors are all the numbers that divide the number; prime factors are the prime ones among them, and multiplying them (with repeats) gives the number back. 60 has 12 factors (1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60) but only three prime factors, 2, 3 and 5, because 60 = 2² × 3 × 5. The calculator shows the prime factorization in its working. For a factor tree and the next prime, use the prime factorization calculator.
What are perfect, abundant and deficient numbers?
Add the proper factors, the factors other than the number itself. If the total equals the number it is perfect: 1 + 2 + 3 = 6 for 6 and 1 + 2 + 4 + 7 + 14 = 28 for 28. If it is larger the number is abundant (12: 16 > 12), and if it is smaller the number is deficient (8: 7 < 8). Between 1 and 100 there are 2 perfect numbers (6 and 28) and 22 abundant ones, starting 12, 18, 20, 24, 30; all primes and prime powers are deficient. A search up to 10000 finds 4 perfect numbers: 6, 28, 496 and 8128.
How do you find the common factors of two numbers?
Find the greatest common factor, then list its factors: every common factor of the numbers divides their GCF, and every factor of the GCF divides all the numbers. For 24 and 36 the GCF is 12, so the common factors are the factors of 12: 1, 2, 3, 4, 6, 12. For 48 and 72 the GCF is 24 and there are 8 common factors. Numbers whose only common factor is 1 are called coprime. For the LCM and Euclid’s algorithm steps, use the GCF and LCM calculator.
How can I tell from the factors whether a number is a perfect square?
Factors come in pairs, one below the square root and one above, except when the number is a square, where the square root pairs with itself. So only perfect squares have an odd number of factors. Between 1 and 100 the numbers with an odd count are 1, 4, 9, 16, 25, 36, 49, 64, 81, 100: exactly the squares. 36 has 9 factors, and the calculator’s perfect square row reads Yes (6² = 36).
Which number has the most factors?
No number has the most factors of all, because the count has no upper limit, but some numbers beat every smaller one. They are called highly composite. The search in the table above finds 20 of them up to 10000; the last is 7560 with 64 factors. Among the numbers 1 to 100 the most factors is 12, shared by 60, 72, 84, 90, 96.
How do I know if a number is divisible by 2, 3, 5, 9 or 11 without dividing?
Use the digits. A number is divisible by 2 if its last digit is even, by 5 if it ends in 0 or 5, by 3 or 9 if its digits add up to a multiple of 3 or 9, and by 11 if the alternating sum of its digits is a multiple of 11. For 2904 the digits add to 15, so it is divisible by 3 but not by 9, and it has 24 factors in all. The divisibility rules table above tests every rule from 2 to 12 on this number.
How large a number can the factor calculator handle?
Whole numbers up to 10^20 (100 quintillion), and common factors for numbers of up to 30 digits. Up to 10^15 the calculator tests divisors up to the square root, which takes at most about ten million steps and is instant. From 10^15 to 10^20 it divides out the primes below one million, then proves what is left prime with the Miller-Rabin test or splits it with Pollard’s rho method. For example it factors 2305843008139952128 as 2³⁰ × 2147483647 and finds that it is perfect. Above 10^20 it says that the number is out of range instead of guessing. Numbers with very many factors, such as the ones near 10^18, show the smallest and largest thousand and give the exact count.

How it works

A factor (divisor) of n is a positive whole number that divides n with no remainder. The calculator first writes n as a product of prime powers, n = p₁^e₁ × p₂^e₂ × …. Every factor is a product of those primes with each exponent from 0 up to its own, so the number of factors is (e₁ + 1)(e₂ + 1)… and the sum of the factors is the product of (1 + p + … + p^e) over the primes. The proper factors are all factors except n; their sum s(n) decides the class: perfect if s(n) = n, abundant if s(n) > n, deficient if s(n) < n. A number is prime if it has exactly two factors, composite if it has more, and 1 is neither. Factor pairs are (d, n ÷ d) for each factor d with d × d ≤ n, shown with their product and sum. Common factors of two or three numbers are the factors of their greatest common factor, found with Euclid’s algorithm; each number is also factored on its own when it is within range. Arithmetic is exact (BigInt). Factoring: numbers up to 10^15 are split by trial division by 2, 3 and then by numbers of the form 6k ± 1 up to the square root, in ordinary arithmetic, which is exact because every value is below 2^53. From 10^15 up to 10^20 the primes below 10^6 are divided out first; what remains has no prime factor below 10^6, so it is prime if it is below 10^12, and otherwise the Miller-Rabin test with the first 13 prime bases decides (with these bases it gives exact answers, not probabilities, for every number in this range) and Brent’s variant of Pollard’s rho splits composites, within a fixed step budget; if the budget ran out the page would say so rather than show a partial list. Numbers above 10^20 are not factored. Conventions: the sign of the input is ignored for the factor list (the factors of −12 are those of 12; the pairs of −12 have one negative member); “include negative factors” adds −d for each factor d; 0 has no finite set of factors and is refused; the list shows at most 2,000 factors (the smallest 1,000 and the largest 1,000 when there are more), and the factor pairs table shows at most 60 pairs, but the count and the sum always cover every factor. The reference tables are computed when the page is built: factors of 1 to 100 by the calculator’s own analysis; highly composite numbers (more factors than any smaller number) and perfect numbers by a sieve that counts and sums the factors of every number up to 10000; Euclid’s perfect numbers 2^(p−1) × (2^p − 1) for the primes p up to 31, using the calculator to test whether 2^p − 1 is prime and to check that each result is perfect; the divisibility rules by code that the unit tests compare with the remainder for thousands of numbers.

Sources

More: Algebra and number theoryAll math & numbersAll toolsHome & DIY calculators