means that and differ by a multiple of . Or, if you prefer, that is a multiple of .

In general, means that and differ by a multiple of , or that is a multiple of .

It's explained in detail in the Wikipedia article on "modular equivalence". The symbol itself is pronounced "is equivalent to".

🌐
Reddit
reddit.com › r/math › eli5: whats triple bar (≡) and how it relates to modular arithmetic?
r/math on Reddit: ELI5: Whats triple bar (≡) and how it relates to modular arithmetic?
September 2, 2015 - I don't know the history behind the symbol, but it's used to distinguish "modular equality" or "mod-n equality" from literal equality as numbers (=).

means that and differ by a multiple of . Or, if you prefer, that is a multiple of .

In general, means that and differ by a multiple of , or that is a multiple of .

It's explained in detail in the Wikipedia article on "modular equivalence". The symbol itself is pronounced "is equivalent to".

🌐
Wikipedia
en.wikipedia.org › wiki › Triple_bar
Triple bar - Wikipedia
April 17, 2025 - The triple bar or tribar, ≡, is a symbol with multiple, context-dependent meanings indicating equivalence of two different things. Its main uses are in mathematics and logic. It has the appearance of an equals sign ⟨=⟩ with a third line. ... ≢, ≢) is the same symbol ...
🌐
Wikipedia
en.wikipedia.org › wiki › Modulo
Modulo - Wikipedia
4 days ago - Some calculators have a mod() function button, and many programming languages have a similar function, expressed as mod(a, n), for example. Some also support expressions that use "%", "mod", or "Mod" as a modulo or remainder operator, such as a % n or a mod n. For environments lacking a similar function, any of the three definitions above can be used.
🌐
Oreate AI
oreateai.com › blog › equal-sign-with-three-lines
Equal Sign with Three Lines - Oreate AI Blog
December 4, 2025 - So why do we need to differentiate between these symbols? Because clarity fosters understanding—and understanding empowers us to tackle complex problems with confidence. ... Geometry: When dealing with triangles on paper, if triangle A is congruent to triangle B (A ≡ B), they have identical shape and size even if their positions differ. Algebra: In logical statements such as (x \equiv y \mod n), this means x is equivalent to y under modulo n conditions—not necessarily equal but related through specific rules.
Top answer
1 of 9
226

(This explanation is only for positive numbers since it depends on the language otherwise)

Definition

The modulo operation returns the remainder or signed remainder of a division, after one number is divided by another, the latter being called the modulus of the operation. (source: wikipedia)

For instance, 9 divided by 4 equals 2 but it remains 1. Here, 9 / 4 = 2 and 9 % 4 = 1.

Image source: Wikimedia

In your example: 5 divided by 7 gives 0 but it remains 5 (5 % 7 == 5).

Calculation

The modulo operation can be calculated using this equation:

a % b = a - floor(a / b) * b
  • floor(a / b) represents the number of times you can divide a by b
  • floor(a / b) * b is the amount that was successfully shared entirely
  • The total (a) minus what was shared equals the remainder of the division

Applied to the last example, this gives:

5 % 7 = 5 - floor(5 / 7) * 7 = 5

Modular Arithmetic

That said, your intuition was that it could be -2 and not 5. Actually, in modular arithmetic, -2 = 5 (mod 7) because it exists k in Z such that 7k - 2 = 5.

You may not have learned modular arithmetic, but you have probably used angles and know that -90° is the same as 270° because it is modulo 360. It's similar, it wraps! So take a circle, and say that its perimeter is 7. Then you read where is 5. And if you try with 10, it should be at 3 because 10 % 7 is 3.

2 of 9
37

Two Steps Solution.

Some of the answers here are complicated for me to understand. I will try to add one more answer in an attempt to simplify the way how to look at this.


Short Answer:

Example 1:

7 % 5 = 2

Each person should get one pizza slice.

Divide 7 slices on 5 people and every one of the 5 people will get one pizza slice and we will end up with 2 slices (remaining). 7 % 5 equals 2 is because 7 is larger than 5.


Example 2:

5 % 7 = 5

Each person should get one pizza slice

It gives 5 because 5 is less than 7. So by definition, you cannot divide whole 5items on 7 people. So the division doesn't take place at all and you end up with the same amount you started with which is 5.


