LaTeX New Line in Equation
To get a LaTeX new line in equation mode, note that \\ alone does nothing inside equation or $…$. Load amsmath and put the lines in split inside equation: mark the alignment point with & and end each line except the last with \\.
\begin{equation}
\begin{split}
(a+b)^3 &= (a+b)(a+b)^2 \\
&= (a+b)(a^2 + 2ab + b^2) \\
&= a^3 + 3a^2b + 3ab^2 + b^3
\end{split}
\end{equation}Needs \usepackage{amsmath} in the preamble.
Full document you can compile
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{split}
(a+b)^3 &= (a+b)(a+b)^2 \\
&= (a+b)(a^2 + 2ab + b^2) \\
&= a^3 + 3a^2b + 3ab^2 + b^3
\end{split}
\end{equation}
\end{document}Why doesn't \\ break a line in an equation?
The equation environment and $…$ hold exactly one line of math. A \\ there is silently ignored. The amsmath environments below are built for several lines.
Should you use split, multline or align?
| Environment | Use it for | Numbers |
|---|---|---|
split | One equation over several aligned lines, inside equation | One for the block |
multline | One long equation with no alignment point | One, on the last line |
align | Several separate equations aligned at & | One per line |
gather | Several separate equations, each centered | One per line |
How do you split a long equation without aligning it?
multline sets the first line flush left, the last line flush right and any middle lines centered. Start the continued line with the operator, here +, so the reader sees that it carries on.
\begin{multline}
f(x) = a_0 + a_1 x + a_2 x^2 + a_3 x^3 + a_4 x^4 \\
+ a_5 x^5 + a_6 x^6 + a_7 x^7 + a_8 x^8
\end{multline}Needs \usepackage{amsmath} in the preamble.
Full document you can compile
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{multline}
f(x) = a_0 + a_1 x + a_2 x^2 + a_3 x^3 + a_4 x^4 \\
+ a_5 x^5 + a_6 x^6 + a_7 x^7 + a_8 x^8
\end{multline}
\end{document}How do you number only one line?
In align every line gets a number. Put \notag before \\ on the lines that shouldn't have one. The starred forms align* and multline* number nothing.
\begin{align}
x + y &= 10 \notag \\
x - y &= 2
\end{align}Needs \usepackage{amsmath} in the preamble.
Full document you can compile
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
x + y &= 10 \notag \\
x - y &= 2
\end{align}
\end{document}How do you break a line inside brackets?
\left( and \right) must be on the same line, so a break between them stops the compile. Use fixed sizes such as \biggl( and \biggr), which don't need to pair up. Another way is to close the first line with \right. and open the next with \left., which are invisible.
\begin{equation}
\begin{split}
S = \biggl( 1 + \frac{1}{2} + \frac{1}{3} \\
+ \frac{1}{4} + \frac{1}{5} \biggr)
\end{split}
\end{equation}Needs \usepackage{amsmath} in the preamble.
Full document you can compile
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{split}
S = \biggl( 1 + \frac{1}{2} + \frac{1}{3} \\
+ \frac{1}{4} + \frac{1}{5} \biggr)
\end{split}
\end{equation}
\end{document}What about inline math in a paragraph?
Inline math can't hold a line break. If a formula in $…$ is too long, let LaTeX break it after a + or = (it does this on its own), split it into two inline formulas, or move it to a displayed equation.
Where can you learn more about multi-line equations?
For several equations lined up at the equals sign, see the align guide. Line breaks in normal text are in the new line guide. To test a formula before you put it in a document, try the equation editor.
Sources
- User’s Guide for the amsmath Package (CTAN), read Nov 28, 2026
- LaTeX2e: An unofficial reference manual, Math formulas, read Nov 28, 2026
Text drafted with AI from the amsmath documentation; every example compiled with TeX Live 2026; checked by Cem Demir. See the editorial policy.