Word can generate a table of contents automatically if your document uses heading styles

A table of contents (TOC) is a list at the beginning of your document that shows every heading and its page number. Word builds it by reading the heading styles you have already applied — Heading 1, Heading 2, and so on. You do not type it manually. If you change a heading or add pages later, you can update the TOC in seconds instead of retyping the whole thing.

The catch is that Word only recognizes headings that use the built-in heading styles. If you have made text large and bold by hand, Word will not see it as a heading. This is why the first step is always to format your document structure correctly before you insert the TOC.

Key Takeaways

  • Your document must use Heading 1, Heading 2, and Heading 3 styles for Word to recognize what goes in the table of contents.
  • You insert the TOC on a blank page near the front of your document, usually after the title page.
  • Word generates the list automatically by scanning your headings and pulling their page numbers.
  • If you add, delete, or rename a heading later, you can right-click the TOC and choose Update Field to refresh the entire list in seconds.

Format your headings with Word's built-in styles first

Before you create a table of contents, go through your document and mark each heading with the correct style. Select the text of your first main heading, then go to the Home tab. In the Styles group, click Heading 1. Do the same for every main section heading in your document.

For subheadings under those sections, use Heading 2. If you have sub-subheadings, use Heading 3. Do not skip levels — if you use Heading 1 and then Heading 3, Word will still work, but the TOC will look odd. Stick to the order: Heading 1, then Heading 2, then Heading 3.

The body text of your document should stay as Normal style, not a heading style. Only the actual section titles get heading styles. Once every heading in your document has the right style applied, you are ready to insert the TOC.

Insert the table of contents on a new page

Click at the beginning of your document, before any content. Press Ctrl+Enter to insert a page break. This creates a blank page where your TOC will live. You can add a title like "Table of Contents" at the top if you want, but it is not required.

Place your cursor on the blank page where you want the TOC to appear. Go to the References tab at the top of Word. Click Table of Contents. A menu will open showing several design options — choose the one you prefer. Word will scan your document, find all the headings, and insert the complete list with page numbers.

Update the table of contents when your document changes

After you insert the TOC, if you add a new heading, delete a section, or move content to a different page, the TOC will not update automatically. You have to tell Word to refresh it. Right-click anywhere in the table of contents and select Update Field.

A dialog box will ask whether you want to update page numbers only or the entire table. Choose Update Entire Table if you have added or removed headings. Choose Update Page Numbers Only if you have just moved content around but kept the same headings. Word will rescan your document and fix the TOC in a few seconds.

Customize what levels appear in your table of contents

By default, Word includes Heading 1, Heading 2, and Heading 3 in the TOC. If your document has Heading 4 or Heading 5 styles, they will not appear unless you change the settings. Go to References, click Table of Contents, and then click Custom Table of Contents at the bottom of the menu.

A dialog box opens. Look for the field labeled Show Levels. The number there controls how deep the TOC goes. If it says 3, Word shows Heading 1, 2, and 3. Change it to 2 if you want only main headings and first-level subheadings. Change it to 4 if you want to include Heading 4. Click OK and Word will rebuild the TOC with your new settings.

Fix common problems with table of contents

If your TOC shows blank page numbers or says Error, your headings may not have styles applied correctly. Click in the TOC, right-click, and select Update Field. If that does not work, go back through your document and make sure every heading uses Heading 1, Heading 2, or Heading 3 — not bold text that just looks like a heading.

If a heading is missing from the TOC entirely, select that heading text and check the Styles panel on the Home tab. If it shows Normal or another non-heading style, click the correct heading style to fix it. Then update the TOC again. If the page numbers are wrong, it usually means you have inserted or deleted page breaks elsewhere in the document — update the entire table and the numbers will correct themselves.

Frequently Asked Questions

Can I edit the table of contents directly?

You can type in it, but Word will erase your changes the next time you update the field. The TOC is generated from your headings, not the other way around. If you want to change what appears, change the heading text in the document itself, then update the TOC.

What if I want different heading styles to look the same?

You can change how Heading 1, Heading 2, and Heading 3 appear by right-clicking them in the Styles panel and selecting Modify. This changes the font, size, and color across your entire document. The TOC will still recognize them as separate levels even if they look similar.

Does the table of contents work with page numbers if I use different page numbering styles?

Yes. If your document uses Roman numerals for the introduction and Arabic numerals for the main content, the TOC will show the correct page numbers for each section. Word tracks the numbering style in effect at each heading.

Can I delete the table of contents and make a new one?

Yes. Click anywhere in the TOC, right-click, and select Delete Table of Contents. Then go to References, click Table of Contents, and insert a new one. Your document headings stay the same — only the TOC itself is removed.