Programmatic Answer:

The process is basically to ask two questions:

Example A: (7 % 5)

(Q.1) What number to multiply 5 in order to get 7?

Two Conditions: Multiplier starts from `0`. Output result should not exceed `7`. 

Let's try:

Multiplier is zero 0 so, 0 x 5 = 0

Still, we are short so we add one (+1) to multiplier.

1 so, 1 x 5 = 5

We did not get 7 yet, so we add one (+1).

2 so, 2 x 5 = 10

Now we exceeded 7. So 2 is not the correct multiplier. Let's go back one step (where we used 1) and hold in mind the result which is5. Number 5 is the key here.

(Q.2) How much do we need to add to the 5 (the number we just got from step 1) to get 7?

We deduct the two numbers: 7-5 = 2.

So the answer for: 7 % 5 is 2;


Example B: (5 % 7)

1- What number we use to multiply 7 in order to get 5?

Two Conditions: Multiplier starts from `0`. Output result and should not exceed `5`. 

Let's try:

0 so, 0 x 7 = 0

We did not get 5 yet, let's try a higher number.

1 so, 1 x 7 = 7

Oh no, we exceeded 5, let's get back to the previous step where we used 0 and got the result 0.

2- How much we need to add to 0 (the number we just got from step 1) in order to reach the value of the number on the left 5?

It's clear that the number is 5. 5-0 = 5

   5 % 7 = 5

Hope that helps.

🌐
EITCA Academy
eitca.org › home › what does the triple bar indicate in modular algebra?
What does the triple bar indicate in modular algebra? - EITCA Academy
August 4, 2024 - For example, if we use a shift of 3: – 'A' (the 0th letter) becomes 'D' (the 3rd letter), – 'B' (the 1st letter) becomes 'E' (the 4th letter), – and so on, – 'X' (the 23rd letter) becomes 'A' (the 26th letter modulo 26).
Find elsewhere
🌐
BetterExplained
betterexplained.com › articles › fun-with-modular-arithmetic
Fun With Modular Arithmetic – BetterExplained
See the above link for more rigorous proofs — these are my intuitive pencil lines. Now the fun part — why is modular arithmetic useful? ... We do this intuitively, but it’s nice to give it a name. You have a flight arriving at 3pm. It’s getting delayed 14 hours. What time will it land? Well, 14 ≡ 2 mod 12. So I think of it as “2 hours and an am/pm switch”, so I know it will be “3 + 2 = 5am”. This is a bit more involved than a plain modulo operator, but the principle is the same.
🌐
Quora
quora.com › What-does-an-equal-sign-with-3-lines-mean
What does an equal sign with 3 lines mean? - Quora
Answer (1 of 2): More context fetches better answers. In logic and mathematics, the ≡ symbol can mean: * “is defined as”; for example: “quadrilateral” ≡ “four-sided” * “is identically equal to”; for example, an equality that is true no matter how variables are valuated * ...
🌐
Studocu
studocu.com › richfield graduate institute of technology › mathematics › question
[Solved] What does the 3 horizantally parrallel lines means in Maths Looks - Mathematics (Math 511) - Studocu
April 4, 2025 - For instance: a ≡ b (mod n)means that a and b leave the same remainder when divided by n. This concept is crucial in various fields of mathematics, including cryptography and computer science, where it is used to solve problems involving divisibility and to simplify calculations involving large numbers. The triple bar symbol (≡) ...
🌐
Stanford CS Students
www-cs-students.stanford.edu › ~dalewis › congruent.html
Congruency
Consider an extension on the example above. We already know that 15 3 (mod 4). We can also say that 15 19 (mod 4), since 15 mod 4 gives the same result as 19 mod 4, namely 3. So 15 and 19 are congruent modulo 4 because both give the same remainder when divided by 4.
🌐
Reddit
reddit.com › r/learnmath › can anyone explain the congruence symbol (three lined equal sign) to me?
r/learnmath on Reddit: Can anyone explain the congruence symbol (three lined equal sign) to me?
April 23, 2012 -

I've been trying to learn how to implement a functional quadratic sieve and have no idea where to start, but everything I come across uses the congruence symbol which I can't seem to get my head around:

