Prime Factorization Calculator

Find the prime factors of any integer greater than 1. Get the complete prime factorization, repeated factors, exponent notation, and step-by-step calculations.

Prime Factorization Calculator

Enter a positive integer greater than 1 to find its prime factorization.

Try: 360, 1000, 12345, or a prime such as 97.

What Is Prime Factorization?

Prime factorization is the process of expressing an integer greater than 1 as a product of prime numbers. Every integer greater than 1 has a unique prime factorization, apart from the order in which the factors are written.

For example, 60 can be broken down into prime factors as follows:

60 = 2 × 2 × 3 × 5

Using exponent notation, the same factorization can be written as:

60 = 22 × 3 × 5

How to Find the Prime Factors of a Number

A common method for finding prime factors is repeated division. Start with the smallest prime number, 2, and divide the integer whenever it divides evenly.

Once 2 is no longer a factor, test the next possible prime factors, such as 3, 5, 7, 11, and so on.

Example: Prime Factorization of 360

360 ÷ 2 = 180
180 ÷ 2 = 90
90 ÷ 2 = 45
45 ÷ 3 = 15
15 ÷ 3 = 5
5 ÷ 5 = 1

Therefore:

360 = 2 × 2 × 2 × 3 × 3 × 5

Or, using exponent notation:

360 = 23 × 32 × 5

Prime Numbers and Prime Factors

A prime number is an integer greater than 1 that has exactly two positive divisors: 1 and itself.

Some small prime numbers are:

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31

Prime numbers cannot be factored into smaller positive integers other than 1 and the number itself. For example, 29 is prime, so its prime factorization is simply:

29 = 29

By contrast, 30 is composite because it can be written as a product of smaller integers:

30 = 2 × 3 × 5

Fundamental Theorem of Arithmetic

The Fundamental Theorem of Arithmetic states that every integer greater than 1 can be represented as a product of prime numbers in exactly one way, except for the order of the factors.

For example:

84 = 22 × 3 × 7

Rearranging the factors does not produce a different prime factorization:

84 = 7 × 3 × 2 × 2

Both expressions contain exactly the same prime factors with the same multiplicities.

What Is Prime Factorization Used For?

Prime factorization is an important concept in elementary number theory and has applications throughout mathematics.

  • Finding the greatest common divisor (GCD).
  • Finding the least common multiple (LCM).
  • Simplifying fractions.
  • Studying divisibility.
  • Determining the number of divisors of an integer.
  • Calculating the sum of divisors.
  • Working with modular arithmetic and number theory.
  • Understanding the structure of composite numbers.

For example, the prime factors of an integer can be used to calculate its number of positive divisors and its sum of divisors.

Prime Factorization and GCD

Prime factorization provides another way to find the greatest common divisor of two numbers.

Consider:

48 = 24 × 3
72 = 23 × 32

To find the GCD, take the common prime factors using the smallest exponent for each factor:

gcd(48, 72) = 23 × 3 = 24

You can calculate the GCD directly with the GCD Calculator .

Prime Factorization and LCM

Prime factors can also be used to calculate the least common multiple.

When finding an LCM from prime factorizations, use the largest exponent of every prime appearing in the numbers.

12 = 22 × 3
18 = 2 × 32

lcm(12, 18) = 22 × 32 = 36

Try the LCM Calculator for direct calculations.

Prime Factorization Calculator FAQ

What is prime factorization?

Prime factorization is the process of expressing an integer greater than 1 as a product of prime numbers.

What is the prime factorization of 12?

The prime factorization of 12 is 2 × 2 × 3, or 22 × 3.

What is the prime factorization of 360?

The prime factorization of 360 is 23 × 32 × 5.

Is 1 a prime number?

No. The number 1 is neither prime nor composite, so it does not have a prime factorization.

Can a prime number be factorized?

A prime number has no non-trivial factors. Its prime factorization consists of the number itself. For example, 29 = 29.

Why are prime factors important?

Prime factors provide the basic building blocks of positive integers and are useful for GCD, LCM, divisibility, fractions, divisor calculations, and many areas of number theory.