LatexNotes

Congruent (≅) in LaTeX

\cong prints ≅, read 'is congruent to': two shapes with the same size and shape, or two structures that are isomorphic.

LaTeX command

\cong

Not the symbol you meant? Draw it to find the command →

Typing up handwritten notes? Convert a whole page of handwriting to LaTeX →

\cong is a relation, so LaTeX spaces it like =. It is built into LaTeX and KaTeX. In geometry it joins two figures, , and in algebra it says two groups, rings or spaces are isomorphic, .

Similar figures, the same shape at any size, use \sim (∼) instead: . The negated forms, \ncong (≇) and \nsim (≁), come from amssymb.

Congruence in number theory is a different symbol. 'a is congruent to b modulo is written with \equiv (≡) and \pmod: . Using \cong there is a common mistake when converting handwritten notes, where the two look alike.

Other forms

\ncongnot congruent (≇), amssymb
\simsimilar (∼)
\equivcongruent modulo n (≡)
\simeqasymptotically equal (≃)

Examples

$\triangle ABC \cong \triangle DEF$

congruent triangles

$\overline{AB} \cong \overline{CD}$

congruent segments

$\triangle ABC \sim \triangle PQR$

similar triangles

$\mathbb{Z}/6\mathbb{Z} \cong \mathbb{Z}/2\mathbb{Z} \times \mathbb{Z}/3\mathbb{Z}$

isomorphic groups

$17 \equiv 2 \pmod{5}$

congruence modulo n uses \equiv

Tips and common mistakes

Working from handwritten notes?

LatexNotes turns a photo or PDF of handwritten mathematics into LaTeX, graphs and all. It is built with real pdflatex before you see it, and the .tex file is yours to edit or take to Overleaf. Free to try, no sign-up.

See how handwriting to LaTeX works, step by step, or go from GoodNotes to LaTeX if you write on an iPad (Notability works the same way).

Convert your maths to LaTeX →

FAQ

How do I write the congruent symbol in LaTeX?

Use \cong in maths mode, which prints ≅, for example \triangle ABC \cong \triangle DEF.

How do I write not congruent?

Use \ncong with the amssymb package, which prints ≇.

What is the symbol for similar triangles?

\sim, which prints ∼: \triangle ABC \sim \triangle PQR.

How do I write congruence modulo n?

Use \equiv and \pmod: \pmod{n}.

See also