Prime Factorization Calculator

Last updated: 2026-05-09

The Prime Factorization Calculator is a free online math calculator. Prime Factorization Calculator. Free online calculator with formula, examples and step-by-step guide. Get instant results with the detailed formula and step-by-step examples.
Inputs
Result
Enter values and press Calculate
Common Sizes — Click to Fill
Number
Caso basico 24.0
Caso tipico 42.0
Caso medio 60.0
Caso avanzado 90.0
Caso extremo 150.0

Prime Factorization Calculator

Prime factorization decomposes an integer into the product of its prime factors. This calculator finds all prime factors of a number using successive prime division.

Prime factorization method

The algorithm tests prime divisors in ascending order:

  • Divide the number by 2 as many times as possible.
  • Then try 3, 5, 7, 11, etc., until the quotient is 1.
  • You only need to test primes up to the square root of the number.

The result is expressed as a product of prime powers, for example 60 = 2² × 3 × 5.

Example 1: factorizing 60

Problem: Factorize 60 into prime factors.

  1. Divide by 2:
    • 60 ÷ 2 = 30; 30 ÷ 2 = 15. (two factors of 2)
  2. Divide by 3:
    • 15 ÷ 3 = 5. (one factor of 3)
  3. Divide by 5:
    • 5 ÷ 5 = 1. (one factor of 5)

Answer: 60 = 2² × 3 × 5.

Example 2: factorizing 315

Problem: Factorize 315 into prime factors.

  1. Divide by 3:
    • 315 ÷ 3 = 105; 105 ÷ 3 = 35. (two factors of 3)
  2. Divide by 5:
    • 35 ÷ 5 = 7. (one factor of 5)
  3. Divide by 7:
    • 7 ÷ 7 = 1. (one factor of 7)

Answer: 315 = 3² × 5 × 7.

Common uses of prime factorization

  • Computing GCF and LCM of large numbers from their prime factors.
  • Simplifying fractions and radicals in algebra.
  • Understanding the fundamental structure of numbers in number theory.
  • Foundation of RSA cryptography and security systems.
  • Solving divisibility and congruence problems.
  • Verifying whether a number is prime or composite.

Common mistakes in prime factorization

  • Including composite numbers as factors (e.g., 4 instead of 2²).
  • Not verifying that all factors are actually prime.
  • Stopping before reaching 1, leaving factors undecomposed.
  • Not testing enough primes, especially for large numbers.

Pro tip

The Fundamental Theorem of Arithmetic guarantees that every integer greater than 1 has a unique prime factorization. This means no matter which method you use, you will always arrive at the same prime factors.

A prime number is an integer greater than 1 that is only divisible by 1 and itself. The first primes are 2, 3, 5, 7, 11, 13, 17, 19...

No. By definition, a prime number must have exactly two positive divisors. The number 1 has only one divisor (itself).

You only need to test primes up to the square root of the number. If you find no divisors by then, the number is prime.

The GCF is the product of common prime factors raised to the smallest exponent. For example, GCF(60, 315) = 3 × 5 = 15.

Written and reviewed by the CalcToWork editorial team. Last updated: 2026-05-09.