What a table of contents does and when you need one

A table of contents is a list at the beginning of a document that shows every heading and its page number, so readers can jump to the sections they want. You build it by marking your headings as actual headings (not just bold text), then letting your software generate the list automatically.

You need one when your document is long enough that readers can't scan it in a few seconds — typically 10 pages or more, or any document with more than five major sections. A table of contents is standard in reports, manuals, theses, and business proposals. Short documents like letters or one-page memos don't need one.

The advantage of generating it automatically rather than typing it by hand is that page numbers update themselves when you add or delete content. If you manually type "Chapter 3 starts on page 45" and then add five pages before it, you have to remember to change that number. An auto-generated table of contents fixes itself.

Key Takeaways

  • Your document must use heading styles (Heading 1, Heading 2) instead of just bold text for the table of contents to work.
  • Microsoft Word, Google Docs, and LibreOffice all generate tables of contents automatically from your heading styles.
  • The table of contents goes near the front of the document, usually after the title page but before the main text.
  • After you finish writing and editing, regenerate the table of contents so page numbers match the final version.

Setting up headings in Microsoft Word

Open your document and select the first heading you want to include. On the Home tab, look for the Styles section — you'll see options like "Heading 1", "Heading 2", and "Heading 3". Click the style that matches your heading's level in the document structure. Heading 1 is for main chapter titles, Heading 2 for subsections under those chapters, and Heading 3 for subsections under Heading 2s.

Go through your entire document and apply the correct heading style to every section title. Do not use bold text or larger font size as a substitute — Word's table of contents feature only recognizes actual heading styles. If you have a title page or introduction that shouldn't appear in the table of contents, leave it in Normal style instead.

Once all your headings are styled, place your cursor where you want the table of contents to appear — usually on a blank page after your title page. Go to the References tab and click "Table of Contents". Word shows you several design options. Pick one and click it. Word automatically scans your document, finds all the headings, and inserts a formatted list with page numbers.

Creating a table of contents in Google Docs

In Google Docs, select your first heading and click the Heading 1 button in the toolbar (it looks like a capital H with a number). If you don't see it, click the Format menu, then Paragraph Styles, then Heading 1. Apply Heading 2 and Heading 3 styles to your subheadings the same way.

Once your headings are styled throughout the document, place your cursor where you want the table of contents. Click Insert in the menu, then Table of Contents. Google Docs shows you two layout options — a plain list or a blue-linked version. Choose one. Google Docs builds the table of contents and makes each entry a clickable link to that section.

Google Docs updates the table of contents automatically as you work, so you don't have to regenerate it manually. If you add a new heading or change a heading's text, the table of contents reflects that change within seconds.

Using LibreOffice Writer

Select your first heading and go to the Format menu, then Paragraph. Click the Outline & Numbering tab and choose the outline level that matches your heading — Level 1 for main headings, Level 2 for subheadings. Click OK. Repeat this for every heading in your document.

Alternatively, use the Styles sidebar on the right side of the screen. Right-click your heading text and choose "New Paragraph Style", or simply click the Heading 1 style in the sidebar and it applies to your selected text. This method is faster if you have many headings.

Once all headings are styled, place your cursor where you want the table of contents and go to Insert in the menu, then Table of Contents, then Table of Contents. LibreOffice opens a dialog box where you can choose which heading levels to include and what the table looks like. Click OK and LibreOffice generates the list with page numbers.

Positioning the table of contents in your document

The table of contents almost always goes near the front of the document. In a report or thesis, it typically appears after the title page and any abstract or introduction, but before the main chapters. In a manual or guide, it often comes right after the cover page.

Insert a page break before and after the table of contents so it sits on its own page or pages. In Word, go to Insert and click Page Break. In Google Docs, press Ctrl+Enter (or Cmd+Enter on Mac). In LibreOffice, go to Insert and click Manual Break, then choose Page Break.

If your table of contents is very long — more than one page — that's normal and acceptable. Readers expect to flip through it to find what they need.

Updating page numbers after you finish editing

Every time you add, delete, or move content in your document, page numbers shift. Before you finalize or share your document, regenerate the table of contents so the page numbers match the current version.

In Word, right-click the table of contents and select "Update Field". A dialog appears asking whether to update page numbers only or the entire table. Choose "Update entire table" to catch any heading text changes as well. In Google Docs, the table updates automatically, so you don't need to do anything. In LibreOffice, right-click the table of contents and select "Update Index".

After regenerating, scroll through your document and spot-check a few page numbers to make sure they're correct. If a heading appears on page 12 in your document, it should show page 12 in the table of contents.

Troubleshooting common problems

If your table of contents is empty or missing headings, the most common cause is that you used bold text or larger font instead of actual heading styles. Go back through your document and apply the correct heading styles to every section title, then regenerate the table of contents.

If page numbers are wrong, you may have edited the document after generating the table of contents. Regenerate it again to pull the current page numbers. If a heading appears in the table of contents but you don't want it there, change its style from Heading 1 (or 2 or 3) back to Normal or Body Text.

If your table of contents shows too many levels — for example, every small subheading cluttering the list — you can configure which heading levels appear. In Word, right-click the table of contents and select "Edit Field", then change the "Outline levels" number to show only Heading 1 and Heading 2, for example. In Google Docs and LibreOffice, the dialog box when you insert the table of contents lets you choose which levels to include.

Frequently Asked Questions

Can I manually edit the table of contents after it's generated?

You can, but you shouldn't. Any manual changes disappear the next time you regenerate the table of contents. Instead, edit the actual headings in your document and regenerate the table. This keeps everything in sync.

What if I want some headings to appear in the table of contents but not others?

Use different heading styles. Headings styled as Heading 1 or Heading 2 appear in the table of contents. Text styled as Normal, Body Text, or a custom style does not. You can also configure the table of contents settings to show only certain heading levels — for example, only Heading 1 and Heading 2, skipping Heading 3.

Do I need a table of contents for a short document?

Not usually. A table of contents is most useful for documents longer than 10 pages or with more than five major sections. For shorter documents, readers can find what they need by scrolling or using the search function.

Can I create a table of contents in other programs like Excel or PowerPoint?

Excel and PowerPoint don't have built-in table of contents features the way Word and Docs do. If you need one, you'd create it manually by typing the section names and slide numbers. For documents with many sections, Word, Google Docs, or LibreOffice are better choices.