Skip to main content
Calcimator

Euler's Totient Calculator

Calculate Euler's totient function phi(n) — the count of integers from 1 to n that are coprime to n.

Inputs

Results

phi(n)

4

Coprime Count4
phi(n)/n Ratio0.3333
How to Use This Calculator
  1. Enter n.
  2. Review the phi(n) result.
  3. Use Coprime Count and phi(n)/n Ratio to inform your decision.
  4. Use the chart to visualize the results and explore different scenarios by adjusting inputs.

How the result changes with n

nphi(n)
100,00190,900
350,001223,776
650,000240,000
900,000240,000

What each input means

n
Positive integer to compute phi(n) for

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    n = 12 = 1 input(s) provided
  2. Calculate phi
    phi
    4 = 4
  3. Calculate Coprime Count
    Coprime Count
    4 = 4

Engine last updated . Checked against 4 independently-derived tests how we verify calculators.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Math & Statistics.