Euler's Totient Function Calculator
Compute Euler's totient φ(n) for any integer
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
Euler's totient φ(n) counts how many integers from 1 to n share no common factor with n, and is computed from n's prime factorization as φ(n) = n × ∏(1 − 1/p) over each distinct prime p dividing n. For a prime p itself, φ(p) = p − 1 since every smaller positive integer is automatically coprime to it.
The totient function is the mathematical engine behind RSA encryption: key generation multiplies two large primes p and q to get n = pq, then uses φ(n) = (p−1)(q−1) to compute a valid public/private exponent pair. It also underlies Euler's theorem in number theory, used to find modular inverses and reduce large exponents in cryptographic and competitive-programming calculations.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)