Underleaf Logo
Underleaf
BlogPricing
Log InTry Free

Learn LaTeX

Getting Started

  • What is LaTeX?
  • LaTeX for Beginners

Page Breaks in LaTeX: \newpage, \clearpage and When to Use Each

For a plain forced break, use \newpage. If figures or tables are pending, use \clearpage so they get placed first. Avoid \pagebreak for routine breaks — it stretches the space between paragraphs to fill the page, and the result usually looks worse than the gap you were trying to fix.

\newpage vs \pagebreak

Both end the current page. The difference is what happens to the leftover space. \newpage leaves it at the bottom, like hitting a page break in a word processor. \pagebreak tells TeX the page is full, so TeX stretches the vertical glue between paragraphs until the last line sits on the bottom margin. On a half-empty page that means huge, uneven paragraph gaps.

\pagebreak does have one legitimate use: as a suggestion. With an optional digit from 0 to 4 it tells TeX how much you want a break here, without demanding one:

\pagebreak[2] is the useful one: it nudges TeX toward breaking at a sensible spot while leaving it free to decide otherwise when the text changes. Bare \pagebreak means [4], with the stretching described above.

\clearpage: the one to use when figures pile up

\clearpage does everything \newpage does, plus it flushes the float queue: every figure and table LaTeX has been holding gets placed before the new page starts. This is the standard fix when floats have drifted three pages past the paragraph that references them — drop a \clearpage at the end of the section and they all land there.

\cleardoublepage for two-sided documents

In a two-sided document (book, or \documentclass[twoside]{report}), chapters conventionally start on a right-hand (odd) page. \cleardoublepage is \clearpage plus a blank left-hand page whenever one is needed to make that happen. The book class already calls it for each \chapter with the default openright option — you only type it yourself for hand-built front matter or part pages.

Preventing breaks

Three tools, in increasing order of usefulness:

ToolWhat it does
\nopagebreak[4]Discourages a break right here; a hint, not a wall
samepage environmentKeeps its contents on one page; fine for short blocks, causes overfull pages for long ones
\needspace{4\baselineskip}Breaks early only if less than four lines of room remain (needs the needspace package)

\needspace is the one worth learning. The classic problem it solves is a heading stranded as the last line of a page:

Unlike a hard \newpage, it does nothing when there is enough room — so it keeps working after every edit instead of leaving a mystery gap.

Stop hand-tuning breaks until the document is final

Every manual break is a bet that the text above it never changes. Add a sentence in Section 2 and each \newpage below it now fires in the wrong place, leaving half-empty pages you have to hunt down one by one. The sane workflow: write the whole document with no manual breaks, let LaTeX do its job, and only in the final pass — after the text is frozen — fix the handful of pages that genuinely break badly. Prefer \needspace and \pagebreak[2] style hints over hard breaks even then; they degrade gracefully when a last-minute edit sneaks in anyway.

Frequently asked questions

What is the difference between \newpage and \pagebreak?

\newpage ends the page and leaves the remaining space empty at the bottom. \pagebreak ends the page but stretches the vertical space between paragraphs so the text still reaches the bottom margin — which usually looks worse. Use \newpage unless you specifically want that stretching.

When should I use \clearpage instead of \newpage?

When floats are involved. \clearpage forces every pending figure and table to be placed before starting the new page; \newpage does not. If figures have drifted pages away from where you put them, \clearpage is the command that reels them in.

How do I keep a heading from being stranded at the bottom of a page?

Load the needspace package and put \needspace{4\baselineskip} before the heading. It breaks the page early only if fewer than four lines of room remain, so the heading always stays with its first lines of text. This beats inserting manual \newpage commands, which go stale as the document changes.

How do I prevent a page break inside a block of text?

Wrap the block in the samepage environment, or put \nopagebreak at the spot you want to protect. For anything longer than a few lines, though, forcing it onto one page creates overfull pages — often a minipage or a rethink of the layout is the honest fix.

Try it free

Skip the syntax — let AI write it.

Snap a photo of an equation, a table, or full handwritten notes and Underleaf turns it into clean, compilable LaTeX in seconds. 10 free credits every month, no credit card required.

Convert your page
Handwritten notes converted into a typeset LaTeX document

Page Breaks in LaTeX: \newpage, \clearpage and When to Use Each

