Prime factorization writes a whole number as a product of prime numbers.
What is a prime factorization calculator?
A prime factorization calculator writes a whole number greater than 1 as a product of prime numbers. It shows the long multiplication chain, compact exponent form, and how many distinct primes appear. Trial division strips factors of 2, then tests odd primes up to the square root of what remains. Use the output when finding GCF or LCM by hand. Enter 360 to see 2³ × 3² × 5 as in factor-tree homework.
How to use the Prime Factorization Calculator
- Enter an integer from 2 up to ten million.
- Read expanded prime multiplication if composite.
- Check exponent form such as 2³ × 3².
- Note the distinct prime count.
- If the input is prime, the tool states that directly.
- Try 840 to see many distinct prime factors at once.
About this calculator
Prime factorization writes a whole number as a product of prime numbers. Every integer greater than 1 has one unique prime decomposition — this is the Fundamental Theorem of Arithmetic. For example, 360 breaks into 2 × 2 × 2 × 3 × 3 × 5, written compactly as 2³ × 3² × 5.
You use prime factorization to simplify fractions, find GCF and LCM, solve number theory problems, and understand why some numbers have many divisors. The calculator runs trial division: it strips factors of 2, then tests odd primes up to √n until the number is fully reduced.
Results show the expanded multiplication chain, exponent form, and how many distinct primes appear. If the input is already prime, the result states that directly. Pair this with the [[factor]] calculator for all divisors, the [[gcf]] calculator for shared prime powers, and the [[lcm]] calculator for the least common multiple built from prime exponents.
Formula for prime factorization
n = p₁ × p₂ × … × p_k with each p prime
Example: 360 = 2³ × 3² × 5
Example: 840 = 2³ × 3 × 5 × 7- n is the composite or prime you enter
- p_i are prime divisors in the decomposition
- exponents count repeated prime factors
- Fundamental Theorem guarantees one unique factorization order aside from sorting
- Trial division stops testing once the divisor squared exceeds the remaining quotient
- Prime powers help simplify square roots and check divisibility before you reduce fractions
Worked examples
360 = 2³ × 3² × 5
Expanded: 2 × 2 × 2 × 3 × 3 × 5.
Three distinct primes. Multiply back to verify: 8 × 9 × 5 = 360.
1024 = 2¹⁰
A single prime with exponent 10. Only one distinct prime factor — useful for powers-of-two problems in computer science.
Common uses
- Decompose numbers for GCF and LCM by prime powers
- Simplify fractions by cancelling shared prime factors
- Verify divisibility and number theory homework
- Explore why highly composite numbers have many factors
Frequently asked questions
What is the prime factorization of 360?
360 = 2³ × 3² × 5. In expanded form: 2 × 2 × 2 × 3 × 3 × 5. There are three distinct primes: 2, 3, and 5.
How do you find prime factors by hand?
Divide by 2 while possible, then test 3, 5, 7, and higher odd primes in order. Stop when the quotient is 1 or a prime. Each successful division records one prime factor.
Is prime factorization unique?
Yes — apart from the order of factors, every integer greater than 1 has exactly one prime decomposition. That is why exponent form like 2³ × 3² is unambiguous.
What is exponent form in prime factorization?
Instead of writing 2 × 2 × 2, you write 2³. Exponent form groups repeated primes: 72 = 2³ × 3². It is shorter and makes GCF/LCM comparisons easier.
What is the prime factorization of 840?
840 = 2³ × 3 × 5 × 7. Divide out 2 three times to get 105, then 3 gives 35, then 5 gives 7, which is prime. Four distinct primes appear. Enter 840 in the calculator to see the same exponent form and expanded chain.
Deep dive
Fundamental Theorem of Arithmetic
Unique prime decomposition.
Why exponent form helps
Shorter and easier to compare.
Related calculators
- Standard Deviation Calculator
- Average Calculator
- LCM Calculator
- GCF Calculator
- Binary Converter
- Hex Converter
- Roman Numeral Converter
- Unit Converter
Maintained by J Jaya Prakash · Last updated: October 2026