← Back to All Math Tools

Prime Factorization Calculator

Choose a fast answer or optional teaching.

Prime factorization

Practice Mode

What to understand

A prime number has exactly two factors: 1 and itself. Prime factorization writes a whole number as a product of prime numbers.

Example: 60 = 2 × 2 × 3 × 5. The shorter exponent form is 2² × 3 × 5.

⚡ Prime Factorization Shortcuts

Start with 2: If the number is even, divide by 2 until the quotient is odd.

Try small primes: Test 3, 5, 7, and the next primes. Keep dividing by a prime while it divides evenly.

When to stop: Once your next possible factor is larger than the square root of the remaining quotient, that quotient is prime.

Check: Multiply the prime factors. Their product must equal the starting number.

How to find a prime factorization

Divide by the smallest prime that fits (2, 3, 5, 7, …) and keep dividing until you reach 1. The primes you used are the prime factors.

Example: 60 ÷ 2 = 30, 30 ÷ 2 = 15, 15 ÷ 3 = 5, 5 ÷ 5 = 1. So 60 = 2² × 3 × 5.

Is 1 a prime number?

No. A prime has exactly two factors, 1 and itself. 1 has only one factor, so it is neither prime nor composite.

How do I know a number is prime?

Check whether any prime up to its square root divides it. For 97, the square root is about 9.8; 2, 3, 5 and 7 do not divide 97, so 97 is prime.

Related tools

See all math tools →