Euler's Totient Function from Prime Factorisation Calculator
φ(n) = n · ∏ (1 − 1/pᵢ) over the distinct prime factors.
Compute Euler's totient φ(n) — the count of integers in 1..n coprime to n — directly from the prime factorisation. Enter up to 4 distinct primes pᵢ and their exponents aᵢ; the calculator forms n = ∏ pᵢ^aᵢ and applies φ(n) = n · ∏ (1 − 1/pᵢ). Set an exponent to 0 to skip that prime.
How to use this calculator
- Fill in the inputs above using the units you already have.
- Values update automatically as you type — no submit button needed.
- Hover any result row for the underlying formula and intermediate values.
Formula
φ(n) = n · ∏ (1 − 1/pᵢ).
In depth
Compute Euler's totient φ(n) — the count of integers in 1..n coprime to n — directly from the prime factorisation. Enter up to 4 distinct primes pᵢ and their exponents aᵢ; the calculator forms n = ∏ pᵢ^aᵢ and applies φ(n) = n · ∏ (1 − 1/pᵢ). Set an exponent to 0 to skip that prime.
Spot an issue or have a suggestion?
Our editors read every message. If the math looks off, tell us the inputs you used and what you expected.