Extra Closing Brace
! Extra }, or forgotten $.
What this error means
LaTeX found a closing brace } or $ with no matching opening counterpart. This breaks the internal grouping mechanism that LaTeX uses to scope commands and environments.
Common causes
- Unmatched closing brace from a previous command
- Closed a \begin{...} with } instead of \end{...}
- Forgot to open a group or math mode
- Copy-paste introduced extra braces
How to fix it
Check brace pairing carefully. Every { must have a matching }. Use an editor with brace matching, or add braces systematically and count them. In math mode, every $ must have a closing $.
Code examples
\documentclass{article}
\begin{document}
\textbf{Hello}} % Extra closing brace
\end{document}\documentclass{article}
\begin{document}
\textbf{Hello} % Balanced braces
\end{document}Related errors
Missing \begin{document}
! LaTeX Error: Missing \begin{document}.
Mismatched Environment
! LaTeX Error: \begin{XXX} on input line N ended by \end{YYY}.
Preamble-Only Command Used in Body
! LaTeX Error: Can only be used in preamble.
Paragraph Ended Before Command Was Complete
! Paragraph ended before \XXX was complete.
Test the fix live
Paste your LaTeX into the playground and compile instantly.

