Prime Factorization Calculator
Break any number into its prime factors instantly. See the factor tree, division ladder, all factors, divisibility checks, and GCF/LCM for multiple numbers.
What Is Prime Factorization?
Prime factorization is the process of expressing a composite number as a product of its prime factors โ prime numbers that multiply together to produce the original number. Every integer greater than 1 is either prime (divisible only by 1 and itself) or can be uniquely expressed as a product of primes. This is the Fundamental Theorem of Arithmetic โ one of the most important results in all of mathematics. For example: 360 = 2ยณ ร 3ยฒ ร 5. No matter how you factor 360, you'll always arrive at this same set of prime factors. For related operations, see our Common Factor Calculator.
The Division Ladder Method
1. Start with the smallest prime (2)
2. Divide n by the prime โ if divisible, record it and continue with the quotient
3. If not divisible, try the next prime (3, 5, 7, 11, 13...)
4. Stop when the quotient is 1 (or a prime itself)
Example: 360 โ 360รท2=180 โ 180รท2=90 โ 90รท2=45 โ 45รท3=15 โ 15รท3=5 โ 5 is prime โ 2ยณร3ยฒร5
Divisibility Rules โ Quick Reference
| รท | Divisibility Rule | Example |
|---|---|---|
| 2 | Last digit is even (0, 2, 4, 6, 8) | 360 โ ends in 0 โ |
| 3 | Sum of digits is divisible by 3 | 360 โ 3+6+0=9 รท 3 โ |
| 4 | Last two digits form a number divisible by 4 | 360 โ 60 รท 4 = 15 โ |
| 5 | Last digit is 0 or 5 | 360 โ ends in 0 โ |
| 6 | Divisible by both 2 and 3 | 360 โ even AND digit sum=9 โ |
| 7 | Double last digit, subtract from rest; result divisible by 7 | No simple shortcut โ just divide |
| 8 | Last three digits divisible by 8 | 360 โ 360 รท 8 = 45 โ |
| 9 | Sum of digits divisible by 9 | 360 โ 3+6+0=9 รท 9 โ |
| 10 | Last digit is 0 | 360 โ ends in 0 โ |
| 11 | Alternating digit sum divisible by 11 | 360 โ 3โ6+0=โ3, not divisible by 11 |
| 12 | Divisible by both 3 and 4 | 360 โ digit sum=9 AND 60รท4=15 โ |
Uses of Prime Factorization
GCF & LCM
GCF uses the minimum power of shared primes. LCM uses the maximum power of all primes. See our Common Factor Calculator.
Simplifying Fractions
Divide numerator and denominator by their GCF to reduce. Use our Fraction Calculator for step-by-step simplification.
Cryptography
RSA encryption relies on the difficulty of factoring large numbers (hundreds of digits) into primes. The security of the internet depends on this mathematical hardness.
Perfect Squares & Roots
A number is a perfect square if all prime factors appear in even exponents. For example, 36 = 2ยฒ ร 3ยฒ โ both exponents even โ โ36 = 6.
Frequently Asked Questions
Common questions about prime factorization, prime numbers, and factor trees
120 (shared primes, minimum powers); LCM = 2โด ร 3ยฒ ร 5ยน = 720 (all primes, maximum powers). Enable the multi-number mode above to compute this directly. Our Common Factor Calculator also shows this step by step.
(aโ + 1) ร (aโ + 1) ร โฆ ร (aโ + 1). For 360 = 2ยณ ร 3ยฒ ร 5ยน: factors = (3+1) ร (2+1) ร (1+1) = 4 ร 3 ร 2 = 24 factors. These are all numbers from 1 to 360 that divide it evenly: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360. This calculator displays all of them in the "All Factors" section. Use our Common Factor Calculator to compare factors of multiple numbers.