July 30, 2026

A derivation that runs over several lines should line up on its equals signs. That is what the align environment is for. This guide covers align and align*, how the & marker actually works, equation numbering and labels, and when gather, split or cases is the better choice.
Both come from amsmath. The difference is numbering: align numbers every line, align* numbers none. The starred form is the one you want for scratch work and intermediate steps.
This is the part that trips people up. The & is not “align on the equals sign” — it is an alignment marker that says this point in every line lines up with each other. Convention puts it immediately before the relation:
Put the & before the =, not after. Placing it after (= &) left-aligns the right-hand sides but leaves the equals signs ragged, which is the single most common cause of “my align looks wrong”.
An align with a pair of & per line creates two aligned columns, not one. Use that for side-by-side equations; use a single & for an ordinary derivation.
Integrating an equation of motion twice picks up two constants. The align* keeps the equals signs stacked down the page, and \underbrace annotates the pair without disturbing the line spacing:
With align, every line gets a number. To suppress the number on one line only, use \nonumber (or \notag) on that line:
Then refer to it with \eqref{eq:result}, which adds the parentheses for you, rather than plain \ref. Put the \label on the line you want to cite, not at the top of the environment.
If the lines are unrelated and you just want them centred, use gather. It takes no & markers at all.
A single long equation broken across lines should get one number, not one per line. Nest split inside equation:
\\[6pt]Missing $ inserted\quad and \qquad for deliberate horizontal gaps, and \text{...} for words inside math\\ and indent the continuation with an extra &For more on the surrounding notation, see our guides on fractions and matrices.
Try it free
Photograph a page of working and get the aligned environment back, numbered and compiling. Then keep editing it in the same editor.
Convert your page
Empowering students and researchers with AI-powered tools for academic writing.
Go to appContact us© 2026 Underleaf. All rights reserved.