Modulo Calculator - Calculate Remainder & Mod Operations Online

Result:

17 mod 5 = 2

Quotient: 3

Formula: 17 = 5 ร— 3 + 2

How Modulo Operation Works

1

Input Numbers

Enter dividend and divisor

2

Divide

Perform integer division

3

Find Remainder

Calculate what's left over

a mod b = r
Where r is remainder

Modulo Formulas & Calculations

Basic Formula

a mod b = a - b ร— โŒŠa/bโŒ‹

Where โŒŠโŒ‹ is floor function

Example: 17 mod 5 = 17 - 5 ร— โŒŠ17/5โŒ‹ = 17 - 5 ร— 3 = 2

Division Algorithm

a = bq + r

Where q is quotient, r is remainder

Example: 17 = 5 ร— 3 + 2

Negative Numbers

(-a) mod b = b - (a mod b)

For negative dividends

Example: (-17) mod 5 = 5 - (17 mod 5) = 5 - 2 = 3

Properties

(a + b) mod n = ((a mod n) + (b mod n)) mod n

Modular addition property

Example: (15 + 8) mod 7 = ((15 mod 7) + (8 mod 7)) mod 7

Modulo Calculation Table

Dividend (a)Divisor (b)Quotient (q)Remainder (r)Verification
1033110 = 3 ร— 3 + 1
1543315 = 4 ร— 3 + 3
2063220 = 6 ร— 3 + 2
2573425 = 7 ร— 3 + 4
3083630 = 8 ร— 3 + 6
3593835 = 9 ร— 3 + 8
40113740 = 11 ร— 3 + 7
45123945 = 12 ร— 3 + 9
501331150 = 13 ร— 3 + 11
551431355 = 14 ร— 3 + 13
601631260 = 16 ร— 3 + 12
651731465 = 17 ร— 3 + 14
701831670 = 18 ร— 3 + 16
751931875 = 19 ร— 3 + 18
802131780 = 21 ร— 3 + 17

Modulo Operations Progression Chart

10 mod 3

Quotient:3
Remainder:1

15 mod 4

Quotient:3
Remainder:3

20 mod 6

Quotient:3
Remainder:2

25 mod 7

Quotient:3
Remainder:4

30 mod 8

Quotient:3
Remainder:6

35 mod 9

Quotient:3
Remainder:8

Practice Problems

Problem 1:

Calculate 23 mod 7

Solution: 23 รท 7 = 3 remainder 2, so 23 mod 7 = 2

Problem 2:

Calculate 100 mod 13

Solution: 100 รท 13 = 7 remainder 9, so 100 mod 13 = 9

Problem 3:

Calculate 45 mod 8

Solution: 45 รท 8 = 5 remainder 5, so 45 mod 8 = 5

Problem 4:

Calculate 128 mod 15

Solution: 128 รท 15 = 8 remainder 8, so 128 mod 15 = 8

Problem 5:

Calculate 200 mod 17

Solution: 200 รท 17 = 11 remainder 13, so 200 mod 17 = 13

Daily Uses of Modulo Operations

Clock arithmetic uses mod 12 for hours and mod 60 for minutes

Computer graphics use modulo for wrapping textures and animations

Hash tables use modulo to distribute data across buckets

Cryptography relies on modular arithmetic for secure encryption

Calendar calculations use modulo to determine day of week

Export Options

Quick Reference

๐Ÿ“1 meter
3.28 feet
โš–๏ธ1 kilogram
2.2 pounds
๐ŸŒก๏ธ0ยฐC
32ยฐF
๐Ÿฅค1 liter
0.26 gallon