ToolBark
Math

Prime Factorization Calculator

Break any integer into its prime building blocks instantly

Input

Enter any positive integer up to 1,000,000,000.

Try an example

Result

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

Prime factors

233)
322)
5

Step-by-step division

360÷2=180
180÷2=90
90÷2=45
45÷3=15
15÷3=5
5÷5=1✓ done
Number360
Exponential form2^3 × 3^2 × 5
Expanded form2 × 2 × 2 × 3 × 3 × 5
Distinct prime factors3
Total prime factors (Ω)6
Number of divisors24

All divisors (24)

1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360

What is Prime Factorization?

Every integer greater than 1 can be written as a unique product of prime numbers — this is the Fundamental Theorem of Arithmetic. The prime factorization expresses a number in exponential form showing which primes are multiplied, and how many times each appears.

122² × 3
1002² × 5²
3602³ × 3² × 5
10242¹⁰
23102×3×5×7×11
99993² × 11 × 101
About

The prime factorization calculator breaks any positive integer into its unique product of prime numbers — shown in exponential form with exponents. Grounded in the Fundamental Theorem of Arithmetic, it reveals the hidden prime structure of any number, displays a step-by-step division ladder, lists all divisors, and counts distinct prime factors. Ideal for students, teachers, and anyone working with number theory.

FAQ
What is prime factorization?+

Prime factorization expresses a number as a product of prime numbers. For example, 360 = 2³ × 3² × 5. Every integer greater than 1 has exactly one prime factorization — a fact known as the Fundamental Theorem of Arithmetic.

How does the calculator handle prime numbers?+

If you enter a prime number such as 97, the calculator recognizes it immediately and labels it as prime. A prime has no smaller divisors, so it is its own prime factorization.

What is the largest number I can factorize?+

This tool supports integers up to 1,000,000,000 (one billion). For numbers in that range the trial division algorithm is fast enough to run in the browser without any noticeable delay.

How is the number of divisors calculated?+

If a number has prime factorization p₁^a × p₂^b × …, then the total count of divisors is (a+1)(b+1)…. For example, 12 = 2² × 3 has (2+1)(1+1) = 6 divisors: 1, 2, 3, 4, 6, 12.

Related tools