Factor Calculator

Enter a whole number to get all of its factors in order, a table of factor pairs, how many factors it has, their sum and whether the number is prime.

A whole number up to 1,000,000,000,000,000 (10^15). Negative numbers are allowed.

Result

Factors of 60
1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60
  • Number of factors12
  • Sum of factors168
  • Prime or compositeComposite
  • Prime factorization2² × 3 × 5
  • Sum of proper factors108 (abundant)
  • 60 = 2² × 3 × 5, so it has (2 + 1) × (1 + 1) × (1 + 1) = 12 factors.
Factor pairs of 60
#FactorPaired factor
1160
2230
3320
4415
5512
6610

How to use the factor calculator

Type a whole number into the box. Commas are fine, so 1,000,000 works, and so does scientific notation such as 1e6. The answer updates as you type and shows:

  • All factors in ascending order.
  • Number of factors and their sum.
  • Whether the number is prime or composite.
  • The prime factorization, written with exponents.
  • The sum of proper factors (every factor except the number itself), labelled perfect, abundant or deficient.
  • A factor pairs table, where each row multiplies back to your number.

Numbers up to 10^15 (one quadrillion) are accepted. Zero and decimals are rejected, because zero is divisible by every whole number and factors are only defined for integers.

How factors are found

A factor of n is any positive whole number d that divides n with no remainder. Checking every number from 1 to n would be slow for large inputs, so the calculator uses the prime factorization instead. Once n is written as p₁^a × p₂^b × p₃^c …, every factor is some choice of exponents, from 0 up to the one in the factorization, for each prime.

This gives two handy formulas:

Quantity Formula
Number of factors (a + 1)(b + 1)(c + 1) …
Sum of factors (1 + p₁ + … + p₁^a)(1 + p₂ + … + p₂^b) …

Factor pairs come from the observation that if d divides n, so does n ÷ d. One member of each pair is never larger than the square root of n, which is why the pairs table stops at the middle.

Worked example: the factors of 60

This is the example loaded when the page opens.

  1. Factor into primes. 60 = 2 × 2 × 3 × 5 = 2² × 3 × 5.
  2. Count the factors. The exponents are 2, 1 and 1, so there are (2 + 1)(1 + 1)(1 + 1) = 12 factors.
  3. List them. 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30 and 60.
  4. Pair them up. 1 × 60, 2 × 30, 3 × 20, 4 × 15, 5 × 12 and 6 × 10. The square root of 60 is about 7.75, so no new pair starts after 6.
  5. Add them. (1 + 2 + 4)(1 + 3)(1 + 5) = 7 × 4 × 6 = 168.

The proper factors add to 168 − 60 = 108, which is more than 60, so 60 is an abundant number. By contrast, 28 is perfect, because 1 + 2 + 4 + 7 + 14 = 28.

Where factors are useful

Factors are the starting point for simplifying fractions, splitting things into equal groups, and arranging items in rectangular grids. To find the factors two numbers share, use the common factor calculator or go straight to the greatest common factor. If you only need the primes, the prime factorization calculator shows the division steps one prime at a time.

Negative numbers

A negative input such as −12 is accepted. Its factors are the same numbers as for 12, each with a plus or minus sign. The calculator lists the positive ones, gives the total including negatives, and the pairs table works for −12 as long as exactly one factor in each pair is made negative.

Limitations

  • The largest accepted number is 10^15. Highly composite numbers near that size can have more than 20,000 factors, so the main list is shortened after the first 300, while the count, sum and pairs table remain complete.
  • Only whole numbers are factored. A value like 12.0 is read as 12, but 12.5 is rejected.

Frequently asked questions

What is the difference between a factor and a multiple?

A factor divides a number exactly, so 4 is a factor of 12. A multiple is what you get when you multiply a number, so 12 is a multiple of 4. Every number has a limited list of factors but endlessly many multiples.

Is 1 a prime number?

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

Why do some numbers have an odd number of factors?

Factors come in pairs that multiply to the number. Only a perfect square has a pair made of the same number twice, such as 6 × 6 = 36, so only perfect squares have an odd count.

How are negative numbers handled?

The calculator lists the positive factors and tells you the count with negatives included. Every positive factor of 12 also has a negative twin, and each pair for −12 needs exactly one negative member, such as 3 × −4.

Last reviewed: