🧮 Modulo Calculator
Shows both the mathematical modulo (always non-negative) and the truncated remainder used by many languages.
Loading calculator…
How it's calculated
a mod n = a − n × ⌊a ÷ n⌋.
Results are estimates for information only. Calculations run privately in your browser.