Modulo Calculator
Find a mod n (the remainder), with both floor and truncated conventions.
Find a mod n (the remainder), with both floor and truncated conventions.
Results
Enter your details and click Calculate to see your results.
About This Calculator
a mod n = a − n⌊a/n⌋.
Example
Example: the default inputs → Result: 17 mod 5 = 2.
Assumptions
Exact formulas; results rounded for display.
Frequently Asked Questions
What is 17 mod 5?
2.
What is −7 mod 3?
2 (floor convention); −1 with truncation.
Related Calculators
About the Author

Imran Hossain
Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile