MATHEMATICS · PRIME FACTORS

Prime Factorization Calculator

Enter any whole number and see its prime factorization in exponent form, every prime factor, every divisor, and whether the number itself is prime, updating instantly as you type.

PRIME FACTORIZATION LIVE

Enter a whole number (up to 10 digits).

01 · DEFINITION

What Is Prime Factorization?

Every integer greater than 1 is either a prime number itself, or it can be written as a product of prime numbers in exactly one way (up to the order you multiply them). This is called the Fundamental Theorem of Arithmetic. Prime factorization is the process of finding that unique set of primes. For example, 60 breaks down into 2 × 2 × 3 × 5, written compactly as 2² × 3 × 5.

This uniqueness is what makes prime factorization so useful. No matter which order you divide out the primes, or which two factors you start splitting a number into on a factor tree, you always end up with the exact same set of primes and exponents. That guarantee is what lets prime factorization be used as a reliable building block for other calculations, including finding the greatest common factor and the least common multiple. It also underlies the least common denominator itself, since the LCD of a set of fractions is just the LCM of their denominators.

02 · METHOD

How to Find Prime Factorization

Two equivalent methods reach the same factorization.

Division Method

Divide the number by the smallest prime that divides it evenly, then keep dividing the result by the smallest prime again, until you reach 1. For 60: 60 ÷ 2 = 30, 30 ÷ 2 = 15, 15 ÷ 3 = 5, 5 ÷ 5 = 1. The primes used were 2, 2, 3, 5, so 60 = 2² × 3 × 5.

Factor Tree Method

Split the number into any two factors, then keep splitting each branch that isn't prime yet. For 60, split into 6 × 10, then split 6 into 2 × 3 and 10 into 2 × 5. Every branch now ends in a prime: 2, 3, 2, 5. Multiplying them gives the same 2² × 3 × 5.

03 · APPLICATIONS

Prime Factorization and LCD

Finding the least common denominator of several fractions comes down to prime factorization of each denominator. Take the highest power of every prime that appears in any denominator, then multiply those powers together.

LCD of 3/4, 4/5, and 2/3 using prime factorization:

4 = 2², 5 = 5, 3 = 3
Highest powers: 2², 3¹, 5¹
2² × 3 × 5 =
60
04 · PRIME NUMBERS

What Makes a Number Prime?

A prime number has exactly two positive divisors: 1 and itself. Any number with more than two divisors is composite (it can be built from smaller factors). The number 1 is neither prime nor composite because it has only one divisor. Checking whether a number is prime only requires testing divisibility by primes up to its square root. If none of them divide evenly, the number is prime. That's why 97 is prime: none of 2, 3, 5, or 7 (the primes up to the square root of 97) divide it evenly.

Primes up to 50:

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47

05 · EXAMPLES

Worked Prime Factorization Examples

Eight numbers broken down into their prime factors.

Example 1
Prime factorization of 12
= 2² × 3
Example 2
Prime factorization of 24
= 2³ × 3
Example 3
Prime factorization of 36
= 2² × 3²
Example 4
Prime factorization of 60
= 2² × 3 × 5
Example 5
Prime factorization of 100
= 2² × 5²
Example 6
Prime factorization of 48
= 2⁴ × 3
Example 7
Prime factorization of 72
= 2³ × 3²
Example 8
Prime factorization of 180
= 2² × 3² × 5
06 · FAQ

Prime Factorization: Frequently Asked Questions

What is the prime factorization of 12?
12 = 2² × 3. Dividing 12 by 2 twice gives 3, which is prime, so the prime factorization is 2 squared times 3. This means 12 can be built by multiplying 2 by itself and then by 3, and no other prime numbers divide into 12 evenly.
What is the prime factorization of 60?
60 = 2² × 3 × 5. Breaking 60 down: 60 ÷ 2 = 30, 30 ÷ 2 = 15, 15 ÷ 3 = 5, and 5 is prime. Multiplying the factors back together, 2 × 2 × 3 × 5 equals 60, confirming the factorization is correct.
How do you find prime factorization using a factor tree?
Split the number into any two factors, then keep splitting each non-prime branch into two more factors until every branch ends in a prime number. Multiply all the prime leaves together to get the factorization. For instance, factoring 36 might start as 6 × 6, then split into 2 × 3 × 2 × 3.
What is the difference between prime factors and all factors?
Prime factors are the prime numbers that multiply together to build the number. All factors (divisors) include every number that divides it evenly, including 1, the number itself, and every composite factor in between. For example, 12 has prime factors 2 and 3, but its full list of factors is 1, 2, 3, 4, 6, and 12.
Is 1 a prime number?
No. A prime number must have exactly two distinct divisors: 1 and itself. The number 1 has only one divisor (itself), so it is defined as neither prime nor composite. This distinction matters because prime factorization relies on primes as the building blocks, and allowing 1 as a prime would make factorizations non-unique.
How is prime factorization used to find the LCD?
The LCD of a set of fractions is built from the prime factorization of each denominator: take the highest power of every prime that appears in any denominator, then multiply those powers together. For example, with denominators 12 (2² × 3) and 18 (2 × 3²), the LCD uses 2² and 3², giving 36.