Skip to content

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 360=23×32×5360 = 2^3 \times 3^2 \times 5), 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.

Loading the tool

How a factor tree works

  1. Split the number into two factors, for example 360=2×180360 = 2 \times 180.
  2. Circle any factor that is prime (2). Keep splitting the others: 180=2×90180 = 2 \times 90, 90=2×4590 = 2 \times 45, 45=3×1545 = 3 \times 15, 15=3×515 = 3 \times 5.
  3. Stop when every branch ends in a prime.
  4. Multiply the circled primes together, grouping repeats as powers: 23×32×52^3 \times 3^2 \times 5.

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: 2×2×2=232 \times 2 \times 2 = 2^3. Exams usually ask for the answer "as a product of prime factors in index form", so 360=23×32×5360 = 2^3 \times 3^2 \times 5, not 2×2×2×3×3×52 \times 2 \times 2 \times 3 \times 3 \times 5, unless the question says otherwise.

What prime factors are used for

TaskHow prime factors help
HCF and LCMCompare the powers of each prime (HCF, LCM)
Square numbersEvery power is even: 144=24×32144 = 2^4 \times 3^2
Square rootsHalve the powers: 144=22×3=12\sqrt{144} = 2^2 \times 3 = 12
Cube numbersEvery 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: 576=26×32576 = 2^6 \times 3^2, so 576=(23×3)2=242576 = (2^3 \times 3)^2 = 24^2. It's a perfect cube when every power is a multiple of 3: 216=23×33=63216 = 2^3 \times 3^3 = 6^3.

This gives a neat exam technique. To find the smallest number to multiply 72 by to make a square, write 72=23×3272 = 2^3 \times 3^2. The power of 2 is odd, so multiply by one more 2: 72×2=144=12272 \times 2 = 144 = 12^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

  1. National curriculum in England: mathematics programmes of study. Department for Education.
  2. Common Core State Standards for Mathematics. Common Core State Standards Initiative.