Modular Arithmetic
Calculate Modular Arithmetic instantly with the exact formula and a worked example. Free online calculator — no signup, works on mobile.
Modular Arithmetic
a
b
a mod b
2
More about: Modular Arithmetic
What it calculates
The “Modular Arithmetic” calculator computes a mod b from 2 parameters: a, b.
A core calculation for studying, engineering tasks, and checking solutions.
Example calculation
With parameters a = 17, b = 5 the result is 2.
How to use
- Enter the parameter values — every field above is adjustable with a slider.
- The result and related metrics are calculated automatically as you type.
- Use the additional metrics shown (if any) where needed.
- Copy the result or bookmark the page.