Skip to content

Factor Calculator: All Factors of a Number

This factor calculator lists every factor of a whole number, the numbers that divide it exactly. Enter a number such as 36 to get all its factors, the factor pairs, its prime factorization, and how many factors it has and what they add to. It also tells you whether the number is prime.

Last updated November 6, 2026 · Topic: Number Theory

What is a factor?

A factor is a whole number that divides another whole number with nothing left over. If 6 ÷ 2 = 3 with no remainder, then 2 and 3 are both factors of 6. Every number has at least two factors: 1 and itself.

Finding factors helps with simplifying fractions, finding the GCF and LCM, and solving many puzzle-style math problems.

How factors are found

There is no single formula, but a quick method uses prime factorization. If a number is written as primes with exponents,

n=p1e1×p2e2×⋯×pkekn = p_1^{e_1} \times p_2^{e_2} \times \dots \times p_k^{e_k}

then the number of factors is

(e1+1)(e2+1)⋯(ek+1)(e_1 + 1)(e_2 + 1)\cdots(e_k + 1)

Each factor is formed by choosing a power from 0 up to e for every prime and multiplying the choices.

How to use the factor calculator

  1. Type a positive whole number in the box.
  2. Read the prime factorization in the first step.
  3. Look at the full list of factors in the answer line.
  4. Use the factor pairs to see which two numbers multiply to your number.
  5. Check the last line to see whether the number is prime or composite.

Factor examples

Example 1: Factors of 36

  • Prime factorization: 36 = 2² × 3².
  • Number of factors: (2 + 1) × (2 + 1) = 9.
  • Factors: 1, 2, 3, 4, 6, 9, 12, 18, 36.
  • Pairs: 1 × 36, 2 × 18, 3 × 12, 4 × 9, 6 × 6.

Because 6 × 6 uses the same number twice, 36 is a perfect square, and that is why it has an odd number of factors.

Example 2: Factors of 60

  • Prime factorization: 60 = 2² × 3 × 5.
  • Number of factors: 3 × 2 × 2 = 12.
  • Factors: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60.
  • Pairs: 1 × 60, 2 × 30, 3 × 20, 4 × 15, 5 × 12, 6 × 10.

Sixty has many factors, which is why it shows up in time (60 minutes) and angles (360 degrees).

Example 3: A prime number

Find the factors of 97. Test every whole number up to the square root of 97, which is about 9.8. None of 2, 3, 5, 7 or 9 divides 97 evenly. So the only factors are 1 and 97, and 97 is prime. The calculator shows this by listing just two factors.

Example 4: A perfect square

Find the factors of 49. The factor pairs are 1 × 49 and 7 × 7. The list is 1, 7 and 49, which has three factors, an odd count. A number has an odd count of factors only when it is a perfect square, because one pair repeats.

A faster way to find all factors

You only need to test numbers up to the square root. Each one you find gives a partner. For 72, the square root is about 8.5, so test 1 to 8.

  • 1 pairs with 72.
  • 2 pairs with 36.
  • 3 pairs with 24.
  • 4 pairs with 18.
  • 6 pairs with 12.
  • 8 pairs with 9.

That gives twelve factors: 1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36 and 72. You can check the count with the prime factorization 72 = 2³ × 3². Add one to each exponent and multiply: (3 + 1) × (2 + 1) = 12.

Looking to factor an expression instead?

Many people search for a factor calculator when they want to factor algebra, such as x² + 5x + 6 = (x + 2)(x + 3). This tool works with whole numbers only. For a quadratic, the quadratic equation calculator finds the roots, and each root r gives a factor (x − r). The roots of x² + 5x + 6 are −2 and −3, so the factors are (x + 2) and (x + 3). The guide to solving quadratic equations walks through factoring by hand, including when the leading coefficient is not 1.

Count and sum of factors from the primes

You can predict how many factors a number has from its prime factorization. Add 1 to each exponent and multiply. 36 = 2² × 3², so it has (2 + 1) × (2 + 1) = 9 factors. The calculator prints the count and the sum, and the prime factorization calculator shows the primes on their own.

Tips

  • Enter a positive whole number. Decimals and negatives are not accepted.
  • The steps show how many factors the number has and what they add up to.
  • Use the divisibility rules for 2, 3, 5 and 9 to predict factors. Our divisibility rules cheat sheet explains them.
  • To split a number into primes, see prime factorization made simple.

Common mistakes

  • Forgetting 1 and the number itself. Both are always factors.
  • Listing multiples instead of factors. Factors are never larger than the number.
  • Stopping at the square root. You can stop checking at the square root, but each small factor you find also gives a larger partner. Do not forget the partner.
  • Calling 1 a prime number. A prime needs exactly two factors.
  • Skipping a factor pair. Work in order, 1, 2, 3, and so on, and write both numbers of each pair.

Where factors are used

Factors help you arrange items into equal rows and columns, split a group into teams of the same size, simplify a fraction, and tile a floor. A teacher with 30 students can form groups of 1, 2, 3, 5, 6, 10, 15 or 30. Factoring is also the first step toward the GCF and LCM, which you can explore with our GCF calculator and LCM calculator.

The algebra topic collects this tool with proportions, exponents and quadratics. A factor is a whole number that divides another exactly; a prime number has only 1 and itself as factors. The GCF calculator finds the largest factor two numbers share, and the permutation and combination calculator uses factorials, which are built from the same whole-number products.

FAQ

Frequently asked questions

01What is a factor of a number?

A factor is a whole number that divides another number exactly, leaving no remainder. The factors of 12 are 1, 2, 3, 4, 6 and 12. Factors always come in pairs that multiply to the number, such as 3 × 4 = 12.

02What is the difference between a factor and a multiple?

A factor divides into a number, and a multiple is the result of multiplying a number. Factors of 12 are smaller than or equal to 12, such as 3 and 4. Multiples of 12 are bigger than or equal to 12, such as 24 and 36.

03What is a prime number?

A prime number has exactly two factors: 1 and itself. The first primes are 2, 3, 5, 7 and 11. A number with more than two factors, such as 12, is called composite. The number 1 is neither prime nor composite, because it has only one factor.

04How many factors does a number have?

Add 1 to each exponent in the prime factorization, then multiply those results. For 36 = 2² × 3², that is (2 + 1) × (2 + 1) = 9 factors. The calculator does this by building the list and counting it for you.

05Can the calculator factor negative numbers or decimals?

No. This tool works with positive whole numbers only, from 1 to 1,000,000,000,000. Decimals do not have factors in the usual sense, and negative numbers have the same factors as their positive versions, with signs added.

06How can I tell if a number is prime from its factors?

A prime has exactly two factors, 1 and itself. If the factor list of a number has more than two entries, the number is composite. For example, 97 has only 1 and 97, so it is prime. The number 91 has 1, 7, 13 and 91, so it is composite.

07Can this calculator factor polynomials?

No. It lists factors of whole numbers. To factor a quadratic like x² − x − 6, find its roots with the quadratic equation calculator. The roots are 3 and −2, so the expression factors as (x − 3)(x + 2).

08What are the factor pairs of a number?

They are pairs of whole numbers that multiply to give the number. For 36 they are 1 × 36, 2 × 18, 3 × 12, 4 × 9 and 6 × 6. You only need to test divisors up to the square root, here 6, because every pair has one member at or below it.