Prime Factorization Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Algebra Hub

Prime factorization (also called prime decomposition) expresses a composite number as a product of prime numbers. For example, 60 = 2² × 3 × 5. This representation is unique for every positive integer greater than 1 — a fact guaranteed by the Fundamental Theorem of Arithmetic.

This calculator finds the prime factorization of any integer using trial division, shows the step-by-step factor tree, and expresses the result in both expanded form (2 × 2 × 3 × 5) and exponential form (2² × 3 × 5). It also checks whether the input is itself prime.

To factor a number by hand, divide it by the smallest prime (2) as many times as possible, then try 3, 5, 7, 11, and so on. You only need to test primes up to √n — if no prime up to √n divides n, then n is itself prime. For example, to factor 84: 84 ÷ 2 = 42; 42 ÷ 2 = 21; 21 ÷ 3 = 7; 7 is prime. Result: 2² × 3 × 7.

Prime factorization is the foundation for computing GCF and LCM: GCF takes the lowest power of each shared prime, LCM takes the highest power of all primes. It also underlies RSA encryption, where the difficulty of factoring large numbers (products of two large primes) provides cryptographic security. In everyday math, it simplifies fractions and finds common denominators.

Formula

n = p₁^a₁ × p₂^a₂ × … × pₖ^aₖ where each pᵢ is prime

n
the integer to be factorized
pᵢ
prime factor (2, 3, 5, 7, 11, ...)
aᵢ
exponent — how many times pᵢ divides n

Prime Factorization Calculator

Enter any positive integer to find its prime factors.

Prime Factorizations of Common Numbers

nFactorizationExponential FormPrime?# Divisors
122 × 2 × 32^2 × 3No6
242 × 2 × 2 × 32^3 × 3No8
362 × 2 × 3 × 32^2 × 3^2No9
482 × 2 × 2 × 2 × 32^4 × 3No10
602 × 2 × 3 × 52^2 × 3 × 5No12
722 × 2 × 2 × 3 × 32^3 × 3^2No12
842 × 2 × 3 × 72^2 × 3 × 7No12
1002 × 2 × 5 × 52^2 × 5^2No9
1202 × 2 × 2 × 3 × 52^3 × 3 × 5No16
1442 × 2 × 2 × 2 × 3 × 32^4 × 3^2No15
1802 × 2 × 3 × 3 × 52^2 × 3^2 × 5No18
3602 × 2 × 2 × 3 × 3 × 52^3 × 3^2 × 5No24

Disclaimer

This calculator is for educational purposes only and does not constitute professional advice. Results are based on standard mathematical formulas. Always verify critical calculations with a qualified professional before making important decisions.

Frequently Asked Questions