Skip to main content
v2026.11,858 entries · CC-BY 4.0

LaTeX Rightarrow: \rightarrow, \to, \Rightarrow and Labelled Arrows

How to type a LaTeX right arrow with \rightarrow or \to, plus \Rightarrow, \mapsto and labelled \xrightarrow arrows, with common errors fixed.

Written and maintained by CASRAI Editorial Board

Last updated

Short answer: in LaTeX, type \rightarrow (or its short form \to) inside math mode to get a right arrow (→). For an implication arrow (⇒) use \Rightarrow; for a “maps to” arrow (↦) use \mapsto; and for an arrow with a label above or below it, use \xrightarrow from the amsmath package. This page is for researchers and analysts who write papers, theses and supplementary material in LaTeX and need the right arrow for the job.

What it is used for in research

The plain right arrow appears in function signatures (f: A \rightarrow B), in limits (x \to 0), and in reaction schemes and process diagrams written in running math. Choosing among arrow commands matters because they carry different meanings: a single-line arrow denotes a mapping or a limit, a double-line arrow is conventionally read as implication, and an arrow with an attached label annotates the step it represents. Wikibooks’ LaTeX mathematics reference lists \rightarrow or \to (→), \mapsto (↦), and \Rightarrow (⇒) as separate entries in its set and logic notation table (read 2026-11-07).

Install or access (official source only)

\rightarrow, \to, \Rightarrow and \mapsto are available in math mode of a standard LaTeX installation, with the Wikibooks table above listing them without any package requirement. The labelled-arrow commands \xleftarrow and \xrightarrow come from the amsmath package, which CTAN lists as part of the LaTeX required distribution (current version 2.17z, dated 2025-07-09, LPPL 1.3c; ctan.org/pkg/amsmath, read 2026-11-07). Load it in the preamble:

\usepackage{amsmath}

The package documentation is amsldoc.pdf, the AMS-LaTeX user guide, distributed on CTAN.

Step-by-step task

1. Insert a basic right arrow (\rightarrow or \to)

  1. Enter math mode: inline with $ ... $, or in a display such as \[ ... \] or an equation environment.
  2. Type \rightarrow or \to. Both give the same arrow (→).
$f\colon A \rightarrow B$
$x \to 0$

2. Choose the double arrow or maps-to arrow

  1. For implication, type \Rightarrow (⇒).
  2. For the “maps to” arrow, type \mapsto (↦), as in x \mapsto x^2.

3. Add a label to the arrow with \xrightarrow

  1. Add \usepackage{amsmath} to the preamble.
  2. Write \xrightarrow{superscript} for a label above the arrow, or \xrightarrow[subscript]{superscript} to add a label below as well.

The AMS-LaTeX user guide (section 4.9, “Extensible arrows”) states that \xleftarrow and \xrightarrow “produce arrows that extend automatically to accommodate unusually wide subscripts or superscripts”, and that they take one optional argument (the subscript) and one mandatory argument (the superscript, possibly empty). Its own example is \xrightarrow[T]{n\pm i-1}.

4. Do not confuse \rightarrow with \overrightarrow

\overrightarrow{AB} places an arrow over its argument, which is the notation for a vector, whereas \rightarrow is a stand-alone symbol. The AMS-LaTeX guide notes that basic LaTeX provides \overrightarrow and \overleftarrow, and that amsmath adds further over- and under-arrow commands: \overleftrightarrow, \underleftarrow, \underrightarrow and \underleftrightarrow. For vector notation in practice, see vectors and vector products in LaTeX.

Output and how to read it

You type You get Typical reading
\rightarrow or \to → Function or mapping from one set to another; a limit (as in x \to 0)
\Rightarrow ⇒ Implication (double-line arrow)
\mapsto ↦ “Maps to” for an individual element or expression
\xrightarrow[below]{above} → with labels Arrow extended to fit its label (needs amsmath)
\overrightarrow{AB} arrow over AB Vector notation, not a relation symbol

The “typical reading” column describes common mathematical convention (editorial interpretation); the command names and the glyphs they produce come from the sources listed below. Journal style files and house styles can prescribe their own usage, so follow the target journal’s author instructions where they differ.

Troubleshooting

  • “Missing $ inserted” or similar math-mode error: arrow commands such as \rightarrow are math-mode symbols. Put them inside $ ... $, \( ... \), or a display math environment. To use an arrow in plain text, wrap just the arrow: \ensuremath{\rightarrow}.
  • “Undefined control sequence” on \xrightarrow: the amsmath package is not loaded. Add \usepackage{amsmath} to the preamble.
  • Label overflows or looks cramped: use \xrightarrow rather than stacking text over \rightarrow; per the AMS-LaTeX guide, it extends automatically to fit wide labels.
  • Arrow reads as a vector: if you used \overrightarrow where you wanted a relation symbol, switch to \rightarrow or \to.

Related symbol pages: math signs in LaTeX, subset symbols in LaTeX, the therefore symbol in LaTeX, and greater-than and comparison symbols in LaTeX.

Free alternatives (table)

LaTeX has no paid tier for these symbols: they are all free parts of LaTeX or amsmath (LPPL licence). The table compares the arrow commands that are alternatives to a plain \rightarrow for different needs.

Need Command Package
Plain right arrow \rightarrow, \to Standard LaTeX math mode
Double-line (implication) arrow \Rightarrow Standard LaTeX math mode
Maps-to arrow \mapsto Standard LaTeX math mode
Arrow that stretches to fit a label \xrightarrow, \xleftarrow amsmath
Arrow over a symbol (vector) \overrightarrow Basic LaTeX
Further over/under arrows \overleftrightarrow, \underrightarrow, and others amsmath

FAQ

How do I type a right arrow in LaTeX?

Use \rightarrow or \to in math mode. Both produce →.

What is the difference between \rightarrow and \to?

None in output: Wikibooks lists them together as one entry, “\rightarrow or \to“. \to is the shorter form.

How do I put text above or below a right arrow?

Load amsmath and use \xrightarrow[below]{above}. The optional argument (below) may be omitted; the mandatory argument (above) may be empty.

How do I write a double right arrow?

Use \Rightarrow for ⇒.

Do I need amsmath for \rightarrow?

No. Only the extensible arrows (\xrightarrow, \xleftarrow) and the additional over/under arrow commands come from amsmath.

Sources (official docs)

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · free to try

Ask about LaTeX Rightarrow: \rightarrow, \to, \Rightarrow and Labelled Arrows

Ask your first 2 questions free below. Subscribers get 150 a day for $29 a month.

An AI assistant specialized in research administration. It cites the sources behind every answer, labels web answers and says when it can't answer.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays free to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →