Prime Factorization Calculator

Trial division gives 360 = 2^3 × 3^2 × 5. The calculator displays that complete product as well as the three distinct prime factors and largest prime 5. The exponents matter: they show that 360 is not a perfect square, because not all exponents are even.

Multiplying the factors reconstructs the input.

Prime Factorization Calculator: inputs

Calculated result
Distinct prime factors3
Largest prime factor5
Prime factorization2^3 × 3^2 × 5

Prime Factorization Calculator: Value sensitivity

Prime Factorization Calculator: Value and Distinct prime factors5 calculations vary the “Value” input while holding the other entered inputs constant.28823242360339634322

Prime Factorization: worked example

Value360
Distinct prime factors3
Largest prime factor5
Prime factorization2^3 × 3^2 × 5

Prime Factorization: formula

Repeated division by the smallest prime that divides the value

Prime Factorization: Wolfram MathWorld

Enter an integer from 2 through 1,000,000,000. This bound keeps trial division responsive. Inputs outside that range are rejected rather than silently rounded or replaced with the limit.

The complete factorization uses prime powers and multiplication signs; the other results report distinct-factor count and largest prime.

Prime Factorization: changing Value

ValueDistinct prime factorsLargest prime factorPrime factorization
288232^5 × 3^2
324232^2 × 3^4
360 (example)352^3 × 3^2 × 5
3963112^2 × 3^2 × 11
432232^4 × 3^3

Prime Factorization: compare input ranges

InputTested fromToDistinct prime factors: low inputDistinct prime factors: high inputSwing
Value324396231 (33%)

Prime Factorization: individual input comparisons

InputValueDistinct prime factorsLargest prime factorPrime factorization
Value288232^5 × 3^2
324232^2 × 3^4
360352^3 × 3^2 × 5
3963112^2 × 3^2 × 11
432232^4 × 3^3

Prime Factorization: which assumptions move the result?

Prime Factorization: Distinct prime factors as Value changesDistinct prime factors starts at 2. Moving Value from 288 to 432 changes it to 2, with the displayed formula kept fixed.28823242360339634322
Chart quantityDisplayed settings
Value288 → 432
Distinct prime factors2 → 2

Prime Factorization: values and definitions

Quantity and definitionValue used
Value360
Distinct prime factors3
Largest prime factor5
Prime factorization2^3 × 3^2 × 5

Prime Factorization: half and double Value

ValueDistinct prime factors
1803
3603
7203

Common error: Assuming a number could have more than one valid prime factorization. The uniqueness of prime factorization is a proven mathematical fact, so two different factor lists for the same number mean one of them is wrong, not that both are valid.

The method is quick by hand for small numbers, but a factor tree can hide repeated primes. Perfect powers and highly composite numbers have many factors. Prime numbers factor only as themselves.

Reporting only distinct primes loses the exponents, so write the full factorization when solving problems.

Number Theory & Precision calculators: Scientific Notation Calculator, Percent Error Calculator, Number Base Converter Calculator, Factorial Calculator, Modulo Calculator, Fibonacci Calculator.

Every whole number greater than one breaks down into exactly one unique combination of prime factors, a foundational fact the rest of number theory builds on, which means two different-looking factorizations of the identical number are never both correct. One of them has an error somewhere.

Multiply the listed prime factors back together and confirm the product matches the original number exactly.

Check primality on the prime number calculator, find common factors on the GCF and LCM page, and simplify fractions on the fraction simplifier. The root calculator uses factorization to simplify square roots, and the factorial page shows products of many primes. The modulo calculator tests divisibility.

Prime Factorization Calculator: quantities and terminology

What is prime factorization?

Writing a number as a product of prime numbers, such as 360 equals 2 times 2 times 2 times 3 times 3 times 5.

How can I tell if a number is a perfect square from its factors?

It is a perfect square if every prime appears an even number of times in its factorization.

Is the prime factorization of a number unique?

Yes. Apart from the order of the factors, every whole number greater than 1 has exactly one prime factorization.