Math

Prime Factorization Calculator

Break a number down into its prime factors.


Prime Factorization Calculator

Advertisement

Breaks any whole number down into the prime numbers that multiply together to make it.

How it works

The number is repeatedly divided by the smallest possible prime until only primes remain, using trial division.

What this does not include

This does not include finding all divisors of a number (not just prime ones) — this calculator specifically returns the prime factorization.

How to use this calculator

  1. Enter a whole number of 2 or greater.

A worked example

84 → repeatedly dividing by the smallest possible prime: 84 = 2 × 2 × 3 × 7, so the prime factorization is 2² × 3 × 7.

60 → 2² × 3 × 5.

What the process does

Step What happens
Trial division Divide by the smallest possible prime repeatedly until it no longer divides evenly
Move to next prime Once a prime stops dividing evenly, try the next one up
Stop When only 1 remains, every prime factor has been found

Edge cases worth knowing

A prime number’s factorization is just itself — there’s nothing smaller to divide it by, since primes by definition have no factors besides 1 and themselves.

Every whole number greater than 1 has exactly one prime factorization — a foundational result in number theory known as the fundamental theorem of arithmetic.

Frequently asked questions

What makes a number prime?

A prime number has exactly two factors: 1 and itself. Every other whole number greater than 1 can be broken down into a unique product of primes.

Why is prime factorization useful?

It’s the foundation of number theory topics like finding greatest common divisors, least common multiples, and simplifying fractions.

What if I enter a prime number?

The result is simply that number itself, since a prime has no smaller prime factors to break it down further.

Be the first to rate this

Written by

J. Adeyemi

Statistics writer

J. Adeyemi writes the statistics and probability calculators, from descriptive summaries through to distributions and conditional probability. The recurring theme is scope: each page states precisely which question it answers, because most statistical mistakes come from applying a correct formula to the wrong question. Related-but-different measures get separate pages rather than being quietly merged.

Reviewed by

T. Okafor

Calculator reviewer — mathematics

T. Okafor reviews the mathematics calculators, verifying algebraic correctness and, just as importantly, behaviour at the edges — division by zero, undefined results, and the floating-point cases where a formula technically returns a number that should be reported as undefined. Every test case is recomputed independently rather than taken on trust.

How we write and review

Related calculators