Math Tools

Prime Factorization Calculator

Enter a positive integer to find its prime factorization and discover all prime factors.

Prime Factorization

2^3 × 3^2 × 5

Distinct Primes3
Total Factors6
Is PrimeNo

The number 360 breaks down into 3 distinct prime factors, with 6 prime factors in total (counting multiplicity).

What is the Prime Factorization Calculator?

Prime factorization is the process of breaking down a number into its prime factors—the prime numbers that, when multiplied together, equal the original number. For example, 360 = 2³ × 3² × 5. Every integer greater than 1 can be expressed uniquely as a product of primes.

How it works

The calculator uses trial division to systematically test each prime number starting from 2. It repeatedly divides your input by each prime, recording how many times each prime divides evenly into the number. Once all factors are found, it displays them in the form 2³ × 3² × 5 (showing exponents when a prime appears more than once).

Number = p₁^a₁ × p₂^a₂ × ... × pₙ^aₙ

Each number is uniquely expressed as a product of prime powers. p₁, p₂, etc. are distinct primes. The exponents a₁, a₂, etc. show how many times each prime divides the number.

Examples

InputResultNotes
122² × 312 = 2 × 2 × 3; there are 2 distinct primes and 3 total factors (counting 2 twice)
3602³ × 3² × 5360 breaks down into 2 (three times), 3 (twice), and 5 (once); 3 distinct primes, 6 total factors
171717 is a prime number; it cannot be factored further. It has 1 distinct prime and is prime itself.

How to use the Prime Factorization Calculator

  1. Enter a positive integer greater than 1 into the input field
  2. The calculator instantly displays the prime factorization in the form 2³ × 3² × 5
  3. Review the statistics showing distinct primes, total factors, and whether the number is prime
  4. Use the result to understand the number's composition or verify your hand calculations

Benefits

  • Instant factorization—no tedious trial division by hand
  • Shows prime exponents—clearly displays 2³ instead of 2 × 2 × 2
  • Identifies primes—instantly recognizes whether your number is prime
  • Reduces errors—eliminates arithmetic mistakes in factor finding
  • Free and no sign-up—use immediately in your browser, no account needed

Tips & common mistakes

Common mistakes

  • Entering 0 or 1—prime factorization is only defined for integers greater than 1
  • Forgetting to count multiplicity—2³ means three factors of 2, not one
  • Confusing prime with composite—prime numbers have no factors other than 1 and themselves
  • Entering non-integers—the calculator works only with whole numbers; decimals or fractions need rounding first

Tips

  • Check if a number is prime by seeing if the factorization equals the number itself (e.g. 17 = 17)
  • Use this tool to verify LCM and GCD calculations—factor both numbers and identify common and unique primes
  • For large numbers, the calculator is much faster than hand calculation; try 2024 or 12345
  • Understand that every integer has exactly one unique prime factorization (the Fundamental Theorem of Arithmetic)

Frequently asked questions

What is a prime number?

A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. Examples: 2, 3, 5, 7, 11, 13, 17, 19. The number 1 is not prime.

What is the difference between factors and prime factors?

All factors of a number divide it evenly. Prime factors are only the prime numbers that divide it evenly. For 12, all factors are 1, 2, 3, 4, 6, 12; prime factors are 2 and 3.

Why is the factorization written with exponents like 2³?

An exponent shows how many times a prime appears as a factor. 2³ means 2 × 2 × 2, saving space and making the pattern clearer than writing 2 × 2 × 2 × 3 × 5.

How does prime factorization relate to GCD and LCM?

GCD (greatest common divisor) is the product of shared prime factors (lowest powers). LCM (least common multiple) is the product of all prime factors (highest powers). Factorization helps you find both.

Is 2 the only even prime number?

Yes. 2 is the only even prime because all other even numbers are divisible by 2. Every composite even number includes 2 as a factor.

Can I factorize negative numbers or decimals?

Prime factorization is defined only for positive integers greater than 1. Negative numbers and decimals cannot be prime factorized in the classical sense.

Related tools

FreeToolz Editorial Team · Last reviewed July 2026

Reviewed for accuracy. Results are estimates for general information and are not professional (medical, financial or legal) advice.