Missing \right. inserted.

A \left has no matching \right in the same formula or line, or a \right has no \left. Pair them, or use \right. / \left. as invisible partners.

Help centre › LaTeX errors › Maths · Error: the build stops or the output is wrong

What the log says

! Missing \right. inserted.
<inserted text>
                \right .
l.3 Here $\left( x + y$
                        is a sum.

Also printed as: Extra \right.

What it means

Every \left must be matched by a \right in the same formula and the same group (the same cell of an alignment, the same line of align). TeX found a \left with no partner and inserted an invisible \right.; or, for Extra \right, a \right with no \left, which it ignores.

Causes and fixes

Most common first. Each example is a complete document; the first fails with this message, the second is the same document fixed.

1. A \left with no \right

Add the matching \right) (or \right], \right\} …). If you want only one visible delimiter, pair it with the invisible \right..

Fails
\documentclass{article}
\begin{document}
Here $\left( x + y$ is a sum.
\end{document}
Fixed
\documentclass{article}
\begin{document}
Here $\left( x + y \right)$ is a sum.
\end{document}

2. \left and \right on different lines of an align

Each line (and each & cell) is a separate group, so a \left( cannot be closed on the next line. Use fixed-size delimiters \bigl( … \bigr) (or \Bigl, \biggl), or close each line with \right. and reopen the next with \left..

Fails
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
a &= \left( b + c \\
  &\quad + d \right)
\end{align}
\end{document}
Fixed
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
a &= \Bigl( b + c \\
  &\quad + d \Bigr)
\end{align}
\end{document}

3. A \right with no \left

This gives Extra \right. Add the \left it belongs to, or, if a plain bracket is enough, drop \right.

Fails
\documentclass{article}
\begin{document}
Here $x + y \right)$ is a sum.
\end{document}
Fixed
\documentclass{article}
\begin{document}
Here $(x + y)$ is a sum.
\end{document}

In Manulyx

The editor shows the error beside the line with an explanation, and the compile log is parsed into a list of problems.

Write in Manulyx for free · Journal templates

More in maths

  • Missing $ inserted.A maths-only character or command (_ ^ \alpha) appeared in text, or text appeared in maths. Wrap the maths in $ … $ or escape the character.
  • Double subscript.Two _ (or two ^) apply to the same symbol, as in x_i_j. Group them with braces: x_{i_j} or x_{ij}, x^{2^3} or {x^2}^3.
  • Display math should end with $$.A displayed equation was closed with a single $ or a $ appeared inside it. Use \[ … \] or an equation environment, and no $ inside.
  • LaTeX Error: Bad math environment delimiter.\[ or \( was used inside maths, or \] or \) without its opening. Close one formula before opening the next, and pair each delimiter.

Every example on this page was compiled with pdfLaTeX to check that it fails and is fixed as described. All LaTeX errors