Modular arithmetic

This modulo calculator performs arithmetic operations modulo p over a given math expression.

This page exists due to the efforts of the following people:




Created: 2019-07-24 19:54:37, Last updated: 2021-10-27 15:37:45
Creative Commons Attribution/Share-Alike License 3.0 (Unported)

This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work Also, please do not modify any references to the original work (if any) contained in this content.

While you still can simply enter an integer number to calculate its remainder of Euclidean division by a given modulus, this modulo calculator can do much more. You may also enter the math expression containing other integers and the following modular arithmetic operations:
+ addition modulo p
- subtraction modulo p
* multiplication modulo p
/ division modulo p (available for all numbers if the modulus is a prime number only)
^ exponentiation modulo p
() brackets for math expression grouping

All operations will be carried out taking a modulus into account. Even more - if you click "show details" options, you will see a solution step by step - with the result of each modular arithmetic operation used in the math expression.

By the way, did you know that modular arithmetic is sometimes called clock arithmetic? This is because like a clock resets itself to zero at midnight, the number resets itself each time the modulus, or mod is reached, so it wraps around a modulus.

PLANETCALC, Modulo calculator

Modulo calculator

Symmetric representation
The file is very large. Browser slowdown may occur during loading and creation.

URL copied to clipboard
PLANETCALC, Modular arithmetic