Prime factorisation calculator with a factor tree
Free TutorAura tool · no sign-up · Updated
Enter a whole number to write it as a product of prime factors, in index form (like ), and see its factor tree drawn branch by branch. Prime factorisation is the starting point for HCF, LCM, simplifying fractions and square roots, and it comes up in GCSE, IGCSE and middle-school maths.
How a factor tree works
- Split the number into two factors, for example .
- Circle any factor that is prime (2). Keep splitting the others: , , , .
- Stop when every branch ends in a prime.
- Multiply the circled primes together, grouping repeats as powers: .
The calculator always splits off the smallest prime first, which gives a neat tree, but any first split gives the same primes in the end. That's the fundamental theorem of arithmetic: every whole number above 1 has exactly one prime factorisation.
Index form
Repeated primes are written as powers: . Exams usually ask for the answer "as a product of prime factors in index form", so , not , unless the question says otherwise.
What prime factors are used for
| Task | How prime factors help |
|---|---|
| HCF and LCM | Compare the powers of each prime (HCF, LCM) |
| Square numbers | Every power is even: |
| Square roots | Halve the powers: |
| Cube numbers | Every power is a multiple of 3 |
For more, see our guide to factor trees and the prime factorisation topic guide.
Common mistakes
- Circling a number that isn't prime, such as 9 or 15. Keep splitting until every end is prime.
- Treating 1 as prime. It isn't, and it never appears in a factor tree's answer.
- Forgetting a branch when multiplying the primes back together. Check by multiplying out: you should get the original number.
Using prime factors to spot squares and cubes
A number is a perfect square when every power in its prime factorisation is even: , so . It's a perfect cube when every power is a multiple of 3: .
This gives a neat exam technique. To find the smallest number to multiply 72 by to make a square, write . The power of 2 is odd, so multiply by one more 2: .
Frequently asked questions
What is the prime factorisation of 360?
360 = 2³ × 3² × 5.
Is 1 a prime number?
No. A prime has exactly two factors, 1 and itself; 1 has only one factor.
Does it matter how I start the factor tree?
No. Any first split leads to the same prime factors, because every whole number has only one prime factorisation.
Sources
- National curriculum in England: mathematics programmes of study. Department for Education.
- Common Core State Standards for Mathematics. Common Core State Standards Initiative.
Keep reading
Factor trees: how to find prime factors step by step
How to draw a factor tree, write the answer in index form, and use it for HCF, LCM and roots.
Prime factorisation, HCF and LCM
Write a number as a product of primes with a factor tree, then use it to find the highest common factor and lowest common multiple.
HCF and GCF calculator with steps (highest common factor)
Highest common factor (greatest common factor) of 2 to 10 numbers, with prime factors and a Venn diagram.
LCM calculator with steps (lowest common multiple)
Lowest common multiple of 2 to 10 numbers, with prime factors, a Venn diagram and every step.