Skip to content

Factor tree

Type a number and the tree splits it into factor pairs until every branch ends in a prime. Switch to the worksheet for new numbers to factor, with or without boxes.

  • Free, no sign-up
  • Runs in your browser
  • Printable PDF

Tree

Make

72 = 2 × 2 × 2 × 3 × 3 = 2³ × 3².

Page

Orientation

Preview

How to

How to make a factor tree

Type any whole number up to 99999 and the factor tree is drawn for you: each number splits into a factor pair, the branches keep going until they reach primes, and the primes are circled. The prime factorization is written underneath, in expanded and exponent form. Switch to Worksheet for numbers to factor by hand, with an answer key.

  1. Type a number. Or several, separated by commas, to fit up to 12 trees on one page.
  2. Choose the first split. Closest pair gives a short, wide tree; smallest prime first gives a ladder.
  3. Read the answer. Multiply the circled primes and you get the number back.
  4. Print it. Download the PDF, or make a worksheet and print the key with Show answers on.

Open trees or boxes

Open trees give students only the number and two branches to start. Boxes draw the shape of the finished tree, with a square for each composite factor and a circle for each prime, which helps students who are new to factor trees.

Start with an easy pair

Even numbers split by 2, numbers ending in 0 or 5 split by 5, and if the digits add up to a multiple of 3, so does the number.

Related tools

Check which numbers are prime on the prime number chart, list every factor with the factors chart, or practice the facts behind each split with division worksheets.

Questions people ask

What is the factor tree of 72?

Split 72 into 8 × 9, then 8 into 2 × 4 and 4 into 2 × 2, and 9 into 3 × 3. The branches end in 2, 2, 2, 3 and 3, so 72 = 2 × 2 × 2 × 3 × 3, or 2³ × 3² in exponent form. Starting with 2 × 36 gives a different tree with the same primes.

What is the factor tree of 36?

Split 36 into 6 × 6, then each 6 into 2 × 3. The four branches end in the primes 2, 3, 2 and 3, so 36 = 2 × 2 × 3 × 3 = 2² × 3². Because 36 is a perfect square, every prime appears an even number of times.

What is a prime factor tree?

It is a diagram that breaks a number into factor pairs, branch by branch, until every branch ends in a prime number. The circled primes at the ends multiply back to the starting number and together make its prime factorization. A prime number has no tree, because its only factors are 1 and itself.

Does it matter which factors you split first?

No. Any first split gives the same primes at the end, only the shape of the tree changes. This is the fundamental theorem of arithmetic: every whole number above 1 has exactly one prime factorization. Press the Two trees, one answer preset to see 120 split two different ways.

How do I make a factor tree worksheet?

Choose Worksheet, set the range of numbers and how many prime factors each should have, then pick open trees or trees with boxes to fill. Download the PDF, turn on Show answers and download again for the answer key. New set picks fresh numbers with the same settings.

Gallery

Made with graphsmith

Real SVG exports from the template sets. Open one and it lands in the tool with its data filled in, ready to edit.