To start a new line in LaTeX, end the line with \\ (two backslashes) or \newline. To start a new paragraph, leave a blank line in the source or write \par. Pressing Enter once does nothing: LaTeX treats a single line break in your source as a space. This LaTeX new line guide shows each command with tested code, explains the “There’s no line here to end” error, and covers line breaks in tables, titles and paragraphs.
Every example on this page was compiled with Tectonic 0.17 (a self-contained TeX engine based on XeTeX) on 25 November 2026, and we read the output of each PDF to confirm where the lines broke. The code is standard LaTeX and works the same in Overleaf. New to LaTeX? Start with our beginner’s LaTeX tutorial.
TL;DR: LaTeX Line Break Commands
| You want | Use | Notes |
|---|---|---|
| A new line in the same paragraph | \\ or \newline | The next line has no indent |
| A new line with extra space above it | \\[6pt] | Any length: pt, mm, cm, em |
| A new line but never a page break there | \\* | |
| A new paragraph | A blank line, or \par | Indented by default |
| A break that keeps the line justified | \linebreak | Stretches the spaces in the line |
| A line break inside a table cell | \newline in a p{} column, or \makecell | \\ ends the row |
| Space between paragraphs instead of indents | \usepackage{parskip} | Do not use \\ for this |
LaTeX New Line vs New Paragraph
LaTeX separates two ideas that word processors mix up. A line break ends the current line but stays in the same paragraph. A paragraph break ends the paragraph, and the next one starts with an indent (in the standard classes). This example uses all four methods:
\documentclass{article}
\begin{document}
First line\\
Second line, after a double backslash.
A blank line in the source starts a new paragraph,
and a single line break in the source is just a space.\newline
This line comes after \verb|\newline|.\par
This paragraph starts after \verb|\par|.
\end{document}The compiled PDF shows what happened to each line:
\\moved “Second line” to a new line with no indent: it is still the same paragraph.- The blank line started a new, indented paragraph.
- The single line break after “starts a new paragraph,” did nothing. The two source lines were joined with a space and wrapped like normal text.
\newlinebehaved exactly like\\here.\parbehaved exactly like the blank line.
So the rule of thumb is simple: use a blank line between paragraphs, and use \\ only where a line must end at a fixed point, such as an address, a poem or a title.
\\ vs \newline: what is the difference?
In running text they do the same thing. The differences are elsewhere. \\ takes optional arguments (* and a length, shown below) and has a special meaning inside tables, tabular, array and align, where it ends a row. \newline takes no arguments and always means “break this line”, which is why it is the one to use inside a table cell. The LaTeX2e reference for \newline notes that it can only be used in paragraph mode.
Add Space After a Line Break: \\[length]
Put a length in square brackets after \\ to add vertical space before the next line:
\documentclass{article}
\begin{document}
\noindent
Ada Lovelace\\[6pt]
12 Analytical Street\\
London\\[1cm]
Dear reader,
\end{document}We measured the baselines in the PDF: the normal gap between lines was 12pt, the gap after \\[6pt] was 18pt (12 + 6), and the gap after \\[1cm] was about 40pt (12 + 28.45pt). \noindent stops the first line from being indented, which is what you want for an address block. For larger layout gaps, \vspace is the usual tool.
\\* works like \\ but tells LaTeX not to start a new page right after this line. You can combine the two: \\*[6pt]. The LaTeX2e reference for \\ documents both forms.
Fix “LaTeX Error: There’s no line here to end”
This is the most common line-break error. It appears when \\ comes before any text in a paragraph, so there is no line for it to end:
\documentclass{article}
\begin{document}
\\
This paragraph starts with a line break.
\end{document}Tectonic stopped with:
error: n3-error.tex:4: LaTeX Error: There's no line here to end.The same error appears if you put \\ on its own line straight after a blank line, which is a common way people try to add an empty line between paragraphs:
\documentclass{article}
\begin{document}
Some text.
\\
More text.
\end{document}Our build failed on line 6 with the same message. The fixes:
- Delete the
\\if you only wanted a new paragraph. The blank line already does that. - Use
\vspace{\baselineskip}if you want an empty line’s worth of space between paragraphs. - Use the parskip package (below) if you want space between every paragraph.
- Use
\mbox{}\\only if you really need a forced empty line: the empty box gives\\a line to end.
Underfull \hbox (badness 10000) after \\
The related mistake is ending a paragraph with \\ before a blank line:
\documentclass{article}
\begin{document}
A paragraph that ends with a double backslash.\\
The next paragraph.
\end{document}This compiles, but Tectonic printed Underfull \hbox (badness 10000) in paragraph at lines 3--4. LaTeX ended the line, then found the paragraph was over and had to set an empty line. The PDF looks almost the same, but the warnings pile up in a long document. Remove the \\ at the end of paragraphs.
\linebreak: Break the Line but Keep It Justified
\\ and \newline leave the line short, like pressing Shift+Enter in a word processor. \linebreak also ends the line, but LaTeX then stretches the spaces so the line still reaches the right margin. The reference entry for \linebreak also covers its opposite, \nolinebreak.
\documentclass{article}
\begin{document}
This sentence is long enough to fill most of the first line, and we end it\\
with a double backslash so the rest goes to the next line.
This sentence is long enough to fill most of the first line, and we end it\linebreak
with linebreak, so LaTeX stretches the spaces to fill the line.
\end{document}
\linebreak is useful for fixing one bad line break in a justified paragraph. If the line is short, the stretched spaces look odd and LaTeX may warn about an underfull line, so use it sparingly.
Line Breaks Inside a Table Cell
Inside tabular, \\ ends the whole row, so you cannot use it to break a line inside a cell. Two methods work. In a p{width} column, the text wraps on its own and \newline forces a break. In any column type, the makecell package gives you a cell in which \\ means “new line”:
\documentclass{article}
\usepackage{makecell}
\begin{document}
\begin{tabular}{|l|p{4cm}|}
\hline
Command & Notes \\
\hline
\verb|\\| & Ends the table row.\newline Use \verb|\newline| for a break inside a \texttt{p} cell. \\
\hline
\makecell[l]{Two-line\\cell} & \verb|\makecell| works in any column type. \\
\hline
\end{tabular}
\end{document}In the PDF, the p{4cm} cell broke after “Ends the table row.” and the makecell cell printed “Two-line” and “cell” on separate lines, while the rows still ended where expected. For more on rules between rows (\hline, \cline and booktabs), see our LaTeX horizontal line guide.
Line Breaks in the Title and Author
\\ works inside \title and \author. It is the standard way to put an affiliation under a name:
\documentclass{article}
\title{A Very Long Report Title\\That Needs a Second Line}
\author{Ada Lovelace\\Analytical Engines Ltd}
\date{}
\begin{document}
\maketitle
\end{document}The title printed on two centred lines and the author block on two lines (name, then company). Avoid \\ inside \section titles: the break is also copied into the table of contents and the running headers. If you need it, give the short form separately: \section[Short title]{Long title\\second line}.
Space Between Paragraphs Instead of Indents
Many people reach for \\ or blank \\ lines because they want the paragraph style used on the web: no indent, and a gap between paragraphs. Do that with the parskip package instead:
\documentclass{article}
\usepackage{parskip}
\begin{document}
With the parskip package, paragraphs are separated by space
and have no first-line indent.
This is the second paragraph. No double backslash needed.
\end{document}The two paragraphs printed with no first-line indent and a gap between them, and the source stays clean. To remove only the indent on one paragraph, put \noindent at its start.
Common Line Break Mistakes
- Pressing Enter once and expecting a new line. A single line break in the source is a space. Use a blank line or
\\. - Using
\\to separate paragraphs. You lose the paragraph structure, get underfull warnings and can hit the “no line here to end” error. Use blank lines. - Several
\\in a row for extra space. Use\\[length]or\vspaceinstead. \\inside a table cell. It ends the row. Use\newlinein apcolumn or\makecell.- Text after
\\starting with a square bracket. LaTeX reads\\ [note]as a spacing argument and fails. Write\\{}[note]or\\ \relax [note].
Conclusion
Use a blank line for a new paragraph and \\ (or \newline) for a new line inside a paragraph. Add \\[length] when you need extra space, \linebreak when the line must stay justified, and \newline or makecell inside table cells. If you see “There’s no line here to end”, there is a \\ with no text before it: delete it. Next, learn how to change the font size in LaTeX and control page numbering. If you write in Overleaf, our Overleaf guide covers the editor.
How do I make a new line in LaTeX?
End the line with \\ or \newline. The next text starts on a new line in the same paragraph. For a new paragraph, leave a blank line in the source instead.
Why does pressing Enter not create a new line in LaTeX?
LaTeX treats a single line break in the source file as a space, so the lines are joined. Two line breaks (a blank line) start a new paragraph, and \\ forces a line break.
What is the difference between \\ and \newline in LaTeX?
In normal text they give the same result. \\ also accepts extra space (\\[6pt]) and a star form, and it ends a row inside tables and alignments. \newline always breaks the line, so use it inside table cells.
How do I fix “There’s no line here to end” in LaTeX?
The error means \\ appears before any text in a paragraph, often right after a blank line. Delete it if you wanted a new paragraph, or use \vspace{\baselineskip} if you wanted extra space.
How do I add a blank line between paragraphs in LaTeX?
Use \vspace{\baselineskip} between two paragraphs for one gap, or load \usepackage{parskip} to put space between every paragraph. Do not stack \\ commands.
How do I add a line break in a LaTeX table cell?
Use a p{width} column and write \newline where the break should go, or load the makecell package and write \makecell{first line\\second line} in any column.







