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.
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
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
| Integer n | Prime factorization of 360 |
|---|---|
| 180 | 2^2 × 3^2 × 5 |
| 288 | 2^5 × 3^2 |
| 360 | 2^3 × 3^2 × 5 |
| 450 | 2 × 3^2 × 5^2 |
| 540 | 2^2 × 3^3 × 5 |
| 720 | 2^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.