Congruent Symbol in LaTeX
For congruent triangles or isomorphic objects write \cong (≅): \triangle ABC \cong \triangle DEF. For modular congruence write \equiv (≡) with \pmod: a \equiv b \pmod{n}. The negations are \ncong (amssymb) and \not\equiv.
Congruence symbols
A \cong B≅: congruent (geometry) or isomorphic (algebra).
A \ncong B≇: not congruent (amssymb).
a \equiv b \pmod{n}≡ with the modulus in parentheses.
a \not\equiv b \pmod{n}Not congruent modulo n.
f \equiv 0≡ also means "identically equal" or "defined as".
a \sim b∼: similar or equivalent, a weaker relation.
Try it live
Change the formula and the preview redraws as you type. Copy the LaTeX, download a PNG or SVG, copy it for Word, or use Edit here on any example below to load it.
Congruent (≅, ≡) examples
Each result below is drawn from the LaTeX under it. Copy the code, edit it on this page, or open it in the full editor.
Congruent triangles
LaTeX\triangle ABC \cong \triangle DEFIsomorphic groups
LaTeX\mathbb{Z}/6\mathbb{Z} \cong \mathbb{Z}/2\mathbb{Z} \times \mathbb{Z}/3\mathbb{Z}Modular congruence
LaTeX17 \equiv 2 \pmod{5}Fermat's little theorem
LaTeXa^{p-1} \equiv 1 \pmod{p}Not congruent
LaTeX4 \not\equiv 1 \pmod{2}Identically zero
LaTeXf(x) \equiv 0 \quad \text{on } [0, 1]
Which symbol means what
≅ (\cong) is used for congruent figures in geometry and for isomorphisms in algebra and topology. ≡ (\equiv) is used for congruence modulo n, for "identically equal" and in some texts for definitions. ∼ (\sim) is for similar triangles or a general equivalence relation.
Writing the modulus
\pmod{n} adds space and parentheses: "a ≡ b (mod n)". \bmod is the binary operator in "a mod n", and \mod{n} and \pod{n} are variants with and without the word or the parentheses. See the modulo page for all four.
Common mistakes
Typed "mod" is set in italic letters as a product m·o·d.
Instead ofa \equiv b (mod n)Writea \equiv b \pmod{n}\ncongcomes from amssymb.Instead ofA \ncong B (no amssymb)Write\usepackage{amssymb}Most curricula use ≅ for congruent figures; ≡ is the modular or identity symbol.
Instead of\triangle ABC \equiv \triangle DEFWrite\triangle ABC \cong \triangle DEF
In Overleaf, MathJax and Word
Overleaf and pdfLaTeX
\cong,\equiv,\pmodneed nothing;\ncongneeds amssymb.MathJax and KaTeX
MathJax and KaTeX support
\cong,\ncong,\equiv,\not\equivand\pmod.Microsoft Word
In a Word equation
\congthen Space gives ≅ and\equivgives ≡.
Have this math on paper, in a PDF or a photo?
Retyping formulas is slow. These converters read whole pages and handwriting and give you LaTeX or Word with every equation editable.
- Handwritten math to LaTeXPhotograph notes or a whiteboard and get LaTeX for every line.1 credit per image
- PDF to LaTeXTurn a paper or textbook PDF into a .tex project with every equation.10 credits per page
- Image to WordA screenshot or photo of a page becomes Word with editable equations.10 credits per image
Single printed formulas are free: 3 a day without an account, 6 with a free account. New accounts get 30 credits to try handwriting, pages and documents; failed conversions return their credits. See plans and credit prices.
Congruent (≅, ≡) in LaTeX: questions
- What is the LaTeX command for the congruent symbol?
\congfor ≅. For modular congruence use\equiv(≡).- How do I write a ≡ b mod n?
a \equiv b \pmod{n}.- How do I write "not congruent"?
\ncong(with amssymb) or\not\equiv.
Related LaTeX reference
- Approximately Equal in LaTeX\approx for ≈, plus \sim, \simeq, \cong and \equiv, with what each symbol means.
- Not Equal in LaTeXThe ≠ sign with \neq or \ne, and other negated relations: not equivalent, not an element of, not a subset.
- Perpendicular Symbol in LaTeX⊥ with \perp, ∥ with \parallel, \not\perp and \nparallel, and the orthogonal complement W^\perp.
- How to Write a Bar in LaTeXx̄ with \bar, long bars with \overline, and the vertical bar | with \vert or \mid.
- How to Write an Ampersand in LaTeXPrint & with \&; & on its own is the column separator in tables, matrices and aligned equations.
- LaTeX equation editorSymbol panel, live preview, and PNG, SVG, MathML or Word export.
- All LaTeX reference pagesSymbols, math structures and text formatting in one list.
Have the formula as a picture?
Paste a screenshot or photo of the equation and get its LaTeX, ready to copy or open in the editor.
Convert an image to LaTeX