Skip to content
OneKitly

Euler's totient calculator φ(n)

Compute Euler's totient φ(n) — the count of integers from 1 to n that are coprime to n (share no factor but 1). It factorises n into primes and applies φ(n) = n·∏(1−1/p) over its distinct prime factors, showing the factorization, the formula and the number of coprimes. φ underlies RSA, Euler's theorem and the order of the multiplicative group mod n.

e Digits Calculator (Euler's Number)Compute up to 1,000 decimals of Euler's number e from the series Σ 1/k!, with digit frequencies, a digit search and the 1828 1828 trap explained.Euler characteristic calculator (V − E + F)For a polyhedron or a triangulated surface, χ = V − E + F. A convex polyhedron gives χ = 2; the genus g = (2 − χ)/2 tells you how many handles the surface has (0 = sphere, 1 = torus).Prime factorization calculatorBreak a whole number down into the product of its prime factors.Euler's Method CalculatorSteps through Euler's method one row at a time and — the whole point of the method — shows how far it drifts from the exact solution. Give the exact y(x) and the error column appears; halve the step and watch the error halve with it.Find minimum and maximumPaste a list of numbers and get the smallest, the largest, the range between them, and how many values there are. Handles negatives and decimals.Gacha pity calculatorHow many pulls until the guaranteed 5★ in a gacha game like Genshin or Star Rail, accounting for the soft-pity ramp. Enter your current pity count and it works out the pulls left to soft pity, the hard-pity guarantee, and the average pulls you can expect before the next drop.Sum calculatorAdd up a list of numbers and get the total, count and average.Sum of positive integers calculatorThe sum of all whole numbers from n₁ to n₂ in one step — Gauss's trick, n₂(n₂+1)/2 − (n₁−1)n₁/2, instead of adding them one by one. From 1 to 100 is the classic 5050; works for any range and any size.

The Euler's totient calculator φ(n) turns n (positive integer) into φ(n), Count of coprimes in 1…n, Prime factorization of n, instantly and for free. For instance, with n (positive integer) = 36 it returns φ(n) = 12, Count of coprimes in 1…n = 12 and Prime factorization of n = 2² × 3².

How to use it

  1. Enter your values: n (positive integer).
  2. Read the result instantly: φ(n), Count of coprimes in 1…n, Prime factorization of n.

Frequently asked questions

How does the Euler's totient calculator φ(n) work?

It takes n (positive integer) and derives φ(n), Count of coprimes in 1…n and Prime factorization of n from them. The calculation is live as you type, so the result updates on every change.

Which values does the calculator ask for?

A single value: n (positive integer). Nothing else is required — no account, no file upload.

What does a typical calculation look like?

With n (positive integer) = 36, the calculator returns φ(n) = 12, Count of coprimes in 1…n = 12 and Prime factorization of n = 2² × 3². Those figures come from running this exact tool, so you can reproduce them by entering the same values.

How much does the result change with different inputs?

It moves a lot. Using n (positive integer) = 72 instead, φ(n) goes from 12 to 24 — which is why it is worth testing a few scenarios rather than trusting a single figure.

What does it give for smaller values?

Scaled down to n (positive integer) = 18, φ(n) comes out at 6. The relationship is worth checking at both ends before you rely on a single result.

When would I actually use this?

Reading a number written another way: a Roman numeral on a monument, a hexadecimal colour, a binary byte, or a fraction that needs reducing.

What is the most common mistake?

Assuming a decimal fraction survives a change of base. A tenth is exact in decimal and infinitely repeating in binary, which is why 0.1 + 0.2 is not 0.3 in most programming languages.

What is the difference between the Euler's totient calculator φ(n) and the e Digits Calculator (Euler's Number)?

This one returns φ(n) and Count of coprimes in 1…n; the e Digits Calculator (Euler's Number) returns Result. That is the whole difference — open the one whose figure you need.

Is there a tool for the next step?

Euler characteristic calculator (V − E + F) is the closest one after this: For a polyhedron or a triangulated surface, χ = V − E + F. A convex polyhedron gives χ = 2; the genus g = (2 − χ)/2 tells you how many handles the surface has (0 = sphere, 1 = torus).

What else is worth having open alongside it?

Prime factorization calculator and Euler's Method Calculator — they come up in the same task often enough to be worth a second tab.

Further reading

All guides