How to Insert an Automatic Table of Contents in Word
🔍 WiseChecker

How to Insert an Automatic Table of Contents in Word

An automatic Table of Contents saves hours of manual work when you need to update page numbers or section titles in a long document. Word builds a TOC by scanning your document for headings formatted with built-in heading styles such as Heading 1, Heading 2, and Heading 3. This article explains how to set up those heading styles, insert a TOC with one click, and customize its appearance to match your document layout.

Key Takeaways: Inserting and Customizing a Table of Contents in Word

  • Home > Styles > Heading 1, Heading 2, Heading 3: Apply these built-in heading styles to all section titles before inserting the TOC.
  • References > Table of Contents > Automatic Table 1 or 2: Inserts a ready-made TOC that updates automatically when you add or remove headings.
  • Update Table button or Ctrl+A then F9: Refreshes the TOC to show new headings and corrected page numbers without rebuilding it from scratch.

ADVERTISEMENT

How Word Builds an Automatic Table of Contents

Word does not guess which text belongs in the TOC. It looks only for paragraphs formatted with specific heading styles. By default, Word recognizes Heading 1, Heading 2, and Heading 3. If you use plain bold text or a larger font size without applying a heading style, Word ignores that text when generating the TOC.

The automatic TOC feature reads the heading text and the page number where each heading appears. It then inserts a field code that stores this information. Because the TOC is a field, you can update it later to reflect changes in your document structure. You do not need to delete and reinsert the TOC every time you edit a heading.

The built-in Automatic Table options include two preset designs. Automatic Table 1 uses the word “Contents” as the title. Automatic Table 2 uses “Table of Contents” as the title. Both designs show three heading levels by default and include a dotted line between the heading text and the page number.

Steps to Insert an Automatic Table of Contents

Follow these steps to prepare your document and insert the TOC. The entire process takes less than two minutes once your headings are formatted correctly.

  1. Apply heading styles to all section titles
    Select each section title in your document. On the Home tab, in the Styles group, click Heading 1 for main chapter titles, Heading 2 for subsections, and Heading 3 for sub-subsections. Repeat this for every title you want to appear in the TOC.
  2. Place the cursor where you want the TOC
    Click at the beginning of your document or on a blank page after the title page. Most users insert the TOC on a dedicated page before the first chapter.
  3. Open the Table of Contents gallery
    Go to the References tab. In the Table of Contents group, click Table of Contents. A dropdown gallery appears with several preset options.
  4. Choose an automatic style
    Click Automatic Table 1 or Automatic Table 2. Word inserts the TOC immediately. The TOC shows all headings formatted with Heading 1, Heading 2, and Heading 3 styles, along with their correct page numbers.

Customizing the TOC after insertion

After inserting the TOC, you can change its appearance without deleting it. Click anywhere inside the TOC. On the References tab, click Table of Contents and then click Custom Table of Contents at the bottom of the gallery. The Table of Contents dialog box opens.

In the dialog box, you can change the number of heading levels shown, choose a different tab leader style such as dots, dashes, or a solid line, and modify the overall format from Classic to Distinctive or Formal. Click OK to apply the changes. Word asks if you want to replace the existing TOC. Click Yes.

Updating the TOC when you edit the document

When you add, remove, or reorder headings, the TOC becomes outdated. To refresh it, click the TOC. A banner appears at the top of the TOC with the message “This table of contents is not up to date.” Click Update Table on the banner. Alternatively, right-click the TOC and select Update Field.

A dialog box asks what you want to update. Choose “Update page numbers only” if you changed only the pagination. Choose “Update entire table” if you added or removed headings. Word rebuilds the TOC instantly.

ADVERTISEMENT

Common Mistakes When Using an Automatic TOC

“No table of contents entries found” error

This error appears when Word finds no paragraphs formatted with a heading style. Open the Home tab and check the Styles gallery. If your section titles show the Normal style instead of Heading 1, select each title and apply the correct heading style. Then update the TOC.

Headings missing from the TOC

Word shows only three heading levels by default. If you used Heading 4 or deeper, those headings do not appear. To include them, click inside the TOC, go to References > Table of Contents > Custom Table of Contents, and increase the “Show levels” number to 4, 5, or higher. Click OK and replace the existing TOC.

TOC page numbers do not match the actual page

This usually happens when you inserted page breaks or section breaks after generating the TOC. Update the TOC by clicking Update Table and choosing “Update page numbers only.” If the numbers still do not match, check that your document does not have manual page number overrides or different starting page numbers in section breaks.

TOC formatting changes after updating

Word resets the TOC formatting to match the original design every time you update. If you manually changed font size, color, or indentation inside the TOC, those changes are lost after an update. To keep custom formatting, modify the TOC styles using the Custom Table of Contents dialog or the Styles pane instead of formatting the text directly.

Automatic TOC vs Manual TOC: Key Differences

Item Automatic TOC Manual TOC
Insertion method References > Table of Contents > Automatic Table References > Table of Contents > Manual Table
Updating Updates with one click after editing headings or pages Must be retyped or manually adjusted each time
Heading detection Scans built-in heading styles automatically Does not scan; user types each entry by hand
Page numbers Generated and updated automatically Typed manually; prone to errors
Best for Documents longer than 10 pages that change frequently Short documents that will not be edited

You can now insert an automatic Table of Contents in any Word document by applying heading styles and using the References tab. For documents that change often, use the Update Table feature to keep the TOC current without redoing the work. To speed up the process, assign a keyboard shortcut to the Update Field command by customizing the Quick Access Toolbar.

ADVERTISEMENT