Prime Factorization Calculator — Factor Tree & Divisors

Decompose any number into its prime factors with an interactive factor tree, exponent notation, divisor count, sum of divisors, Euler's totient, composition bar, and full divisor table.

Prime Factorization
2^3 × 3^2 × 5
360 = 2^3 × 3^2 × 5
Number of Prime Factors
6
6 prime factors (with multiplicity): 2 × 2 × 2 × 3 × 3 × 5
Distinct Primes
3
Unique primes: 2, 3, 5
Number of Divisors
24
τ(360) = (3+1)×(2+1)×(1+1) = 24
Sum of Divisors
1,170
σ(360) = 1,170
Euler's Totient
96
φ(360) = 96 — count of integers 1…360 coprime to 360
Prime?
No
360 is composite
Largest Prime Factor
5
The largest prime dividing 360

Prime Factor Composition

2
2
2
3
3
5
2^33^25

Factor Tree

360
2
180
2
90
2
45
3
15
3
5

Circled numbers are prime — the leaves of the tree. 360 = 2 × 2 × 2 × 3 × 3 × 5

Exponent Summary & Formulas
Prime (p)Exponent (e)pᵉ(pᵉ⁺¹−1)/(p−1)
23815
32913
5156

τ(n) = (3+1) × (2+1) × (1+1) = 24  |  σ(n) = (2^4-1)/1 × (3^3-1)/2 × (5^2-1)/4 = 1,170  |  φ(n) = 96

Planning notes, formulas, and examples

About the Prime Factorization Calculator — Factor Tree & Divisors

The **Prime Factorization Calculator** breaks any positive integer into its unique product of prime numbers — the fundamental theorem of arithmetic guarantees that every integer greater than 1 has exactly one such decomposition (up to order). This calculator shows the result in compact exponent form, expands it into the full multiplication, and visualizes the process with a classic factor tree.

Beyond the factorization itself, the calculator derives several important number-theoretic quantities. The **number of divisors** τ(n) is computed from the exponents — just multiply each (exponent + 1) together. The **sum of divisors** σ(n) uses a well-known formula involving geometric series. **Euler's totient** φ(n) counts how many integers from 1 to n are coprime to n, a key concept in modular arithmetic and RSA encryption.

A colorful **composition bar** breaks the number visually into its prime parts, proportioned by logarithm so you can see relative prime weight at a glance. Toggle to the **divisor table** view to see every divisor with its quotient and primality status, sortable ascending or descending. Preset buttons load interesting numbers: powers of 2, highly composite numbers like 5040, and palindromic numbers like 9999. An expandable exponent summary connects each formula back to the prime factorization. Whether you are verifying homework, exploring number theory, or prepping for a math competition, this calculator lays bare the fundamental structure of any number.

When This Page Helps

This calculator is valuable when you need more than the final list of prime factors. It breaks a number into exponent form, expanded multiplication, and a factor tree, then uses that factorization to derive divisor count, divisor sum, Euler's totient, and the full divisor list. That makes it useful for homework, contest math, cryptography concepts, and checking number theory identities from one screen.

The supporting views are especially helpful for interpretation. The composition bar makes the prime structure visual, the factor tree shows how a composite number splits step by step, and the divisor table turns the abstract factorization into concrete factors you can inspect. It is a strong reference tool when you want to understand how a number is built, not just state its prime decomposition.

How to Use the Inputs

  1. Enter the positive integer you want to factor.
  2. Choose whether you want to focus on the factor tree, exponent form, or divisor table first.
  3. Use a preset such as "12" or "60" if you want to confirm the factoring workflow before entering your own value.
  4. Read the prime-factor exponent form first, then compare it with the expanded multiplication and factor tree.
  5. Check the divisor count, divisor sum, and totient cards to see what the factorization implies.
  6. Use the divisor table when you want to inspect all factors directly instead of only the prime factors.
  7. Switch the divisor sort order if you want to compare small and large divisors side by side.
Formula used
n = p₁^e₁ × p₂^e₂ × … × pₖ^eₖ (unique). τ(n) = ∏(eᵢ+1). σ(n) = ∏(pᵢ^(eᵢ+1)−1)/(pᵢ−1). φ(n) = n × ∏(1 − 1/pᵢ).

Example Calculation

Result: 12 factors as 2² × 3.

Divide 12 by the smallest prime repeatedly: 12 = 2 × 6 and 6 = 2 × 3. The prime factors are therefore 2, 2, and 3, which combine into 2² × 3.

Tips & Best Practices

  • Start with the smallest prime factors first, usually 2, then 3, 5, 7, and so on.
  • A number with only one prime factor in its decomposition is a prime power, such as 16 = 2⁴.
  • The exponents in the factorization immediately determine divisor-count and divisor-sum formulas.
  • Use the divisor table to sanity-check a factorization if you suspect a missed prime factor.

Why Prime Factorization Matters

Prime factorization gives the most basic multiplicative description of a whole number. Once a number is written as a product of primes, many other properties become easier to compute. You can count divisors, add divisors, identify the largest prime factor, and test how the number behaves in modular arithmetic.

This calculator packages those relationships together, so the factorization becomes the starting point for broader analysis instead of the end of the problem.

From Exponents To Number-Theory Functions

If a number has prime factorization $p_1^{e_1} p_2^{e_2} cdots p_k^{e_k}$, then the number of divisors is found by multiplying $(e_i + 1)$ across all primes. The divisor-sum function uses a geometric-series expression for each prime power, and Euler's totient removes the proportion associated with each distinct prime factor.

The exponent summary table in this calculator helps connect each of those formulas directly to the actual factorization. That is useful when learning why the formulas work, not just memorizing them.

Factor Trees, Divisors, And Visual Structure

Different learners benefit from different views of the same number. The factor tree shows how the number can be split repeatedly into smaller factors until only primes remain. The divisor table shows every positive divisor and highlights which divisors are themselves prime. The composition bar gives a quick visual sense of how much of the number's structure comes from small or large prime factors.

Using these views together makes it easier to move between procedural factoring, symbolic formulas, and concrete divisor checks.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Prime factorization breaks a number into a product of prime numbers. For example, 60 = 2² × 3 × 5. Every integer greater than 1 has a unique prime factorization (Fundamental Theorem of Arithmetic), up to the order of the factors.