Equivalent / identical (≡) in LaTeX
\equiv produces the identically-equal / equivalence relation, used for identities that hold for all values and for congruence in modular arithmetic.
LaTeX command
\equivNot the symbol you meant? Draw it to find the command →
\equiv has two everyday meanings. First, 'identically equal': \sin^2\theta + \cos^2\theta \equiv 1 asserts equality for every value of theta, not just a particular solution. Second, congruence in modular arithmetic, written \pmod{n}.
For the modular use, \pmod{n} supplies the parentheses and correct spacing, giving '(mod n)'. Its relatives are \bmod, the binary operator as in , and \mod, which writes 'mod without brackets. \bmod and \pmod are built into LaTeX; \mod comes from amsmath.
The symbol also appears for logical equivalence (where \iff is an alternative) and occasionally for definitions (where := via \coloneqq is common). Its negation is \not\equiv; there is no standard single command for it.
Examples
$a \equiv b \pmod{n}$congruence modulo n
$17 \equiv 2 \pmod{5}$a numeric congruence
$\sin^2\theta + \cos^2\theta \equiv 1$an identity for all theta
$f(x) \equiv 0$the identically-zero function
$P \equiv Q$logical equivalence
Tips and common mistakes
- For modular arithmetic use
\pmod{n}, which adds the parentheses and spacing:\pmod{n}. - Use
\bmodfor the binary operator () and\modfor 'mod without parentheses. - Distinguish identically-equal (true for every value) from ordinary = (true for the values in question).
- Do not use
\equivfor 'approximately'; that is\approx. - The negation is
\not\equiv; there is no dedicated single command.
Working from handwritten notes?
LatexNotes turns a photo or PDF of handwritten mathematics into clean, compilable LaTeX - graphs and all. Free to try, no sign-up.
Convert your maths to LaTeX →FAQ
What does \equiv mean in LaTeX?
It prints the triple-bar sign, meaning 'identically equal to' (true for every value) or 'congruent to' in modular arithmetic, depending on context.
How do I write a congruence mod n?
Combine \equiv with \pmod: renders with the proper spacing and brackets.
What is the difference between \bmod, \pmod and \mod?
\bmod is the binary operator (); \pmod{n} adds '(mod n)' for congruences; \mod writes 'mod without parentheses.