Underleaf Logo
Underleaf
BlogPricing
Log InTry Free

Learn LaTeX

Getting Started

  • What is LaTeX?
  • LaTeX for Beginners

How to Create Tables in LaTeX

Tables are essential for presenting data in a structured format. This guide covers everything you need to know about creating and formatting tables in LaTeX, from basic structures to advanced formatting options.

Basic Table Structure

The basic table structure in LaTeX uses the tabular environment:

LeftCenterRight
123
456

LaTeX code:

The {|l|c|r|} specifies three columns with vertical lines (|) and different alignments: left (l), center (c), and right (r).

Table Environment

For floating tables with captions, use the table environment:

Sample Table

Header 1Header 2
Value 1Value 2
Value 3Value 4

LaTeX code:

Multicolumn and Multirow

Create spanning cells using multicolumn and multirow commands:

Title Spanning Three Columns
Col 1Col 2Col 3
123

LaTeX code:

Professional Tables with booktabs

The booktabs package provides commands for creating professional-quality tables:

ItemQuantityPrice
Apple5$0.99
Orange3$0.75
Banana4$0.50

LaTeX code:

Best Practices

  • Use the booktabs package for professional-looking tables without vertical lines
  • Avoid using too many vertical lines as they can make tables harder to read
  • Use consistent spacing and alignment throughout your document
  • Consider using the tabularx package for tables that need to fit a specific width
  • Use the table environment for floating tables with captions

Try it free

Skip the syntax — let AI write it.

Snap a photo of an equation, a table, or full handwritten notes and Underleaf turns it into clean, compilable LaTeX in seconds. 10 free credits every month, no credit card required.

Convert your page
Handwritten notes converted into a typeset LaTeX document

How to Create Tables in LaTeX

Tables are essential for presenting data in a structured format. This guide covers everything you need to know about creating and formatting tables in LaTeX, from basic structures to advanced formatting options.

Basic Table Structure

The basic table structure in LaTeX uses the tabular environment:

LeftCenterRight
123
456

LaTeX code:

The {|l|c|r|} specifies three columns with vertical lines (|) and different alignments: left (l), center (c), and right (r).

Table Environment

For floating tables with captions, use the table environment:

Sample Table

Header 1Header 2
Value 1Value 2
Value 3Value 4

LaTeX code:

Multicolumn and Multirow

Create spanning cells using multicolumn and multirow commands:

Title Spanning Three Columns
Col 1Col 2Col 3
123

LaTeX code:

Professional Tables with booktabs

The booktabs package provides commands for creating professional-quality tables:

ItemQuantityPrice
Apple5$0.99
Orange3$0.75
Banana4$0.50

LaTeX code:

Best Practices

  • Use the booktabs package for professional-looking tables without vertical lines
  • Avoid using too many vertical lines as they can make tables harder to read
  • Use consistent spacing and alignment throughout your document
  • Consider using the tabularx package for tables that need to fit a specific width
  • Use the table environment for floating tables with captions
Underleaf Logo
Underleaf

Empowering students and researchers with AI-powered tools for academic writing.

Go to appContact us

Company

PricingBlogTutorialsConference TemplatesConference Deadlines

Free Tools

Image to LaTeXExcel to LaTeXArXiv to LaTeXTikZ GeneratorLaTeX Table GeneratorCitation GeneratorThesis GeneratorChrome ExtensionAll Tools

Ask AI about Underleaf

Ask ChatGPTAsk ClaudeAsk Perplexity

© 2026 Underleaf. All rights reserved.