Factor Calculator

Find all factors, factor pairs, prime factorization and factor tree of any integer.

Enter a Number

Factor Size Distribution

Result

Factors: 1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 24, 30, 40, 60, 120

Factor Pairs: (1, 120) (2, 60) (3, 40) (4, 30) (5, 24) (6, 20) (8, 15) (10, 12)

Prime factors: 120 = 2 × 2 × 2 × 3 × 5

Factor Tree:

120 | \ 60 2 | \ 30 2 | \ 15 2 | \ 5 3

Complete Factor Calculator Guide & Information

1. What is a Factor?

A factor of a positive integer n, also called a divisor, is a positive integer that divides n without leaving a remainder. If a × b = n, then a and b are factors of n. Every integer has at least two factors: 1 and itself.

Factors come in pairs. For each factor a that divides n, there is a corresponding factor b = n/a such that a × b = n. These are called factor pairs.

2. Types of Numbers by Factor Count

3. How to Find All Factors

The standard method is trial division up to the square root of n:

  1. Start with i = 1.
  2. If n is divisible by i, add i and n/i to the factor list.
  3. Increment i by 1.
  4. Stop when i > √n.
  5. Sort the list of factors in ascending order.

This is efficient because factors above √n are simply the complements of factors below √n.

4. Prime Factorization

Prime factorization is the process of writing a number as the product of its prime factors. Every positive integer has a unique prime factorization (Fundamental Theorem of Arithmetic).

n = p1k1 × p2k2 × ... × pmkm

For example, 120 = 2³ × 3¹ × 5¹.

5. Factor Tree Method

A factor tree is a visual diagram that shows the breakdown of a number into its prime factors through successive division. Each branch splits a composite number into two factors until all leaves are prime.

6. Number of Divisors Formula

Given prime factorization n = p₁ᵏ¹ × p₂ᵏ² × ... × pₘᵏᵐ, the total number of positive divisors is:

d(n) = (k₁ + 1) × (k₂ + 1) × ... × (kₘ + 1)

Example: 120 = 2³ × 3¹ × 5¹ → d(120) = (3+1)(1+1)(1+1) = 4 × 2 × 2 = 16 factors.

7. Sum of Divisors Formula

The sum of all positive divisors, denoted σ(n), is:

σ(n) = product for each prime p of (pk+1 − 1) / (p − 1)

8. Input & Control Definitions

9. Worked Examples

Example 1 — Number 12:

Example 2 — Prime number 17:

Example 3 — Number 120 (default):

10. Real-World Applications

11. Common Factor Reference Table

Number Factor List Count Prime Factorization
121, 2, 3, 4, 6, 1262² × 3
181, 2, 3, 6, 9, 1862 × 3²
241, 2, 3, 4, 6, 8, 12, 2482³ × 3
361, 2, 3, 4, 6, 9, 12, 18, 3692² × 3²
481, 2, 3, 4, 6, 8, 12, 16, 24, 48102⁴ × 3
601, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60122² × 3 × 5
1001, 2, 4, 5, 10, 20, 25, 50, 10092² × 5²
1201, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 24, 30, 40, 60, 120162³ × 3 × 5

12. Important Notes

13. Related Mathematical Concepts

14. References

1. Euclid. "Elements," Book VII–IX. Circa 300 BCE.
2. Gauss, Carl Friedrich. "Disquisitiones Arithmeticae." 1801.
3. Hardy, G. H. and Wright, E. M. "An Introduction to the Theory of Numbers." Oxford University Press. 2008.
4. Knuth, Donald E. "The Art of Computer Programming, Volume 2: Seminumerical Algorithms." Addison-Wesley. 1997.
5. Rosen, Kenneth H. "Elementary Number Theory and Its Applications." Pearson. 2010.
6. Burton, David M. "Elementary Number Theory." McGraw-Hill. 2010.
7. Crandall, Richard and Pomerance, Carl. "Prime Numbers: A Computational Perspective." Springer. 2005.