align when multiple equation lines should line up at = or another relation. Use multline when one long equation needs to wrap but has no shared alignment point. Both environments come from the amsmath package.
Quick answer: put
& before the relation you want to align and end each line with \\. Choose align* when you do not want equation numbers. Choose split when several aligned lines should share one equation number.Which Multi-line Environment Should You Use?
Align Equations at the Equals Sign
Place& immediately before each equals sign and use \\ to start the next equation line. The fragment below assumes amsmath is loaded in the preamble.
Use align* instead of align when the equations should not be numbered. Avoid wrapping align inside equation; align is already a display-math environment.
Break One Long Equation with multline
multline is for a single expression that is too wide for one line. It does not align at =. LaTeX places the first line toward the left, the final line toward the right, and any middle lines in the center.
Use multline* for the same layout without an equation number.
Give Several Aligned Lines One Equation Number
Putsplit inside equation when a derivation needs alignment but should be referenced as one equation. Unlike align, split cannot stand on its own.
aligned vs split
Both environments create an aligned block and rely on an outer math environment. Use split for a full-width multi-line equation with one number. Use aligned when the block must sit beside another symbol, inside braces, or as part of a larger formula.
Common Errors
Practical Rules
- Align at a mathematical relation such as
=,\leq, or\approx, not at arbitrary visual positions. - Keep one
&alignment scheme across related lines so the derivation is easy to scan. - Use starred environments for unnumbered display math instead of removing numbers manually from every line.
- Add
\label{...}only to lines that readers will reference; suppress decorative numbers with\notag.
Try Multi-line Equations in LaTeX Cloud Studio
Compile an align example
Paste an
amsmath example into the browser editor and compare numbered and unnumbered output.Review equation fundamentals
See the complete guide to display math, equation numbering, cases, and derivations.
