Euler's Totient Function Calculator φ(n)
Calculate Euler's totient φ(n) — how many numbers up to n are coprime to n — from its prime factorisation.
Calculate Euler's totient φ(n) — how many numbers up to n are coprime to n — from its prime factorisation.
Results
Enter your details and click Calculate to see your results.
About This Calculator
φ(n) = n·Π(1 − 1/p) over the distinct primes p dividing n; φ(p) = p − 1 for a prime p. Euler's theorem: a^φ(n) ≡ 1 (mod n) when gcd(a, n) = 1.
Example
Example: φ(36) = 12.
Assumptions
Whole numbers up to 10¹⁵.
Frequently Asked Questions
Where is φ used?
RSA key generation and modular arithmetic.
Related Calculators
About the Author

Imran Hossain
Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile