Modular Arithmetic Calculator
Perform modular addition, multiplication, and exponentiation. Calculate (a op b) mod m with equivalence classes.
Inputs
Results
Result
9
How to Use This Calculator
- Enter a, b, and Modulus (m).
- Set Operation, Addition (a + b) mod m, and Multiplication (a * b) mod m.
- Adjust Power (a^b) mod m as needed.
- Review the Result result.
- Use Expression and Equivalence Class to inform your decision.
What each input means
- a
- First operand
- b
- Second operand
- Modulus (m)
- The modulus value
- Operation
- Modular operation to perform
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersa = 17, b = 5, Modulus (m) = 13, Operation = 1 = 4 input(s) provided
- Calculate Result9 = 9
- Calculate Equivalence ClassEquivalence Class{..., -17, -4, 9, 22, 35, ...} = {..., -17, -4, 9, 22, 35, ...}
Engine last updated . Checked against 6 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Chinese Remainder Theorem Calculator
Solve systems of congruences using the Chinese Remainder Theorem. Find x such that x ≡ r1 (mod m1) and x ≡ r2 (mod m2).
Number TheoryEuler's Totient Calculator
Calculate Euler's totient function phi(n) — the count of integers from 1 to n that are coprime to n.
DivingNitrox Blend Calculator
Calculate Maximum Operating Depth (MOD), Equivalent Air Depth (EAD), best mix, and oxygen toxicity limits for Nitrox/EANx diving.
Number TheoryContinued Fraction Calculator
Convert a fraction to its continued fraction representation. Shows coefficients, convergents, and approximation error.
More in Math & Statistics.