How to Start a New Line in LaTeX
Use \\ (or \newline) to end a line and continue on the next one in the same paragraph. Leave a blank line in the source to start a new paragraph, which is usually what you want for running text. \\[6pt] adds extra vertical space after the break.
Line and paragraph breaks
- Text mode, no math preview
\\Line break inside the paragraph; also ends rows in tables and equations.
- Text mode, no math preview
\newlineSame as
\\in text; not allowed in tables and equations. - Text mode, no math preview
(blank line)New paragraph, with the usual indent or paragraph space.
- Text mode, no math preview
\parNew paragraph without a blank line (handy in macros).
- Text mode, no math preview
\\[6pt]Line break plus 6 pt of extra space.
- Text mode, no math preview
\linebreakBreak here but keep the line justified (stretches the spaces).
Try it live
Change the formula and the preview redraws as you type. Copy the LaTeX, download a PNG or SVG, copy it for Word, or use Edit here on any example below to load it.
New line and line break examples
Each result below is drawn from the LaTeX under it. Copy the code, edit it on this page, or open it in the full editor.
Breaking an equation over lines
LaTeX\begin{aligned} (a + b)^2 &= (a + b)(a + b) \\ &= a^2 + 2ab + b^2 \end{aligned}Extra space between lines
LaTeX\begin{aligned} x &= 1 \\[8pt] y &= 2 \end{aligned}Stacked lines without alignment
LaTeX\begin{gathered} x + y = 5 \\ x - y = 1 \end{gathered}
In a LaTeX document
These commands work in the text of a .tex document (Overleaf, TeX Live, MiKTeX), not inside math. The box on the right shows what the compiled PDF looks like.
Line break inside a paragraph
LaTeXJane Doe\\ Department of Mathematics\\ Example UniversityCompiled resultJane Doe
Department of Mathematics
Example University
New paragraph with a blank line
LaTeXThis is the first paragraph. This is the second paragraph.Compiled resultThis is the first paragraph.
This is the second paragraph.
Paragraph spacing instead of indents
LaTeX\usepackage{parskip} ... First paragraph. Second paragraph, separated by space.Compiled resultFirst paragraph.
Second paragraph, separated by space.
\\ or a new paragraph
A blank line starts a new paragraph: LaTeX indents it (or adds space with parskip) and treats it as a new unit of text. \\ only moves to the next line inside the same paragraph, which suits addresses, poems and title blocks. Using \\ to separate paragraphs gives the "Underfull \hbox" warnings and wrong spacing.
"There's no line here to end"
This error appears when \\ comes where no line has started, for example right after a section title, at the start of a paragraph or twice in a row for vertical space. Use \vspace{1em} or a blank line instead.
Inside equations, \\ only works in environments that have rows: aligned, gathered, align, multline, cases and matrices. A single equation or $$ … $$ cannot be broken with \\.
Common mistakes
Double
\\for space causes "There's no line here to end"; use a blank line.Instead ofParagraph one.\\\\ Paragraph two.WriteParagraph one. Paragraph two.Nothing to end after a heading; LaTeX already starts a new line.
Instead of\section{Intro}\\Write\section{Intro}Plain display math has one line; use an environment with rows.
Instead of$$ a = b \\ c = d $$Write\begin{aligned} a &= b \\ c &= d \end{aligned}
In Overleaf, MathJax and Word
Overleaf and pdfLaTeX
All commands work without packages;
\usepackage{parskip}switches to space between paragraphs.MathJax and KaTeX
MathJax and KaTeX support
\\insidealigned,gathered,casesand matrices. In Markdown, a line break in text is two trailing spaces or a blank line, not\\.Microsoft Word
In Word, Enter starts a paragraph and Shift+Enter a line break. In an equation, Shift+Enter breaks the equation inside the same math zone.
Already have the whole document?
Move complete papers between PDF, Word and LaTeX without retyping; every equation stays editable.
- PDF to LaTeXTurn a paper or textbook PDF into a .tex project with every equation.10 credits per page
- Word to LaTeXA .docx with Word equations becomes LaTeX ready for Overleaf.10 credits per page
- LaTeX to WordA whole .tex file becomes a .docx whose equations open in Word.5 credits per file
Single printed formulas are free: 3 a day without an account, 6 with a free account. New accounts get 30 credits to try handwriting, pages and documents; failed conversions return their credits. See plans and credit prices.
New line and line break in LaTeX: questions
- How do I start a new line in LaTeX?
- Use
\\or\newline. For a new paragraph, leave a blank line. - What is the difference between \\ and \newline?
- In text they do the same. Only
\\works in tables and equations, and it accepts extra space like\\[6pt]. - How do I break a long equation onto two lines?
- Put it in
alignedormultlineand use\\where the line should break.
Related LaTeX reference
- How to Write a Multiline Equation in LaTeXalign and align* for aligned lines, aligned inside $$ … $$, split, gather and multline for long formulas and systems of equations.
- How to Start a New Page in LaTeX\newpage, \clearpage, \cleardoublepage and \pagebreak compared, floats, blank pages and breaks inside long equations.
- How to Add Space in LaTeX EquationsThe math spacing commands from \! to \qquad with their widths, \hspace, \text{ } and \phantom.
- How to Type a Backslash in LaTeXThe \ character in text (\textbackslash), in math (\backslash), in code (\verb) and as set minus (\setminus).
- How to Add a Footnote in LaTeX\footnote basics, symbol marks, footnotes in tables and minipages, and notes on equations.
- How to Cite in LaTeXA .bib file, \cite{key}, BibTeX or biblatex, citation styles, citing websites and fixing [?].
- LaTeX equation editorSymbol panel, live preview, and PNG, SVG, MathML or Word export.
- All LaTeX reference pagesSymbols, math structures and text formatting in one list.
Have the formula as a picture?
Paste a screenshot or photo of the equation and get its LaTeX, ready to copy or open in the editor.
Convert an image to LaTeX