Home · Everyday · Arithmetic · Factor Calculator

Factor Calculator

The prime factorization of an integer — every prime, with its exponent — by trial division up to the square root.

Your figures

Example result — edit the figures to make it yours

2^3 × 3^2 × 5

Prime factorization of 360

Every integer above 1 factors into primes in exactly one way (the fundamental theorem of arithmetic). The headline figure is the count of distinct prime factors.

Distinct prime factors3
Total prime factors (with multiplicity)6
Is prime?No

What this calculator does

The prime factorization of an integer — every prime, with its exponent — by trial division up to the square root. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

The fundamental theorem of arithmetic: one prime factorization per integer

All inputs are whole numbers; the tools use exact integer arithmetic.

Factorisations are found by trial division up to the square root, which is exact for the sizes accepted here.

The Euclidean algorithm replaces the larger number by the remainder until it reaches zero.

Worked example

With the example inputs this page opens with (integer n 360), the result is 2^3 × 3^2 × 5 — prime factorization of 360. Every integer above 1 factors into primes in exactly one way (the fundamental theorem of arithmetic). The headline figure is the count of distinct prime factors.

Quick reference

Quick reference — varying integer n
Integer nPrime factorization of 360
1802^2 × 3^2 × 5
2882^5 × 3^2
3602^3 × 3^2 × 5
4502 × 3^2 × 5^2
5402^2 × 3^3 × 5
7202^4 × 3^2 × 5

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Factor Calculator work?

The prime factorization of an integer — every prime, with its exponent — by trial division up to the square root. Integer n → Prime factorization. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Factor Calculator need?

Integer n → Prime factorization. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Factor Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.