Prime Factorization Calculator

Find the prime factorization of any number using a step-by-step factor tree.

Prime Factorization

360 =

2^3 × 3^2 × 5

222335

Prime Factorization Calculator Formula & How It Works

n = p₁^a₁ × p₂^a₂ × p₃^a₃ × … (Fundamental Theorem of Arithmetic)
  • Every integer > 1 is either prime or can be written as a unique product of primes
  • Trial division: divide by 2, then 3, 5, 7, 11 … up to √n
  • Continue until quotient is 1
  • Result: list each prime factor with its exponent

The Fundamental Theorem of Arithmetic states that every integer > 1 has a unique prime factorization. Find it by trial division: divide repeatedly by the smallest prime that goes in evenly (2, then 3, 5, 7, …). Example: 360 = 2³ × 3² × 5. Used in GCF, LCM, and number theory.

Prime Factorization Calculator FAQs

What are prime numbers?

A prime number is greater than 1 and divisible only by 1 and itself: 2, 3, 5, 7, 11, 13, 17, 19, 23… Composite numbers can be broken into prime factors. 1 is neither prime nor composite.

What is the largest known prime number?

As of 2024, the largest known prime has over 41 million digits (discovered via the GIMPS project). Mersenne primes (2^p − 1) are the most common subjects of prime searches. Your calculator handles everyday factorization up to billions.

Related Calculators