Fix float placement in LaTeX

When a figure or table appears on the wrong page, drifts far from where it is referenced, or forces a large block of whitespace, the cause is usually a restrictive float placement specifier like [h] or [H] that fights LaTeX's layout engine.

Quick answer

To stop figures landing on the wrong page, replace restrictive placement specifiers like [h] and [H] with flexible ones such as [t], [tb], or [htbp], which let LaTeX place the float where it fits. LaTeX Formatter flags risky placements and rewrites them based on your document type (relaxing for papers, preserving inline placement for theses).

Why figures move to the wrong page

[h] asks LaTeX to place the float 'here'. If there is not enough room, LaTeX defers it - often to the top of a later page - while [H] (from the float package) forces it exactly in place, frequently leaving a tall gap above it.

When a float cannot fit, it can also push following floats ahead of it, so Figure 3 ends up printed before Figure 2.

How to fix it manually

Prefer flexible specifiers: [t] (top), [tb] (top or bottom), or [htbp] which lets LaTeX try here, top, bottom, then a dedicated float page.

Reserve [H] for cases where the figure truly must stay inline (some thesis styles), and avoid it in space-constrained two-column papers.

Make sure each float is referenced with \ref near where you want it to appear so the placement reads naturally.

How LaTeX Formatter fixes it automatically

LaTeX Formatter flags risky [H]/[h] placements that are likely to cause page breaks or whitespace and rewrites them to safer specifiers tuned to your document type. For a thesis it preserves inline placement where that is the convention; for a paper it relaxes to [t].

It also reports figures that are never referenced and figures that appear far from their first \ref.

Before and after

Restrictive placement relaxed

Before

\begin{figure}[H] ... \end{figure}

After

\begin{figure}[t] ... \end{figure}

Who this helps

  • Conference authors with tight layouts
  • Thesis writers with dozens of figures
  • Anyone seeing 'Figure ?? on page ??'

Frequently asked questions

What does [htbp] mean in LaTeX?+

It is a list of placement preferences: h (here), t (top), b (bottom), p (a separate float page). LaTeX tries them in order, giving its layout engine the flexibility to avoid bad breaks.

Why is my Figure 3 appearing before Figure 2?+

A float that cannot fit gets deferred, and a later float that does fit can be typeset first. Using flexible placement specifiers and keeping floats near their references prevents this reordering.

Check your paper before reviewers do

Upload your .tex or .zip and get a corrected file plus a plain-English changelog in under 60 seconds.

Check My Paper - Free