Math · FREE ONLINE TOOL

Prime Factorization Calculator

Express a positive integer as a product of prime factors, including repeated factors. Supports whole numbers up to one trillion.

Your inputs

Formula and input guidance

Integer factorization

Test integer divisors up to √n, then divide repeatedly to obtain prime factors.

The input is limited to one trillion to keep trial division responsive.

Calculations run in your browser. No account needed.

EXAMPLE RESULTCalculated locally
Prime factorization
2 × 2 × 2 × 3 × 3 × 5
Clear inputs. Transparent methods.
My workspace

Calculate with your inputs to save a result or compare scenarios.

How it works

Illustration for Prime Factorization Calculator: a diagram with connected points; plus and division symbols.
Integer factorizationTest integer divisors up to √n, then divide repeatedly to obtain prime factors.
A useful distinction

Exponents reveal the number of divisors

Since 72 = 2³ × 3², each positive divisor chooses zero through three twos and zero through two threes. There are (3 + 1)(2 + 1) = 12 choices, giving 12 positive divisors.

Count divisors from the prime exponents

Positive divisors. A (18) → 6. B (36) → 9.
Count divisors from the prime exponents
NumberCalculationPositive divisors
A 18(1 + 1) × (2 + 1)6
B 36(2 + 1) × (2 + 1)9

Reading repeated prime factors

The calculator displays prime factors as a multiplication product. For 72, the result is 2 × 2 × 2 × 3 × 3. You can write the same product as 2³ × 3²: the exponent counts how many times a prime repeats. Multiplying the displayed factors reconstructs the original integer. One has no prime factors. To list every positive divisor rather than only the prime factors, use the Factor Calculator.

Break an integer into prime factors until no composite factor remains

Enter a positive integer and read its factorization as multiplication. A prime number has only 1 and itself as positive divisors. Composite factors must be split further: 12 = 3×4 is a factorization, but its prime factorization is 2×2×3.

Finflo lists repeated prime factors separately, making multiplicities visible. You can combine repetitions into exponent notation when writing the result elsewhere.

Work through the factorization of 840

Repeated division gives 840 ÷ 2 = 420, then 210, then 105. Continue with 105 ÷ 3 = 35, 35 ÷ 5 = 7 and 7 ÷ 7 = 1. The product is 2×2×2×3×5×7, or 2³×3×5×7.

Successive prime divisions of 840
Current integerDivide byRemaining quotient
8402420
4202210
2102105
105335
3557
771

Use the exponents to recover useful divisibility information

The factorization 840 = 2³×3¹×5¹×7¹ has (3+1)(1+1)(1+1)(1+1)=32 positive divisors. For a greatest common factor, take only shared primes with their smaller exponents. For a least common multiple, take every required prime with its larger exponent.

This explains why GCF and LCM are different constructions. A prime that occurs in only one input belongs in the LCM but not the GCF.

Interpret 1, primes and the supported range

The number 1 has no prime factors; it is the empty-product boundary case, not a prime. Entering a prime returns that same prime as its factorization. This tool accepts integers through 10¹² and does not factor decimals, negative values or symbolic polynomials.

Multiplying the returned factors reconstructs the original integer and provides a useful independent check. A factor list requires an additional combination step, so use the Factor Calculator when you need every divisor.

Integer factorization: formula and assumptions

Test integer divisors up to √n, then divide repeatedly to obtain prime factors.

The input is limited to one trillion to keep trial division responsive.

Use Integer factorization

Worked example

Using the Integer factorization example:

Inputs
Positive integer
360
Method

Test integer divisors up to √n, then divide repeatedly to obtain prime factors.

Result

Example result

Prime factorization: 2 × 2 × 2 × 3 × 3 × 5

These are illustrative inputs. Change the values to explore a different scenario.

Formula references

References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.

Common questions

How are repeated prime factors shown mathematically?

Repeated factors can be written as powers. For example, 72 = 2^3 × 3^2.

Does the number 1 have a prime factorization?

No. One is neither prime nor a product of primes; it has no prime factors.

Can this factor an algebraic polynomial?

No. It factors a positive integer into prime integers. Polynomial factorization is a different operation.

How can I check a prime factorization?

Multiply all returned factors, including repeated ones. Their product must equal the entered integer.

Can I factor a negative number or a decimal here?

This tool accepts positive whole numbers within its displayed limit. For a negative integer, a factor of −1 can be handled separately, but the input itself must be positive.

See our methodology and editorial policy.