Prime Factorization

Definitionnoun phrase

What is prime factorization in math?

Prime factorization is writing a whole number as a product of prime numbers only, such as 72 = 2 × 2 × 2 × 3 × 3 = 23 × 32. Find it with a factor tree or repeated division. Every whole number greater than 1 has exactly one prime factorization, apart from the order of the factors.

In Spanish
factorización prima
Also called
prime decomposition, prime factors, factor tree, product of primes
Grade level
6-8
Grade 4Grade 5Grade 6Grade 7CCSS 4.OA.B.4CCSS 6.NS.B.4GEDSATACTTABEACCUPLACERASVAB

Prime Factorization in a picture

Two factor trees for 72Left tree: 72 splits into 8 and 9; 8 splits into 2 and 4; 4 into 2 and 2; 9 into 3 and 3. Right tree: 72 splits into 2 and 36; 36 into 6 and 6; each 6 into 2 and 3. Both end in the primes 2, 2, 2, 3, 3, so 72 = 2 cubed times 3 squared.Tree 1: 8 × 9Tree 2: 2 × 36728924223372236662323Different first splits, same primes:72 = 2 × 2 × 2 × 3 × 3 = 2³ × 3²green circles = prime factors (the branches stop there)
Start a factor tree with any factor pair. However you split, the branches end in the same primes, which is why each number has just one prime factorization.

Formal definition and notation

The prime factorization of a whole number n ≥ 2 is its expression as a product n = p1a1 × p2a2 × ⋯ × pkak, where the pi are distinct prime numbers and the exponents ai are positive whole numbers. By the Fundamental Theorem of Arithmetic, this product is unique apart from the order of the factors. A prime number is its own prime factorization, and 1 has none.

Symbol Read it as Meaning
2 × 2 × 2 × 3 × 3 two times two times two times three times three the prime factorization written out in full
23 × 32 two cubed times three squared the same factorization in exponent form
pa p to the a the prime p appears a times

Key facts

  • Only prime numbers may appear: 2, 3, 5, 7, 11, 13, … Never write 1 or a composite number in the final answer.
  • The prime factorization of a number is unique: every factor tree of 72 ends with three 2s and two 3s.
  • To test for primes when dividing, you only need to try primes up to the square root of the number.
  • The GCF of two numbers multiplies the primes they share (lowest powers); the LCM multiplies every prime that appears (highest powers).
  • A number is a perfect square exactly when every exponent in its prime factorization is even: 36 = 22 × 32.

Two ways to find it

Two ways to find it
factor tree: split into any factor pair, repeat until every branch ends in a prime
factor tree
72 → 8 × 9 → (2 × 4) × (3 × 3) → 2 × 2 × 2 × 3 × 3
ladder (division)
divide by the smallest prime that works, again and again, until the quotient is 1

Both methods give the same primes. Write them from least to greatest and group repeats with exponents.

Try it: grow a factor tree

Interactive

Type a whole number or pick a sample. The tree splits it until every branch ends in a prime, then writes the prime factorization with exponents. Try 97 to see a prime with no branches.

This interactive needs JavaScript. The worked examples below show the same ideas step by step.

Prime Factorization examples, step by step

Example 1: A factor tree

Warm-up

Find the prime factorization of 90.

  1. Split 90 into 9 × 10.
  2. 9 = 3 × 3 and 10 = 2 × 5.
  3. Every branch is prime: 2, 3, 3, 5.

Answer: 90 = 2 × 32 × 5.

Example 2: The ladder method

Core

Find the prime factorization of 588.

  1. 588 ÷ 2 = 294, 294 ÷ 2 = 147.
  2. 147 is odd. 147 ÷ 3 = 49.
  3. 49 ÷ 7 = 7, and 7 ÷ 7 = 1.
  4. The primes used: 2, 2, 3, 7, 7.

Answer: 588 = 22 × 3 × 72.

Example 3: GCF and LCM from prime factorizations

Test-style

Use prime factorization to find the GCF and LCM of 84 and 90.

  1. 84 = 22 × 3 × 7 and 90 = 2 × 32 × 5.
  2. GCF: shared primes, lowest powers: 2 × 3 = 6.
  3. LCM: every prime, highest powers: 22 × 32 × 5 × 7 = 1,260.

