FormaTeX
FatalTypography & Layout

Float Too Large for Page

! LaTeX Error: Float too large for page by Xpt.

What this error means

A figure or table is taller than the page's float area, so LaTeX cannot place it anywhere. This usually happens with very large images or tables placed inside a float environment.

Common causes

  • An image included at full natural size that is taller than the page
  • A long table placed in a table float environment
  • Multiple stacked images inside a single figure

How to fix it

Scale the image down: \includegraphics[width=\textwidth]{img}. For very tall content, use a full-page figure with \begin{figure}[p]. For long tables, use the longtable package instead of table.

Code examples

Causes the error
\documentclass{article}
\usepackage{graphicx}
\begin{document}

\begin{figure}[h]
  \includegraphics{huge-image.png}  % No size constraint
\end{figure}

\end{document}
Fixed
\documentclass{article}
\usepackage{graphicx}
\begin{document}

\begin{figure}[htbp]
  \centering
  \includegraphics[width=0.9\textwidth]{huge-image.png}
  \caption{Scaled to fit.}
\end{figure}

\end{document}

Related errors

Test the fix live

Paste your LaTeX into the playground and compile instantly.

One quick thing

We track anonymous usage — page views, feature usage, compilation events — to understand what works and what doesn't. No ads, no personal data, no third-party sharing.

Cookie policy