Math · Every step shown

Prime Factorization Calculator

Break a whole number down into the prime numbers that multiply together to make it.

Enter your numbers

Press Solve with steps to see the answer and how to get it.

Job: Number theory
Your answer

Press Solve with steps to see the answer and every step.

How it works, examples and FAQ

Divide the number by the smallest prime that fits evenly, then keep dividing the result by primes until you reach 1. The primes you used, in order, are the factorization.

Example: 360 ÷ 2 = 180, ÷ 2 = 90, ÷ 2 = 45, ÷ 3 = 15, ÷ 3 = 5, ÷ 5 = 1. So 360 = 2³ × 3² × 5.

What is prime factorization?
Writing a number as a product of only prime numbers — the building blocks that can't be broken down any further.

Why is this useful?
It's the basis for finding a GCF or LCM by hand, simplifying fractions, and understanding a number's divisors.

What's the prime factorization of 360?
2 × 2 × 2 × 3 × 3 × 5, or 2³ × 3² × 5.

More math calculators

Snap a photo of a problem →   All math tools →   All calculators →

These calculators show the method as well as the answer, so you can learn the steps and check your own work. If a result ever looks wrong, tell us on the Contact page with the numbers you entered.

Save or print your results

On a phone, choose Save as PDF on the next screen to keep a copy.