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

LaTeX
\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}
OutputThe expansion of a plus b cubed over three lines aligned at the equals signs, with one equation number.

Needs \usepackage{amsmath} in the preamble.

Full document you can compile
example.tex
\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?

EnvironmentUse it forNumbers
splitOne equation over several aligned lines, inside equationOne for the block
multlineOne long equation with no alignment pointOne, on the last line
alignSeveral separate equations aligned at &One per line
gatherSeveral separate equations, each centeredOne 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.

LaTeX
\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}
OutputA long polynomial broken over two lines, the first flush left and the second flush right with the number.

Needs \usepackage{amsmath} in the preamble.

Full document you can compile
example.tex
\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.

LaTeX
\begin{align}
  x + y &= 10 \notag \\
  x - y &= 2
\end{align}
OutputA system of two equations where only the second line, x minus y equals 2, is numbered.

Needs \usepackage{amsmath} in the preamble.

Full document you can compile
example.tex
\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.

LaTeX
\begin{equation}
\begin{split}
  S = \biggl( 1 + \frac{1}{2} + \frac{1}{3} \\
      + \frac{1}{4} + \frac{1}{5} \biggr)
\end{split}
\end{equation}
OutputA sum in large parentheses broken over two lines, with the opening parenthesis on the first line and the closing one on the second.

Needs \usepackage{amsmath} in the preamble.

Full document you can compile
example.tex
\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.

Text drafted with AI from the amsmath documentation; every example compiled with TeX Live 2026; checked by Cem Demir. See the editorial policy.