a == b (mod n)

except replace the == with an equal sign with three lines in it.

Top answer
1 of 5
3
a == b (mod n) means There is an integer k such that a-b=kn. For example, 2==17 [mod 3], because there is a k (equal to -5) so that 2-17 = 3k. Note that it's related to euclidean division : If you divide m by n, you get a quotient q and a reminder r. m = qn + r Therefore, m == q [mod n]
2 of 5
2
An alternative way to think about this may be helpful. Say we look at the integers, the entire number line. Modular arithmetic is a particular way of grouping these things together. We can think of it sort of as a loser equality. Usually a number is only equal to itself, but we're going to expand that a bit. Looking at things mod n we'll say that any two numbers seperated by a group of n steps on the number line will be 'equal'. Another way of saying this is that terms in an arithmetic progression will be equal. The numbers ..., -3n, -2n, -1n, 0, 1n, 2n, 3n, ... are all separated by n. So we will call them 'equal' or say they're congruent mod n. Similarly, ..., -3n+1, -2n+1, -1n+1, 1, 1n+1, 2n+1, 3n+1, ... are all separated by n so they are 'equal' or we say they're congruent mod n. We continue with this for as many numbers as possible and find that almost all numbers are 'equal' under this new equivalence. The only unique numbers we get are 0, 1, 2, 3,..., n-1 All others can be thought of as being equal to these. This is essentially the notion of an equivalence class where we partition a set into smaller blocks where we regard the constituent parts are indistinguishable.
🌐
Wikipedia
en.wikipedia.org › wiki › ≡
≡ - Wikipedia
May 23, 2025 - Symbol for the line feed character in ISO 2047 · ≅, a symbol sometimes used to show an approximate value, ≅ is also used to show geometric congruence · The eight trigrams of the Bagua: ☰, ☱, ☲, ☳, ☴, ☵, ☶, ☷ · Ξ, capital letter Xi of the Greek alphabet · 三, Chinese numeral for the number 3 · Glossary of mathematical symbols · Tesla Model 3, whose logo originally stylized the digit 3 as three horizontal bars ·
🌐
Wikipedia
en.wikipedia.org › wiki › Modular_arithmetic
Modular arithmetic - Wikipedia
1 week ago - If the hour hand points to 7 now, then 8 hours later it will point to 3. Ordinary addition would result in 7 + 8 = 15, but 15 reads as 3 on the clock face. This is because the hour hand makes one rotation every 12 hours and the hour number starts over when the hour hand passes 12. We say that 15 is congruent to 3 modulo 12, and we write 15 ≡ 3 (mod 12), so 7 + 8 ≡ 3 (mod 12).
🌐
Filo
askfilo.com › cbse › smart solutions › this triple line symbol meaning
This triple line symbol meaning... | Filo
January 4, 2026 - In number theory, it is used for congruence modulo n: ... This means 7 and 2 leave the same remainder when divided by 5. In chemistry, it can represent a triple bond (though usually shown as three lines between atoms).
🌐
Reddit
reddit.com › r/cryptography › confusion regarding the symbol '≡' (congruent to) in modular arithmetic
r/cryptography on Reddit: Confusion regarding the symbol '≡' (congruent to) in modular arithmetic
July 15, 2025 -

Hello everyone,

In modular arithmetic, if we know the remainder r when dividing a by m, we write it as:

a ≡ r mod m

As I understand it, r is the result of the operation a mod m.

However, in other formulas—like in RSA encryption—we often see something like:

y ≡ x^(e) mod m

This means that y is the result of the operation x^(e) mod n.

So to me, it would feel more intuitive to write:

x^(e) ≡ y mod n

since x^(e) mod n = y, and the expression being reduced appears on the left-hand side.

The way the modular expression is written can be a little confusing at first, but both forms describe the same relationship.

🌐
Course Hero
coursehero.com › university of ontario institute of technology › infr › infr 1010
Using Modular Arithmetic to Solve Linear Congruences and Apply | Course Hero
December 25, 2020 - Solve the linear congruence 54x = 12 (mod 73) given that the inverse of 54 modulo 73is 23. (Note: = is used here to denote the congruence symbol of three horizontal lines.This notation will be used throughout the quiz.)