Word can generate a table of contents automatically from your headings

A table of contents in Word pulls directly from the headings you've already formatted in your document. You don't type it manually. Instead, you mark text as Heading 1, Heading 2, and so on, then tell Word to create the table. Word builds it for you, and if you change a heading or add pages later, you can update the table with one click.

The fastest way: format your headings first, place your cursor where you want the table to appear (usually the first or second page), then go to the References tab and select Table of Contents. Pick a style and Word inserts it.

Key Takeaways

  • Your headings must be formatted using Word's built-in Heading styles (Heading 1, Heading 2, etc.), not just made bold or larger.
  • The table of contents goes on its own page, usually right after your title page and before the main document.
  • After you insert the table, you can update it automatically if you add, remove, or change headings later.
  • Word shows page numbers next to each heading, so your document must have page numbers turned on.

Format your headings before you create the table

Open your document and look at the text you want in the table of contents. These are usually chapter titles, section breaks, or major topics. Select the first heading, then go to the Home tab. In the Styles group, click the style called Heading 1. Repeat for each main heading in your document.

For subheadings under those main headings, select the text and apply Heading 2. If you have sub-subheadings, use Heading 3. Word's table of contents will indent these automatically, so Heading 2 items appear indented under Heading 1 items. Don't use bold or font size changes instead of these styles — Word won't recognize them as headings.

If you're working on a long document, take a few minutes to scroll through and apply styles to all your headings now. It's faster than doing it later, and you'll see the structure of your document more clearly.

Insert the table of contents on a new page

Click where you want the table to appear. For most documents, this is a blank page right after your title page. Press Ctrl+Enter to insert a page break, which creates a new page without leaving blank space. Type "Table of Contents" at the top if you want a title.

Go to the References tab at the top of the ribbon. Click Table of Contents. Word shows you several designs — Automatic Table 1 and Automatic Table 2 are the most common. Click the one you prefer. Word inserts the table immediately, pulling from all the headings you formatted.

The table shows each heading with its page number. If you haven't turned on page numbers yet, Word will still create the table, but the page numbers will show as question marks. Go to Insert, then Page Numbers, and choose where you want them (usually the bottom right or bottom center).

Update the table when your document changes

After you finish writing or editing, your headings or page numbers may have shifted. Right-click anywhere in the table of contents and select Update Field. Word opens a dialog asking whether to update page numbers only or the entire table. Choose Update entire table if you added or removed headings, or if you changed heading text. Choose Update page numbers only if you only added or deleted content that changed where pages break.

You can also update the table by clicking it once to select it, then pressing F9. This is faster if you're doing it repeatedly while you write.

Delete or replace the table

If you need to remove the table of contents, click it once to select the entire table (you'll see a gray border around it). Press Delete. The table disappears, but your headings stay formatted — you can insert a new table later if you change your mind.

To replace the table with a different style, select it and go back to References > Table of Contents. Click a different design. Word replaces the old table with the new one, keeping all your headings and page numbers.

Troubleshooting: headings don't appear in the table

If you insert a table of contents and some of your headings are missing, the text probably isn't formatted with a Heading style. Go back to your document, find the missing heading, select it, and apply Heading 1, Heading 2, or the appropriate level from the Home tab. Then update the table of contents by right-clicking it and selecting Update Field.

Another common issue: you formatted text as bold or changed its font size, but didn't apply a Heading style. Word ignores formatting changes and only recognizes the built-in styles. Select the text, go to Home, and click the correct Heading style from the Styles group.

Frequently Asked Questions

Can I manually edit the table of contents?

You can, but Word will overwrite your changes the next time you update the table. If you need to change how an entry looks, go back to your document, edit the actual heading text, and update the table. That way your changes stick.

What if I don't want page numbers in the table?

Go to References > Table of Contents and look for a style labeled "Manual Table" or one without page numbers in the preview. Click it to replace your current table. You can also right-click the table, select Table of Contents Properties, and uncheck the option to show page numbers, though this varies by Word version.

Can I have multiple tables of contents?

Yes. Create a second table on a different page the same way you created the first — place your cursor, go to References > Table of Contents, and insert it. Each table updates independently. This is useful if you have a table of contents for chapters and a separate one for figures or tables.

Why does my table show question marks instead of page numbers?

Your document doesn't have page numbers turned on yet. Go to Insert > Page Numbers, choose a location, and click OK. Then right-click the table of contents and select Update Field to fill in the actual page numbers.