Table captions in LaTeX: above or below?

Most journals and conference templates put table captions above the table and figure captions below. In LaTeX the position is simply where you type \caption: before \begin{tabular} for above. Put \label directly after \caption so references point at the table, and check your template's author instructions, because a few styles differ.

Convert a table from a PDF or screenshot →

By TableToLatex · · Examples tested with pdfLaTeX, TeX Live 2023, caption 3.6

Where LaTeX puts the caption

LaTeX prints a caption wherever you type \caption. Typed before \begin{tabular} it prints above the table, and typed after \end{tabular} it prints below. The placement rule therefore comes from the venue, not from LaTeX. The NeurIPS formatting instructions say the table number and title always appear before the table. The ACM acmart class sets table captions to the top itself. IEEE style labels tables above, as university style guides summarise it, and the IEEEtran class source spaces table captions on that assumption. APA style also puts the number and title above.

Caption above, label directly after it (illustrative numbers)
% preamble: \usepackage{booktabs} \usepackage{caption}
\captionsetup[table]{position=above}   % restores the gap under the caption

\begin{table}[htbp]
  \centering
  \caption[Top-1 accuracy]{Top-1 accuracy (\%) on two datasets. Higher is better.}
  \label{tab:acc}                       % directly after \caption
  \begin{tabular}{lcc}
    \toprule
    Method & Dataset A & Dataset B \\
    \midrule
    Baseline & 71.2 & 64.8 \\
    Ours & 74.8 & 67.1 \\
    \bottomrule
  \end{tabular}
\end{table}

Table~\ref{tab:acc} reports the results.

The standard classes assume captions sit below, so the gap under a caption is zero. In a test, a caption above a booktabs table in the article class touched the top rule until the caption package set the position. Rules and spacing for the table itself are covered in booktabs versus hline.

If your style wants captions below, the order is simply reversed.

Caption below
\begin{table}[htbp]
  \centering
  \begin{tabular}{lcc}
    % ... rows ...
  \end{tabular}
  \caption{Caption below the table.}
  \label{tab:acc}
\end{table}

A table that is not in a float needs \captionof, because a bare \caption stops with "LaTeX Error: \caption outside float".

Caption for a table outside a float
% preamble: \usepackage{caption}
\begin{center}
  \captionof{table}{A table set outside a float.}
  \label{tab:inline}
  \begin{tabular}{lc}
    % ... rows ...
  \end{tabular}
\end{center}

Notes belong below the bottom rule while the caption stays above; see table footnotes with threeparttable. In a two-column template the same rule holds inside a starred float, as described in two-column tables.

Caption a table in six steps

  1. 1

    Find the rule

    Open the venue's author instructions or the template's sample table. If they disagree with a habit of yours, they win.

  2. 2

    Place the caption

    Type \caption{...} before \begin{tabular} to print it above the table, or after \end{tabular} to print it below.

  3. 3

    Put the label straight after

    Write \label{tab:name} on the next line, after \caption and inside the same table environment.

  4. 4

    Fix the spacing

    In the plain article class a caption above a table touches the top rule. Add the caption package and \captionsetup[table]{position=above}, unless your template already does it.

  5. 5

    Write a self-contained caption

    State what is measured, the units, and what bold or an asterisk means, so the table makes sense without the surrounding text.

  6. 6

    Reference and recompile

    Cite the table with Table~\ref{tab:name} and compile twice so the number resolves.

Table caption position by template

Template or styleTable captionWhat to know
NeurIPS styleAboveIts instructions say the table number and title always appear before the table, and suggest booktabs.
IEEEtranAboveThe class source spaces table captions on the assumption that they sit above the table.
acmart (ACM)AboveThe class sets \captionsetup[table]{position=top} itself, so type \caption first.
APA 7th editionAboveTable number and title above the table; notes below it.
Plain article classWhere you type itSpacing is tuned for captions below; use the caption package for above.
Your own templateFollow its sampleA sample table in the template beats any general rule.

What goes wrong

  • The caption touches the top rule. The article class puts no space below a caption. Add \captionsetup[table]{position=above}.
  • The reference shows a section number. A \label placed before \caption records the wrong counter. In a test, Table~\ref printed 2, the section, where the table was number 1.
  • LaTeX Error: \caption outside float. The caption sits in a center environment or a bare tabular. Wrap the table in table or switch to \captionof.
  • A long caption floods the list of tables. Provide a short title in square brackets.
  • Mixed positions in one paper. Some captions above, some below. Pick the template's rule and apply it to every table.
  • A table split over pages. longtable takes its caption inside the environment, ending with \\, not in a table float.

How TableToLatex helps

TableToLatex writes each table inside a table environment with a placeholder \caption{Table 1} followed by \label{tab:1}, both above the tabular, which matches the most common convention and the right label order. Replace the placeholder with your own caption, and move it below the tabular if your venue asks for that. Try the LaTeX table generator. The table tool is free and runs in your browser. Paste a tab-separated range from a spreadsheet. See pricing.

Questions about table captions

Should a table caption go above or below the table?+

Most computer-science and engineering templates put it above, and APA style does too, while figure captions go below. The rule belongs to the venue, so check its instructions or the sample table in its template.

How do I put a caption above a table in LaTeX?+

Type \caption before \begin{tabular}, inside the table environment. LaTeX prints the caption wherever the command appears, so moving it is all that is needed.

Why is my caption touching the table?+

In the standard classes the space below a caption is zero, because they assume captions sit below. Load the caption package and add \captionsetup[table]{position=above}, which also fixes the spacing.

Why does my table reference show the wrong number?+

The \label came before the \caption, so it recorded the section counter instead of the table counter. In a test the reference printed the section number. Move \label to directly after \caption.

How do I use a short title in the list of tables?+

Give \caption an optional argument: \caption[Top-1 accuracy]{A longer caption with all the detail.}. The list of tables uses the short form.

How do I caption a table outside a table environment?+

\caption alone fails there with "LaTeX Error: \caption outside float". Use \captionof{table}{...} from the caption package, inside a center environment or a minipage.

Where do table notes go if the caption is above?+

Below the bottom rule, inside the same float. The threeparttable package places the notes under the table at its width while the caption stays above.

Keep reading

  • booktabs vs hline

    Why journals and templates favour booktabs, with a before and after snippet.

  • Table footnotes

    tablenotes, tnote marks, symbols, and why plain footnotes disappear.

  • Two-column tables

    table*, [!t] placement, widths and float order in IEEEtran-style templates.

Have a table in a spreadsheet? Paste it into the table tool, or see all LaTeX table guides.