For a plain forced break, use \newpage. If figures or tables are pending, use \clearpage so they get placed first. Avoid \pagebreak for routine breaks — it stretches the space between paragraphs to fill the page, and the result usually looks worse than the gap you were trying to fix.

\newpage vs \pagebreak

Both end the current page. The difference is what happens to the leftover space. \newpage leaves it at the bottom, like hitting a page break in a word processor. \pagebreak tells TeX the page is full, so TeX stretches the vertical glue between paragraphs until the last line sits on the bottom margin. On a half-empty page that means huge, uneven paragraph gaps.

\pagebreak does have one legitimate use: as a suggestion. With an optional digit from 0 to 4 it tells TeX how much you want a break here, without demanding one:

\pagebreak[2] is the useful one: it nudges TeX toward breaking at a sensible spot while leaving it free to decide otherwise when the text changes. Bare \pagebreak means [4], with the stretching described above.

\clearpage: the one to use when figures pile up

\clearpage does everything \newpage does, plus it flushes the float queue: every figure and table LaTeX has been holding gets placed before the new page starts. This is the standard fix when floats have drifted three pages past the paragraph that references them — drop a \clearpage at the end of the section and they all land there.

\cleardoublepage for two-sided documents

In a two-sided document (book, or \documentclass[twoside]{report}), chapters conventionally start on a right-hand (odd) page. \cleardoublepage is \clearpage plus a blank left-hand page whenever one is needed to make that happen. The book class already calls it for each \chapter with the default openright option — you only type it yourself for hand-built front matter or part pages.

Preventing breaks

Three tools, in increasing order of usefulness:

ToolWhat it does
\nopagebreak[4]Discourages a break right here; a hint, not a wall
samepage environmentKeeps its contents on one page; fine for short blocks, causes overfull pages for long ones
\needspace{4\baselineskip}Breaks early only if less than four lines of room remain (needs the needspace package)

\needspace is the one worth learning. The classic problem it solves is a heading stranded as the last line of a page:

Unlike a hard \newpage, it does nothing when there is enough room — so it keeps working after every edit instead of leaving a mystery gap.

Stop hand-tuning breaks until the document is final

Every manual break is a bet that the text above it never changes. Add a sentence in Section 2 and each \newpage below it now fires in the wrong place, leaving half-empty pages you have to hunt down one by one. The sane workflow: write the whole document with no manual breaks, let LaTeX do its job, and only in the final pass — after the text is frozen — fix the handful of pages that genuinely break badly. Prefer \needspace and \pagebreak[2] style hints over hard breaks even then; they degrade gracefully when a last-minute edit sneaks in anyway.

Frequently asked questions

What is the difference between \newpage and \pagebreak?

\newpage ends the page and leaves the remaining space empty at the bottom. \pagebreak ends the page but stretches the vertical space between paragraphs so the text still reaches the bottom margin — which usually looks worse. Use \newpage unless you specifically want that stretching.

When should I use \clearpage instead of \newpage?

When floats are involved. \clearpage forces every pending figure and table to be placed before starting the new page; \newpage does not. If figures have drifted pages away from where you put them, \clearpage is the command that reels them in.

How do I keep a heading from being stranded at the bottom of a page?

Load the needspace package and put \needspace{4\baselineskip} before the heading. It breaks the page early only if fewer than four lines of room remain, so the heading always stays with its first lines of text. This beats inserting manual \newpage commands, which go stale as the document changes.

How do I prevent a page break inside a block of text?

Wrap the block in the samepage environment, or put \nopagebreak at the spot you want to protect. For anything longer than a few lines, though, forcing it onto one page creates overfull pages — often a minipage or a rethink of the layout is the honest fix.

Underleaf Logo
Underleaf

Empowering students and researchers with AI-powered tools for academic writing.

Go to appContact us

Company

PricingBlogTutorialsConference TemplatesConference Deadlines

Free Tools

Image to LaTeXExcel to LaTeXArXiv to LaTeXTikZ GeneratorLaTeX Table GeneratorCitation GeneratorThesis GeneratorChrome ExtensionAll Tools

Ask AI about Underleaf

Ask ChatGPTAsk ClaudeAsk Perplexity

© 2026 Underleaf. All rights reserved.