Introduction
Every positive whole number greater than 1 can be built by multiplying prime numbers, and the same primes always appear, whatever order we use. The reason is a simple but powerful fact: if a prime divides a product, it must divide at least one factor. This article explains how that idea guarantees both the existence and the uniqueness of prime factorization, and why the number 1 needs special care.
What prime factorization means
A prime number is a whole number greater than 1 whose only positive divisors are 1 and itself. The first few primes are 2, 3, 5, 7, and 11. A number greater than 1 that is not prime is called composite; for instance, 12 is composite because it can be written as 3 × 4.
A prime factorization writes a number as a product of primes. For example:
12 = 2 × 2 × 3 = 22 × 3
60 = 2 × 2 × 3 × 5 = 22 × 3 × 5
The small exponent in 22 means that 2 is used twice. In a factorization, the order of the factors does not matter: 2 × 3 × 5 and 5 × 2 × 3 are the same product. So “unique” does not mean there is only one possible ordering. It means that the same prime numbers occur the same number of times in every prime factorization of the number.
The central idea: primes cannot hide inside a product
The key principle is often called Euclid’s lemma: if a prime number divides a product of two whole numbers, then it divides at least one of those numbers. In symbols, if a prime p divides a × b, then p divides a or p divides b.
Here, “p divides a” means that a is an exact multiple of p, with no remainder. For example, 3 divides 12 because 12 = 3 × 4. By contrast, 3 does not divide 10 evenly.
Consider 5 dividing 20 × 7. Since 20 × 7 = 140, which is divisible by 5, the lemma says that 5 must divide 20 or 7. It does divide 20. It does not divide 7. A prime cannot divide a product merely because the combined product happens to be large; it must be present in at least one factor.
This property distinguishes primes from composite numbers. For example, 6 divides 3 × 4, since 3 × 4 = 12, but 6 divides neither 3 nor 4. A composite number can divide a product without dividing either factor. The prime condition is what makes the uniqueness argument work.
Why Euclid’s lemma is true
One way to understand the lemma is to look at what happens when p does not divide a. Because p is prime, a and p then have no common factor greater than 1. A standard result in arithmetic says that in this situation there are whole numbers m and n such that ma + np = 1, allowing one or both of the numbers to be negative.
Multiply that equation by b: mab + npb = b. If p divides a × b, it divides mab; it also divides npb because that term includes p. Therefore p divides their sum, b. So when p does not divide a, it must divide b. That proves the lemma’s “or” statement. The underlying result about m and n can be established using the Euclidean algorithm, a repeated division process for finding greatest common factors.
The details can be left aside when using the theorem, but the point is important: the claim is not a pattern guessed from a few examples. It follows from a general property of primes and division.
Existence: every number greater than 1 can be factored
Before asking whether a factorization is unique, we need to know that one exists. This can be shown by a simple downward argument.
If a number n greater than 1 is prime, it is already a product consisting of one prime: itself. If n is composite, it can be written as a product of two smaller whole numbers, each greater than 1. If either factor is composite, it can be broken down further. Repeating this process eventually reaches primes, because the factors keep getting smaller and positive whole numbers cannot shrink forever while staying above 1.
For example, begin with 84. It is composite, so split it into 2 × 42. Then split 42 into 2 × 21, and 21 into 3 × 7. The result is 84 = 2 × 2 × 3 × 7, a product made entirely of primes.
This reasoning establishes existence, but by itself it does not establish uniqueness. A process might reach primes in more than one way. The special divisibility rule for primes is what rules out different final collections.
Uniqueness: matching the prime factors one by one
Imagine that the same number has been written as two products of primes:
n = p1 × p2 × … × pr
n = q1 × q2 × … × qs
Because both products equal n, the prime p1 divides the product of all the q factors. Euclid’s lemma says that it must divide at least one of them. But p1 and that q factor are both prime. A prime can divide another prime only when they are the same number. So p1 must match one of the q factors.
Now cancel that matching prime from both sides. The remaining products are still equal. Apply the same reasoning to the next prime on the first side: it must match one of the remaining primes on the second side. Continue in this way. Each prime factor on one side has to match a factor on the other.
The process cannot leave extra primes on just one side. A product of one or more primes is greater than 1, whereas an empty product is defined as 1. Therefore both factorizations contain exactly the same primes, counted with the same repetitions. Their order may differ, but their contents do not.
For example, suppose someone claims that 60 has the factorizations 2 × 2 × 3 × 5 and 2 × 3 × 10. The second expression is not yet a prime factorization because 10 is composite. Splitting it into 2 × 5 gives 2 × 3 × 2 × 5, which contains exactly the same prime factors as the first expression. The apparent difference was only a different grouping and order.
Why this is called the fundamental theorem of arithmetic
The statement that every integer greater than 1 has a prime factorization, unique apart from the order of its factors, is known as the fundamental theorem of arithmetic. It joins the two parts of the argument: every such number can be built from primes, and there is only one collection of prime building blocks that works.
Prime factorization is useful because it gives a compact way to describe divisibility. For instance, 60 = 22 × 3 × 5 and 84 = 22 × 3 × 7. Their shared prime factors, with the smaller available exponents, give 22 × 3 = 12, their greatest common divisor. Taking all the primes that appear, with the larger exponents, gives 22 × 3 × 5 × 7 = 420, their least common multiple.
The method also shows whether a number is a perfect square: in its prime factorization, every prime must occur an even number of times. For example, 144 = 24 × 32 is a square because both exponents are even; in fact, 144 = 122. These uses depend on the certainty that the prime factors are not one arbitrary choice among several different collections.
A useful qualification about 1 and 0
The title’s phrase “every whole number” needs a small qualification. The prime factorization theorem applies to positive whole numbers greater than 1. The number 1 is not prime, and it has no prime factors. It can be treated as the product of no primes, called the empty product, which is defined to equal 1. This convention fits neatly with arithmetic, but it is not a factorization containing prime numbers.
Zero is different again. Every nonzero whole number divides 0, since 0 equals that number multiplied by 0. As a result, 0 does not have a finite prime factorization of the usual kind. Negative integers can be handled by separating out a factor of −1; for example, −60 = −1 × 22 × 3 × 5. The prime-factor uniqueness statement concerns the positive part.
Conclusion
Prime factorization is unique because primes have a decisive divisibility property: a prime dividing a product must divide one of its factors. That lets us match and cancel prime factors in any two proposed factorizations until none remain unmatched. Every positive whole number greater than 1 can be broken into primes, and this matching argument proves that its prime building blocks cannot differ.

