Skip to content
latexci
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademics
Sign inFree
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademicsFree
Discord community ↗GitHub ↗
Sign in
LaTeX symbols›Arrows›To

To in LaTeX

The LaTeX command for to (→) is \to (right arrow).

→\to→
\to
Arrows · Unicode → (U+2192) · no package needed

Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.

Which command should you use?

CommandPackageUse it when
\to recommendednoneLimits and function signatures.
\rightarrow noneThe same arrow, longer name.
\mapsto noneWhere an element goes: x maps to x squared.
\longrightarrow noneA longer arrow.
\xrightarrow{f} amsmathAn arrow with a label that stretches to fit.
Table 1. Ways to write to in LaTeX. Every line was compiled with pdfLaTeX (TeX Live 2026) loading only the package shown.
Common mistake. -> typed in a formula prints a minus sign and a greater-than sign.

How to type To

Write \to 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.

Example
$f\colon A \to B, \quad x \mapsto x^2$f ⁣:A→B,x↦x2f\colon A \to B, \quad x \mapsto x^2f:A→B,x↦x2

Open this example in the live preview: it renders as you type, with no compiler and no signup.

Often confused with

  • Rightarrow \rightarrow (→)
  • Mapsto \mapsto (↦): maps to

Related Arrows symbols

↺\circlearrowleft↻\circlearrowright→\xrightarrow{f}←\xleftarrow{f}⟶\longrightarrow⟵\longleftarrow⟹\Longrightarrow←\leftarrow→\rightarrow↔\leftrightarrow⇐\Leftarrow⇒\Rightarrow⇔\Leftrightarrow⟺\iff

Arrows in LaTeX: the full table or search all 350+ LaTeX symbols.

FAQ

How do you write to (→) in LaTeX?

Use \to in math mode; it needs no extra package. For example, $f\colon A \to B, \quad x \mapsto x^2$.

Which package provides \to?

None: \to is built into LaTeX, so no extra package is required.

What is the most common mistake with to in LaTeX?

-> typed in a formula prints a minus sign and a greater-than sign.

latexci

Free LaTeX tools for researchers and students, in any browser. No paid plan, no advertising.

Star on GitHubBuy me a coffee

Tools

Live PreviewBibTeX ToolsDOI → BibTeXarXiv → BibTeXPubMed → BibTeXISBN → BibTeXLaTeX DiffWord → LaTeXSymbol SearchTable GeneratorTemplatesCV Generator

Learn

Academics hubLife after OverleafFreeGitHub

Community

DiscordGitHub IssuesFeature Requests

© 2026 latexci. By Sitraka Forler, sitraka.lu

PrivacyTerms