Modular Addition Calculator
Enter two numbers and a modulus to compute (a + b) mod m.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
Modular addition computes (a + b) mod m — the remainder left after dividing the ordinary sum a + b by the modulus m — and always returns a normalized result in the range 0 to m−1, no matter how large or negative a and b are. It follows the familiar rule of "wrapping around" once the sum reaches m, exactly like a clock face wraps from 12 back to 1.
This operation is the basis of modular arithmetic, taught alongside congruences in number theory, and it underlies practical systems from clock and calendar arithmetic to cyclic redundancy checks, hash table indexing, and cryptographic algorithms such as RSA and elliptic-curve schemes, where all arithmetic is deliberately confined to a fixed modulus.
Enter any two integers and a positive modulus m to get the normalized sum (a + b) mod m, computed directly from the definition.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)