LaTeX Arrows: \to, \Rightarrow, \mapsto and \iff

Eight arrows that look alike and mean different things, sorted by the logical relation each one carries.

Arrows are the smallest symbols carrying the largest semantic load: eight of them look alike and mean different things. Sorting them by the relation they carry — value, mapping, implication, monotonicity — is what stops a proof from quietly claiming equivalence where it only has implication. The two neighbours worth reading next are Limits for the limit arrow and Math Symbols for the rest of the relation set.

Which one to use

Situation Write this Because
Tends to a value
x \to 0
Limit notation — see limits.
Maps an element to its image
x \mapsto x^2
A different statement, not a synonym.
Implies
\Rightarrow
Meta-level, not a numeric relation.
Equivalent
\iff
Reserve for genuine equivalence.
Monotone approach
\nearrow, \searrow
Convergence from one side.
A label above the arrow
\xrightarrow{f}
amsmath; KaTeX and MathJax support it.

The commands

What Type this Renders as
Tends to / maps to The short everyday arrow, and the one used inside \lim subscripts.
x \to 0 \quad A \to B
x \to 0 \quad A \to B
Long form alias Same glyph as \to. The long name reads better in proofs about functions.
x \rightarrow y
x \rightarrow y
Implies One direction only. Do not use it where you mean "if and only if".
P \Rightarrow Q
P \Rightarrow Q
Follows from Backward double arrow, common in British derivation style.
P \Leftarrow Q
P \Leftarrow Q
If and only if Equivalence. The command name is the phrase initialism, which makes it easy to remember.
P \iff Q
P \iff Q
Mapping out Points an element at its image; \to alone relates the sets, not the values.
f: x \mapsto x^2
f: x \mapsto x^2
Bidirectional Two-way relation between objects, weaker than \iff in most texts.
A \leftrightarrow B \quad A \longleftrightarrow B
A \leftrightarrow B \quad A \longleftrightarrow B
Harpoons Chemical equilibrium and partial orders; not a substitute for \leftrightarrow.
A \rightleftharpoons B
A \rightleftharpoons B
Monotone approach Increasing to and decreasing to, used in convergence arguments.
x \uparrow \infty \quad y \downarrow 0
x \uparrow \infty \quad y \downarrow 0
Long emphatic forms Useful when a line already carries many short arrows and the main step needs to stand out.
\Longrightarrow \iff \longrightarrow
\Longrightarrow \iff \longrightarrow

Worked examples

Function definition with both arrows

f: \mathbb{R} \to \mathbb{R}, \quad x \mapsto x^2 + 1
f: \mathbb{R} \to \mathbb{R}, \quad x \mapsto x^2 + 1

First arrow names the domain and codomain, second gives the rule. Omitting either leaves the definition incomplete.

Limit statement

\lim_{n \to \infty} \frac{1}{n} = 0
\lim_{n \to \infty} \frac{1}{n} = 0

Inside a subscript, \to stays compact; \longrightarrow would push the subscript too wide.

Proof chain

n \text{ even} \Rightarrow \exists k : n = 2k \Rightarrow n^2 \equiv 0 \pmod{4}
n \text{ even} \Rightarrow \exists k : n = 2k \Rightarrow n^2 \equiv 0 \pmod{4}

Each link genuinely one-directional, which is why \Rightarrow rather than \iff is correct here.

Equivalence with text above

a_n \underset{n \to \infty}{\longrightarrow} 0
a_n \underset{n \to \infty}{\longrightarrow} 0

Putting the approach condition under the arrow instead of beside it, common in analysis.

Common mistakes

  • \iff in a derivation where only one direction was proved. Reviewers catch this more often than any other arrow error.
  • Using \to for a function between sets and then also for the element mapping in the same line — the convention separates them with \mapsto precisely to avoid the ambiguity.
  • Typing -> or => as ASCII. They print as hyphen-greater-than, and some pipelines rewrite them outright.
  • Adding \leftarrow where \gets is intended for assignment in algorithm pseudocode. Same glyph, different reading intent.

Questions about this notation

What is the difference between \to and \mapsto?
\to connects objects of the same kind — a domain to a codomain, a sequence to its limit. \mapsto connects an element to its image, so f: x \mapsto x^2 says what happens to a specific input.
Which arrow means implies?
\Rightarrow for one-way implication and \iff for two-way. There is also \implies, which renders longer and adds surrounding space, and is used mainly to start a displayed line of reasoning.
Can I put text over an arrow?
Yes: \xrightarrow{f} and \overset{\text{def}}{\to} place material above, \underset{} below. In KaTeX the \overset and \underset forms are the reliable ones.
How do I put a label above an arrow, or write a two-sided implication?
\xrightarrow{f} and \xleftarrow{g} from amsmath stretch the arrow around its label; the plain \rightarrow cannot take one. A two-way implication is \iff, which is a long \Leftrightarrow with the spacing a relation deserves. “Is implied by” has no core command — mathtools provides \impliedby.

Keep reading

Three ways into the same idea: the notation itself, the lesson that teaches it, and an article that applies it.