Zero Signup ToolsFree browser tools

Calculator Tools

Factor Tree Generator

Build a factor tree for any whole number. See the visual tree, prime factorization in exponent form, expanded form, step-by-step splits, and divisors.

Type any whole number from 2 up to 15 digits. Underscores, spaces, and commas inside the number are ignored (1,000 or 1_000 both work).

Try:

Prime factorization

60 written as a product of primes.

22x3x5

Expanded form

Every prime factor multiplied out in order.

2 * 2 * 3 * 5

Factor tree

Each composite node (gray) splits into its smallest prime factor on the left and the remaining cofactor on the right. Green leaves are the prime factors of 60.

6023021535

Step by step

The same split shown in the tree, written one row per step. Pull out the smallest prime, divide, and repeat on the cofactor.

  1. 60=2x30
  2. 30=2x15
  3. 15=3x5both prime

Distinct primes

3

Different prime numbers in the factorization.

Total prime factors

4

Counted with multiplicity (Big Omega).

Number of divisors

12

Every whole number that divides it evenly.

Sum of divisors

168

Sigma function: 1 + ... + n itself.

All divisors

Every whole number that divides 60 evenly, sorted from smallest to largest.

123456101215203060

Plain-text summary

Number: 60
Prime factorization: 2^2 * 3 * 5
Expanded: 2 * 2 * 3 * 5
Distinct prime factors: 3
Total prime factors (with multiplicity): 4
Number of divisors: 12
Sum of divisors: 168

Factor tree:
60
|-- 2 (prime)
`-- 30
    |-- 2 (prime)
    `-- 15
        |-- 3 (prime)
        `-- 5 (prime)

How to use

  1. Type any whole number from 2 up to 15 digits into the input. Commas, spaces, and underscores inside the number are ignored.
  2. Tap a preset chip (12, 24, 36, 48, 60, 72, 96, 100, 120, 144, 360, 1024, 9973) to load a classic textbook example.
  3. Read the prime factorization in exponent form and the expanded multiplication in the headline cards. Use the Copy buttons to grab either result.
  4. Scroll the factor tree to see the visual diagram, with prime leaves shown in green and composites in gray. Tap Copy as text to grab an ASCII version for chat or notes.
  5. Follow the numbered Step by step list to see each split written out: composite equals smallest prime times cofactor.
  6. Check the stat cards for distinct prime count, total prime factors with multiplicity, divisor count, and divisor sum, then scan the full divisor chip list.
  7. Tap Copy summary to grab a complete plain-text report (factorization, tree, stats) in one go.

About this tool

Factor Tree Generator turns any whole number from 2 up to 15 digits into the classic branching factor tree taught in elementary and middle-school math. At each composite node the tool pulls out the smallest prime factor on the left branch and the remaining cofactor on the right branch, then recurses on the cofactor until every leaf is a prime. The output panel shows the visual tree drawn as an SVG (composites in gray, prime leaves highlighted in green), the prime factorization in exponent form with real superscripts (so 360 reads as 2 to the 3rd times 3 to the 2nd times 5), the expanded multiplication form (2 times 2 times 2 times 3 times 3 times 5), and a numbered step list mirroring the splits in the tree. Four stat cards report the count of distinct prime factors, the total prime factor count with multiplicity (Big Omega), the number of divisors (the tau function), and the sum of all divisors (the sigma function), with the full sorted divisor list shown as chips. A plain-text summary, an ASCII version of the tree for chat and notes, and copy buttons on every result make it easy to paste working into a homework document. Useful for students learning prime factorization, parents helping with homework, teachers building worked examples, and anyone who wants to double-check the factorization of a specific number. All arithmetic uses BigInt so the math is exact at every digit, and everything runs locally in your browser: the number you type is never uploaded.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsCalculator Tools