Skip to main content
If you searched for latex tabular, this is the page you want. The tabular environment creates the actual rows and columns inside a LaTeX table.
Quick answer: define the column layout in \begin{tabular}{...}, separate cells with &, and end each row with \\.Related topics: Creating tables in LaTeX | Advanced tables | Professional tables

Basic tabular Syntax

  • l means left-aligned column
  • c means centered column
  • r means right-aligned column
  • & separates columns
  • \\ ends the row

A Minimal Example

Column Alignment Options

For m{} and b{}, load the array package.

Horizontal Lines and Better Rules

The simplest way to draw lines is with \hline: For cleaner, publication-style tables, prefer booktabs:

table vs tabular

These are different:
  • tabular creates the grid of rows and columns
  • table is a float wrapper used for captions, labels, and placement

Spanning Columns with \multicolumn

Use \multicolumn when one cell should cover multiple columns:

When tabular Is Not Enough

Use a different tool when you need more than a basic grid:
  • tabularx for tables that should fill a fixed width
  • longtable for tables that span multiple pages
  • siunitx when you need decimal alignment
  • booktabs for cleaner horizontal rules

Common tabular Problems

  • Columns do not line up: check that every row has the same number of & separators.
  • Text runs too wide: switch to p{width} or tabularx.
  • Caption does not work: wrap tabular inside table.
  • Numbers look uneven: use siunitx instead of plain r alignment.

Next Step

If you are starting from scratch, continue with creating tables in LaTeX. If your issue is layout quality rather than syntax, go to advanced tables.