Prime Factorization Calculator
Express a positive integer as a product of prime factors, with the trial-division steps and a check that the factors multiply back to the original number.
Calculator InputsFormula v1.0
Repeatedly divide by prime factors until the remaining quotient is 1
Prime factorization
Formula and method
Repeatedly divide by prime factors until the remaining quotient is 1Accepts positive integers up to one billion to keep calculation time bounded.
Variables
- value
- Positive integer
Worked example
360 = 2³ × 3² × 5.
Who this calculator is for
Students, teachers, and people simplifying number-theory problems.
Complete guide to the prime factorization calculator
Every figure below comes from this calculator itself. The method is Repeatedly divide by prime factors until the remaining quotient is 1, applied to the tool's default inputs and then stress-tested one input at a time.
What the Prime Factorization Calculator works out
Prime Factorization Calculator answers one specific question: Express a positive integer as a product of prime factors, with the trial-division steps and a check that the factors multiply back to the original number. It is written for students, teachers, and people simplifying number-theory problems.
The method is Repeatedly divide by prime factors until the remaining quotient is 1. The inputs are Positive integer. With the default values - Positive integer = 360 - the result is Prime factorization: 2^3 × 3^2 × 5. Raising Positive integer from 360 to 396.00 moves the headline result from 2^3 × 3^2 × 5 to 2^2 × 3^2 × 11.
Working through the reported figures
Alongside 2^3 × 3^2 × 5 this method reports 2 supporting quantities: Prime factors (with repetition): 2, 2, 2, 3, 3, 5; Input integer: 360. Taken together they show which input moved the answer and by how much.
The worked example is: 360 = 2³ × 3² × 5. Use it to confirm the direction of the calculation before entering your own figures, and keep intermediate values unrounded until the final step.
How to interpret the answer
Accepts positive integers up to one billion to keep calculation time bounded.
Read it as one scenario: 2^3 × 3^2 × 5 with prime factors (with repetition) at 2, 2, 2, 3, 3, 5 holds only for the inputs shown. Change whichever input you are genuinely unsure about and read the pair of figures together.
Work the relationship both ways: start from the inputs, arrive at 2^3 × 3^2 × 5, then ask what input value would be needed to produce a target you already have in mind.
Common mistakes to avoid
Stopping the division loop too early when the remaining quotient is itself prime. Entering zero, negatives or decimals, which have no unique prime factorisation.
Before relying on the figure, re-read Positive integer and confirm each entry matches its label, including whether a quantity is entered in the unit the label names. Adjust Positive integer on its own and watch whether the result behaves as the method says it should - here 2^3 × 3^2 × 5 should shift smoothly rather than jump.
Limitations and responsible use
Accepts positive integers up to one billion so the trial division stays fast in the browser. Returns one valid factorisation; it does not list every divisor or test primality beyond the entered value.
Read the figures above as conditional on those limits rather than as a guarantee. CalculatorFlash shows the formula, the substitution and the units so the arithmetic can be checked by hand, but it cannot verify that the inputs describe your real circumstances. For a consequential decision, check the current figure against a primary source, since published values are revised.
Frequently asked questions
What is the prime factorisation of 360?
360 = 2³ × 3² × 5. Checking the product, 8 × 9 × 5 = 360, and every factor shown is prime.
Why does prime factorisation help with fractions?
Common factors become visible immediately. For 360/540 the shared 2² × 3² × 5 cancels, leaving 2/3 without guessing.
Related Mathematics Calculators
Explore another calculator in this subject.
Scientific Calculator – Free Online Calculator With Trig, Logs & Memory
A full scientific calculator with DEG/RAD trigonometry, inverse and hyperbolic functions, powers, roots, logarithms, factorials, percentages, constants, memory registers, Ans recall and a running calculation tape.
Basic Calculator – Free Online Four-Function Calculator
Add, subtract, multiply, divide, and take percentages with a clean four-function calculator that also reports the running expression and a transparent result breakdown.
Random Number and Password Generator
Generate cryptographically strong random integers in a range, unique lottery-style picks, or secure passwords with configurable length and character classes.