LaTeX arrows are math-mode commands named after their direction: to type an arrow in LaTeX, write $\rightarrow$ for →, $\leftarrow$ for ← and $\Rightarrow$ for the double arrow ⇒. The table below lists the 12 arrows people use most, with the package each one needs; the full list of arrow symbols follows further down the page.
| Symbol | Command | Use | Package | Copy |
|---|---|---|---|---|
\rightarrow | Right arrow | built in | ||
\to | Maps to a set, limits (x → ∞) | built in | ||
\leftarrow | Left arrow, assignment | built in | ||
\leftrightarrow | Left-right arrow (both directions) | built in | ||
\Rightarrow | Implies (double arrow) | built in | ||
\Leftrightarrow | If and only if | built in | ||
\mapsto | Function rule, x ↦ x² | built in | ||
\longrightarrow | Long right arrow | built in | ||
\uparrow | Up arrow | built in | ||
\downarrow | Down arrow | built in | ||
\hookrightarrow | Injection, inclusion | built in | ||
\xrightarrow{f} | Arrow with text above, stretches to fit | amsmath |
Every command in the table is a math symbol, so it must sit inside $...$ or an equation environment; in running text use $\to$ or the text-mode commands \textrightarrow and \textleftarrow. The basic arrows are built in; add these lines to your preamble for labelled arrows (\xrightarrow, \implies) and the extra arrows from the AMS fonts (\twoheadrightarrow, \rightsquigarrow, \nrightarrow):
\usepackage{amsmath}
\usepackage{amssymb}The arrows people look up most are the plain right arrow \rightarrow (or its shorthand \to, used in f: A \to B and limits like x \to \infty), the left arrow \leftarrow, the double-headed \leftrightarrow, and the thick double arrows \Rightarrow and \Leftrightarrow that stand for implication and equivalence. Function rules use \mapsto (x \mapsto x^2), and the long variants \longrightarrow, \Longrightarrow and \longmapsto give you extra room in commutative diagrams. Vertical and diagonal arrows are \uparrow, \downarrow, \nearrow and \searrow; hooked and harpoon arrows such as \hookrightarrow, \rightharpoonup and \rightleftharpoons mark injections and equilibria.
For logic, prefer \implies (from amsmath) and the built-in \iff, which add the correct spacing around the arrow, and for labelled arrows use \xrightarrow{f} and \xleftarrow{g}, also from amsmath, which stretch to fit the label. Negated and squiggly arrows (\nrightarrow, \rightsquigarrow, \twoheadrightarrow) need \usepackage{amssymb}.
For the meaning behind each arrow and how to type them outside LaTeX, see our guide to arrow symbols and how to type them, or the overview of mathematical expressions in LaTeX. Click any card below to copy its command.
\leftarrow\rightarrow\uparrow\longleftarrow\longrightarrow\downarrow\Leftarrow\Rightarrow\Uparrow\Longleftarrow\Longrightarrow\Downarrow\leftrightarrow\longleftrightarrow\updownarrow\LeftrightarrowLong Left Right Arrow (Double)
\Longleftrightarrow\Updownarrow\mapsto\longmapsto\nearrow\hookleftarrow\hookrightarrow\searrow\leftharpoonup\rightharpoonup\swarrow\leftharpoondown\rightharpoondown\nwarrow