🧮 Modulo Calculator
Shows both the mathematical modulo (always non-negative) and the truncated remainder used by many languages.
Also known as: Mod Calculator · Remainder Calculator · Calculator With Remainders · Calculator With Remainder
Loading calculator…
How to use the Modulo Calculator
- Enter your values in the fields above — the defaults show a worked example.
- The result updates instantly as you type; change any input to compare scenarios.
- Copy or share the result, or open a related calculator below.
How it's calculated
a mod n = a − n × ⌊a ÷ n⌋.
Frequently asked questions
Is the Modulo Calculator free?
How accurate is the Modulo Calculator?
Can I use the Modulo Calculator on my phone or offline?
Read more about the Modulo Calculator
When to use the Modulo Calculator
Use the Modulo Calculator for a mod n — remainder of division, including negative numbers. It is one of 72 free math calculators, and pairs well with the Long Division Calculator, Percentage Calculator, Scientific Calculator and Online Calculator.
Tips for accurate results
Check that your input uses the expected format (decimals, fractions or one value per line), keep full precision until the final step, and use the worked formula below the result to verify the answer by hand or for homework.
More Math Calculators
- 📈 Percentage Change Calculator
- σ Standard Deviation Calculator
- ✖️ Quadratic Equation Solver
- 🎰 Random Number Generator
- ⬛ Area Calculator
- 💾 Binary / Hex / Octal Converter
- 🔣 Decimal ↔ Fraction Converter
- ⚖️ Ratio Calculator
- √ Square Root & Nth Root Calculator
- 📐 Trigonometry Calculator
- 🧱 GCD / GCF Calculator
- 🔗 LCM Calculator
Popular calculators
Results are estimates for information only. Calculations run privately in your browser.