Notation field note

Similar Symbol in LaTeX: \sim, \simeq, \cong, and Related Commands

This guide to the similar symbol in LaTeX covers core commands like \sim, \simeq, \cong, and \approx, plus inequality and relational symbols with package requirements.

Mathematics uses symbols to represent mathematical relationships. The “similar” symbol represents a relationship between two elements where they are related, but not equal.

The following is an article by Jieyi describing the various symbols used to indicate that something is similar to something else.

The similarity command can be confusing since several commands produce different results. However, if you understand the differences, you’ll know which one to use in any situation.

Core similarity commands

Several TeX packages include a wide range of symbols that help to express the relationship between elements. While these aren’t all the symbols that exist, each has its own specific meaning. They are:

\sim (similar to)

\simeq (asymptotically equal to)

\cong (congruent to)

\approx (approximately equal)

\equiv (identical to)

\propto (proportional to)

The following table contains all of these commands, along with their respective meanings. Note that the package amssymb must be loaded for many of these symbols, although some, such as \sim, exist in the base system.

The core similarity commands

Command

Meaning

Notes

\sim

~ Similar

This requires no extra package.

\cong

Congruent to

This requires no extra package.

\approx

Approximately equal to

This requires no extra package.

\simeq

Asymptotically equal to

Requires the amsfonts package.

\propto

Proportional to

This requires no extra package.

\equiv

Identical to

This requires no extra package.

\lesssim

Less than or similar to

Requires the amsfonts package.

\gtrsim

Greater than or similar to

Requires the amsfonts package.

\eqslantless

Equal to or less than

Requires the amsfonts package.

\eqslantgtr

Equal to or greater than

Requires the amsfonts package.

Inequality commands

A number of other commands provide inequalities involving the ~ symbol.

Command

Meaning

Notes

\leq

Less than or equal to

No package required.

\geq

Greater than or equal to

No package required.

\ll

Much less than

No package required.

\gg

Much greater than

No package required.

\prec

Precedes

No package required.

\succ

Succeeds

No package required.

\preceq

Precedes or equals

No package required.

\succeq

Succeeds or equals

No package required.

\subset

Is a subset of

No package required.

\supset

Is a superset of

No package required.

\subseteq

Is a subset of or equals

No package required.

\supseteq

Is a superset of or equals

No package required.

These also require the amsfonts package.

Other inequality commands

You can also create combinations of symbols like this:

\lesseqqgtr

Less than or equal to or greater than

Requires the amsfonts package.

\geseqqless

Greater than or equal to or less than

Requires the amsfonts package.

\lessgtr

Less than or greater than

Requires the amsfonts package.

\gtrless

Greater than or less than

Requires the amsfonts package.

Relational symbols

The relational symbols are essentially ordering operators and are included below. These require the amsfonts package.

Command

Meaning

Notes

\perp

Perpendicular

No package required.

\mid

Vertical line

No package required.

\parallel

Parallel

No package required.

\Join

Join

No package required.

\in

Member of

No package required.

\notin

Not member of

No package required.

\ni

Inverse membership

No package required.

\subsetneq

Proper subset

No package required.

\supsetneq

Proper superset

No package required.

The relational commands can be combined, as well. For example:

\subsetneq

Proper subset

No package required.

\subseteqq

Subset or equal

No package required.

\supseteqq

Superset or equal

No package required.

\sqsubset

Square subset

No package required.

\sqsupset

Square superset

No package required.

There’s also the option to make these characters appear in boldface type or italics. Here are those commands, as well.

Command

Meaning

Notes

\mathbf{~}

Bold

No package required.

\mathit{~}

Italic

No package required.

However, there may be times when you’re unsure what the command is, especially when dealing with a lot of math symbols. In those cases, you can always use Detexify, which allows you to draw the symbol that you want. Then, it will tell you what LaTeX command produces the symbol you’ve drawn.