The LaTeX command for leftrightarrow (↔) is \leftrightarrow.
\leftrightarrowWriting a paper? The table generator and the BibTeX cleaner are one click away, no account.
Write \leftrightarrow inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. It is part of core LaTeX math, so no extra package is required.
Arrows are relations in LaTeX, so \leftrightarrow gets the same thick spacing as an equals sign. With unicode-math under XeLaTeX or LuaLaTeX, typing ↔ in a formula gives the same symbol.
$A \leftrightarrow B$Open this example in the live preview: it renders as you type, with no compiler and no signup.
\xleftarrow{f}\longrightarrow\longleftarrow\Longrightarrow\to\leftarrow\rightarrow\Leftarrow\Rightarrow\Leftrightarrow\iff\implies\uparrow\downarrowArrows in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \leftrightarrow in math mode; it needs no extra package. For example, $A \leftrightarrow B$.
None: \leftrightarrow is built into LaTeX, so no extra package is required.