Answer: The GCF is 6 and the LCM is 1,260.

Common mistakes

✗ MistakeStopping at a composite factor: 72 = 2 × 4 × 9.
✓ InsteadKeep splitting: 4 = 2 × 2 and 9 = 3 × 3, so 72 = 23 × 32.

A prime factorization must contain only primes. 4 and 9 still have factors.

✗ MistakeListing each prime once: 72 = 2 × 3.
✓ InsteadKeep every copy: 72 = 2 × 2 × 2 × 3 × 3.

2 × 3 = 6, not 72. The product of the factorization must equal the number, so repeated primes matter.

✗ MistakeIncluding 1 as a factor: 30 = 1 × 2 × 3 × 5.
✓ Instead30 = 2 × 3 × 5.

1 is not a prime number, so it does not belong in a prime factorization.

✗ MistakeTreating 51 or 91 as prime and stopping: 91 is “already prime”.
✓ Instead91 = 7 × 13 and 51 = 3 × 17.

Test every prime up to the square root before deciding a number is prime.

Not to be confused with

Prime Factorizationvs.Factor

The factors of 12 are all the numbers that divide it: 1, 2, 3, 4, 6, 12. Its prime factorization uses only primes: 22 × 3.

Prime Factorizationvs.Factoring

In algebra, factoring writes a polynomial as a product, like x2 − 9 = (x − 3)(x + 3). Prime factorization is for whole numbers.

Prime Factorizationvs.Prime number

A prime number has exactly two factors. Prime factorization breaks any whole number into those primes.

Quick check: 3 questions

Question 1 of 3

What is the prime factorization of 60?

Show answer and explanation

Answer: C. 60 = 2 × 2 × 3 × 5 = 22 × 3 × 5. A and B stop at composites (30, 4), and D drops a 2, which gives 30.

Question 2 of 3

Which number has the prime factorization 23 × 5?

Show answer and explanation

Answer: B. 23 × 5 = 8 × 5 = 40. 30 reads 23 as 2 × 3, 16 is 24, and 80 is 24 × 5.

Question 3 of 3

Which is NOT a correct prime factorization?

Show answer and explanation

Answer: D. 6 is not prime, so 6 × 7 is a factorization but not a prime one; the prime factorization of 42 is 2 × 3 × 7. The other three use only primes and multiply correctly.

Prime Factorization: frequently asked questions

Can a number have more than one prime factorization?

No. Apart from the order of the factors, every whole number greater than 1 has exactly one prime factorization. This fact is called the Fundamental Theorem of Arithmetic. Two people can start a factor tree with different splits, such as 72 = 8 × 9 and 72 = 2 × 36, and they will still end with the same primes.

What is the prime factorization of a prime number?

The prime number itself. For example, the prime factorization of 13 is just 13, because 13 has no factors except 1 and itself, so a factor tree cannot split it. The number 1 is a special case: it is neither prime nor composite and has no prime factorization.

Why is prime factorization useful?

It makes many fraction and number problems easier. You can read off the greatest common factor and least common multiple, simplify fractions by canceling shared primes, find common denominators, test whether a number is a perfect square or cube, and simplify square roots: √72 = √22 × 32 × 2 = 6√2.

Practice and tools

Sources

  1. OpenStax, Prealgebra 2e, 2.5 Prime Factorization and the Least Common Multiple
  2. OpenStax, Contemporary Mathematics, 3.1 Prime and Composite Numbers
  3. Common Core State Standards, Grade 6 The Number System (6.NS.B.4)
  4. Wolfram MathWorld, Prime Factorization

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 4.OA.B.4, CCSS 6.NS.B.4

Cite this entry

Effortless Math Team. “Prime Factorization.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/prime-factorization/

Flashcard

TermPrime Factorizationa product of primes only
DefinitionWriting a number as a product of primes: 72 = 2 × 2 × 2 × 3 × 3 = 2³ × 3². Every number above 1 has exactly one.
Study the full deck

Browse all terms in the Math Dictionary · More number system terms · Random term