Factor Calculator

BASIC MATH · DIVISORS & PRIME FACTORS

Find all factors & prime factorization

Calculated on this device
Enter a positive whole integer between 1 and 10,000,000.

POSITIVE FACTORS (16)

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

Prime factorization: 2^3 × 3 × 5

Method Trial division up to √n for factor pairs and prime exponents

ClassificationComposite8 factor pairs
Distinct Primes3Unique prime bases
View all 8 factor pairs & full divisor list for 120

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

Pair #Factor AFactor BProduct
11120120
2260120
3340120
4430120
5524120
6620120
7815120
81012120

HOW IT WORKS

Finding factor pairs & prime factorization

A positive integer d is a factor (or divisor) of n if dividing n by d leaves a remainder of 0.

01

Symmetric factor pairs up to √n

Whenever d divides n, its partner n ÷ d also divides n. Checking integers from 1 up to ⌊√n⌋ finds every factor pair without scanning all the way to n.

120 = 1×120 = 2×60 = 3×40 = 4×30 = 5×24 = 6×20 = 8×15 = 10×12
02

Prime factorization

By the Fundamental Theorem of Arithmetic, every integer greater than 1 has a unique prime-power decomposition:

120 = 2³ × 3 × 5
03

Counting total factors from exponents

If n = p₁^a₁ × p₂^a₂ × …, the total number of positive factors is (a₁ + 1)(a₂ + 1)…. For 120, (3 + 1)(1 + 1)(1 + 1) = 16.

FACTOR GUIDE

Factors, prime vs. composite numbers & divisor pairs

Prime vs. composite vs. unit

An integer greater than 1 with exactly two positive factors (1 and itself) is prime (such as 2, 17, or 97). An integer greater than 1 with more than two positive factors is composite. The number 1 has only one positive factor and is neither prime nor composite.

Why perfect squares have an odd number of factors

Most factor pairs consist of two distinct integers (d, n/d), giving an even total factor count. When n is a perfect square (such as 36), the pair (6, 6) repeats the same integer, so 36 has an odd number of distinct factors (9).

Comparing divisors across two or more integers? Use our GCF Calculator or LCM Calculator.

Frequently asked questions

Why is 1 not considered a prime number?

Excluding 1 from the primes preserves the uniqueness of prime factorization (otherwise 12 could be written as 2² × 3, 1 × 2² × 3, 1² × 2² × 3, and so on).

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

A factor is any integer that divides n evenly (for 12: 1, 2, 3, 4, 6, 12). A prime factor is a factor that is also prime (for 12: 2 and 3).

Why is the input capped at 10,000,000?

Bounding n ≤ 10,000,000 ensures trial division up to √n ≤ 3,162 completes instantaneously on any device without freezing the browser tab.

How do I view all factor pairs?

Expand the collapsible View all factor pairs section directly below the calculator result panel to see every (A, B) pair in a table.

Your inputs are calculated in this browser and are not sent to a server.