LaTeX symbols and math mode for beginners

Published by InstantToolDeck · Updated November 2026

LaTeX can typeset almost any symbol, but you have to know its command. This guide explains how symbols work, the difference between text and math mode, and how to find the code for a symbol quickly. When you have a symbol in front of you, paste it into the symbols to LaTeX converter, or browse the symbol cheat sheet.

Text mode and math mode

LaTeX has two main modes. In text mode you type normal prose. In math mode the letters are italic, the spacing follows mathematical conventions, and the symbol commands are available. Switch to inline math with dollar signs, as in $x \leq y$, or use \[ ... \] for a displayed equation. Most symbols, including Greek letters, relations and arrows, only work in math mode. Using them in text gives the error “Missing $ inserted”.

Greek letters

Write a backslash and the name of the letter: \alpha, \beta, \pi, \Omega. Capitalizing the first letter of the name gives the uppercase form, but only for letters that differ from Latin capitals: there is \Gamma and \Delta, but no \Alpha, because A already exists. Some letters have a variant, such as \varepsilon and \varphi.

Operators, relations and arrows

Common ones: \times, \div, \pm, \cdot, \leq, \geq, \neq, \approx, \in, \subset, \rightarrow, \Rightarrow and \infty. A negated version of a relation can be made with \not, such as \not\subset, or with a dedicated command like \nleq from amssymb.

Packages for more symbols

  • amsmath: better equations, multiple-line formulas and symbols like \iint.
  • amssymb: hundreds of extra symbols, including \therefore, \nexists and \mathbb{R} for the real numbers.
  • mathtools: extends amsmath with extra tools.
  • stmaryrd: additional brackets and arrows for computer science.

Accents and special letters in text

Accents are commands applied to a letter: \'e for é, \"o for ö, \v{c} for č, \c{c} for ç. Special letters include \ss (ß), \o (ø) and \ae (æ). With pdfLaTeX it is safest to use these commands rather than raw Unicode. With XeLaTeX and LuaLaTeX you can type the characters directly, using a font that includes them.

Characters you must escape

These characters mean something to LaTeX: & % $ # _ { } ~ ^ \. To print them, write \&, \%, \$, \#, \_, \{, \}, \textasciitilde, \textasciicircum and \textbackslash.

How to find a symbol you do not know

  1. Paste it into the converter if it is a standard Unicode symbol.
  2. Search the cheat sheet by name, such as “therefore” or “subset”.
  3. Use the Comprehensive LaTeX Symbol List, which documents several thousand symbols, or draw the symbol in a handwriting-recognition tool.

Spacing and common mistakes

  • A command made of letters ends at the first non-letter, so \alpha x needs a space, while \alpha2 does not.
  • In math mode, spaces you type are ignored. Use \,, \; and \quad for manual spacing.
  • Text inside an equation should use \text{...} (from amsmath) so it is upright instead of italic.

Frequently asked questions

How do I type a Greek letter in LaTeX?

Use the letter name with a backslash in math mode, for example $\alpha$ for α.

Why do I get 'Missing $ inserted'?

You used a math-only command or a character such as _ in text mode. Wrap the math in $...$ or escape the character.

Which package do I need for \mathbb?

The amssymb or amsfonts package.

← All guides