Skip to content

You can add a caption to a table by wrapping the tabular environment in a table environment:

\caption{Your caption.}

The following code, which also uses the center environment, demonstrates adding a table caption. It also uses \label{demo-table} to create a label for use in referencing the table (via \ref{demo-table}):

Table \ref{demo-table} has a caption:
\caption{Your caption.}
\begin{tabular}{||c c c c||} 
 Col1 & Col2 & Col2 & Col3 \\ [0.5ex] 
 1 & 6 & 87837 & 787 \\ 
 2 & 7 & 78 & 5415 \\
 3 & 545 & 778 & 7507 \\
 4 & 545 & 18744 & 7560 \\
 5 & 88 & 788 & 6344 \\ [1ex] 

 Open this example in Overleaf

This example produces the following output, with the table centred on the page:

Adding a table caption to a table in LaTeX

Note that the table environment will also let the table "float" to where LaTeX thinks it should go. Here, we applied the float placement specifier !h to place the table "here", encouraging LaTeX to locate it below the line of text. If you want more control over float placement, you can use additional specifiers as described in this section of the LaTeX Wikibook.

Overleaf guides

LaTeX Basics


Figures and tables

References and Citations


Document structure





Field specific

Class files

Advanced TeX/LaTeX