LaTeX Warning: Float too large for page by <n>pt on input line <n>.

A figure or table is taller than the text area, so it overprints the footer or runs off the page. Scale it to fit, or split a long table.

Help centre › LaTeX errors › Floats and layout · Warning: the document still compiles

What the log says

LaTeX Warning: Float too large for page by 87.6012pt on input line 14.

[2]

What it means

A figure or table (with its caption) is taller than \textheight. LaTeX places it on a page of its own anyway, and the bottom runs into the footer or off the page. The amount shown is how much it would have to shrink to fit.

Causes and fixes

Most common first. Each example is a complete document; the first fails with this message, the second is the same document fixed.

1. An image scaled by width that ends up too tall

Give both limits and keep the proportions: \includegraphics[width=\linewidth,height=0.8\textheight,keepaspectratio]{…}. The caption needs room too, so stay below the full \textheight.

Fails
\documentclass{article}
\begin{document}
\begin{figure}[p]
\centering
\rule{0.8\linewidth}{1.1\textheight}% stands in for a tall \includegraphics
\caption{All panels of the experiment}
\end{figure}
Text.
\end{document}
Fixed
\documentclass{article}
\begin{document}
\begin{figure}[p]
\centering
\rule{0.6\linewidth}{0.85\textheight}% \includegraphics[width=\linewidth,height=0.85\textheight,keepaspectratio]{…}
\caption{All panels of the experiment}
\end{figure}
Text.
\end{document}

2. A long table inside a table float

A float cannot break across pages. Use longtable (no table environment around it) for tables that run over a page; its caption and header can repeat on each page.

Fails
\documentclass{article}
\begin{document}
\begin{table}[p]
\centering
\caption{Measurements at every site}
\begin{tabular}{lr}
Site & Value \\ \hline
Site 1 & 7 \\
Site 2 & 14 \\
Site 3 & 21 \\
Site 4 & 28 \\
Site 5 & 35 \\
Site 6 & 42 \\
Site 7 & 49 \\
Site 8 & 56 \\
Site 9 & 63 \\
Site 10 & 70 \\
Site 11 & 77 \\
Site 12 & 84 \\
Site 13 & 91 \\
Site 14 & 98 \\
Site 15 & 105 \\
Site 16 & 112 \\
Site 17 & 119 \\
Site 18 & 126 \\
Site 19 & 133 \\
Site 20 & 140 \\
Site 21 & 147 \\
Site 22 & 154 \\
Site 23 & 161 \\
Site 24 & 168 \\
Site 25 & 175 \\
Site 26 & 182 \\
Site 27 & 189 \\
Site 28 & 196 \\
Site 29 & 203 \\
Site 30 & 210 \\
Site 31 & 217 \\
Site 32 & 224 \\
Site 33 & 231 \\
Site 34 & 238 \\
Site 35 & 245 \\
Site 36 & 252 \\
Site 37 & 259 \\
Site 38 & 266 \\
Site 39 & 273 \\
Site 40 & 280 \\
Site 41 & 287 \\
Site 42 & 294 \\
Site 43 & 301 \\
Site 44 & 308 \\
Site 45 & 315 \\
Site 46 & 322 \\
Site 47 & 329 \\
Site 48 & 336 \\
Site 49 & 343 \\
Site 50 & 350 \\
Site 51 & 357 \\
Site 52 & 364 \\
Site 53 & 371 \\
Site 54 & 378 \\
Site 55 & 385 \\
Site 56 & 392 \\
Site 57 & 399 \\
Site 58 & 406 \\
Site 59 & 413 \\
Site 60 & 420 \\
Site 61 & 427 \\
Site 62 & 434 \\
Site 63 & 441 \\
Site 64 & 448 \\
Site 65 & 455 \\
Site 66 & 462 \\
Site 67 & 469 \\
Site 68 & 476 \\
Site 69 & 483 \\
Site 70 & 490 \\
\end{tabular}
\end{table}
Text.
\end{document}
Fixed
\documentclass{article}
\usepackage{longtable}
\begin{document}
\begin{longtable}{lr}
\caption{Measurements at every site}\\
Site & Value \\ \hline
\endhead
Site 1 & 7 \\
Site 2 & 14 \\
Site 3 & 21 \\
Site 4 & 28 \\
Site 5 & 35 \\
Site 6 & 42 \\
Site 7 & 49 \\
Site 8 & 56 \\
Site 9 & 63 \\
Site 10 & 70 \\
Site 11 & 77 \\
Site 12 & 84 \\
Site 13 & 91 \\
Site 14 & 98 \\
Site 15 & 105 \\
Site 16 & 112 \\
Site 17 & 119 \\
Site 18 & 126 \\
Site 19 & 133 \\
Site 20 & 140 \\
Site 21 & 147 \\
Site 22 & 154 \\
Site 23 & 161 \\
Site 24 & 168 \\
Site 25 & 175 \\
Site 26 & 182 \\
Site 27 & 189 \\
Site 28 & 196 \\
Site 29 & 203 \\
Site 30 & 210 \\
Site 31 & 217 \\
Site 32 & 224 \\
Site 33 & 231 \\
Site 34 & 238 \\
Site 35 & 245 \\
Site 36 & 252 \\
Site 37 & 259 \\
Site 38 & 266 \\
Site 39 & 273 \\
Site 40 & 280 \\
Site 41 & 287 \\
Site 42 & 294 \\
Site 43 & 301 \\
Site 44 & 308 \\
Site 45 & 315 \\
Site 46 & 322 \\
Site 47 & 329 \\
Site 48 & 336 \\
Site 49 & 343 \\
Site 50 & 350 \\
Site 51 & 357 \\
Site 52 & 364 \\
Site 53 & 371 \\
Site 54 & 378 \\
Site 55 & 385 \\
Site 56 & 392 \\
Site 57 & 399 \\
Site 58 & 406 \\
Site 59 & 413 \\
Site 60 & 420 \\
Site 61 & 427 \\
Site 62 & 434 \\
Site 63 & 441 \\
Site 64 & 448 \\
Site 65 & 455 \\
Site 66 & 462 \\
Site 67 & 469 \\
Site 68 & 476 \\
Site 69 & 483 \\
Site 70 & 490 \\
\end{longtable}
Text.
\end{document}

3. Subfigures stacked beyond one page

Several subfigures in one figure add up. Make each smaller, place them side by side, or split them into two figures (the second captioned as continued).

In Manulyx

The editor lists the warning with the input line of the float, so you can go straight to it.

Write in Manulyx for free · Journal templates

More in floats and layout

Every example on this page was compiled with pdfLaTeX to check that it fails and is fixed as described. All LaTeX errors