Word builds a table of contents automatically from your headings

A table of contents in Word pulls directly from the heading styles you've already applied to your document. You don't type it manually. Instead, you tell Word which headings to include, and it generates the list with page numbers that update if your document changes. This works in Word for Windows, Word for Mac, and Word Online.

The process has two parts: first, format your headings with Word's built-in heading styles (Heading 1, Heading 2, and so on). Second, insert the table of contents from the References tab. Word then reads those styles and builds the list for you.

Key Takeaways

  • Your document must use Word's heading styles (Heading 1, Heading 2) rather than just bold text for the table of contents to work.
  • Place your table of contents at the beginning of your document, usually right after the title page or introduction.
  • The table of contents updates automatically when you add, delete, or rename headings, but you must manually refresh it.
  • You can choose from several built-in table of contents designs, and Word will show you a preview before you insert it.

Format your headings with Word's built-in styles

Before you insert a table of contents, every section heading in your document needs to use one of Word's heading styles. This is the step most people skip, and it's why their table of contents ends up empty or incomplete.

Select the text of your first main heading. On the Home tab, look for the Styles group. You'll see a row of style options — Normal, Heading 1, Heading 2, and others. Click Heading 1 for your main section titles. If your document has subsections under those headings, select that text and apply Heading 2. Continue this pattern for any deeper levels (Heading 3, Heading 4) if your document needs them.

Do this for every heading in your document before you insert the table of contents. Word will only include text that's formatted with a heading style, so plain bold text or larger font won't show up. If you have a title page or introduction that shouldn't appear in the table of contents, leave those in Normal style.

Insert the table of contents from the References tab

Once your headings are formatted, click the References tab at the top of Word. On the left side of the ribbon, you'll see a button labeled Table of Contents. Click it to see a dropdown menu with several design options.

Each design shows you a preview of how it will look. The Automatic Table options include a title and page numbers. The Manual Table option lets you type entries yourself, but that defeats the purpose — use one of the Automatic options instead. Click the design you prefer, and Word inserts the table of contents at your cursor position.

If your cursor is in the middle of your document, Word will insert the table of contents there. Most documents place it at the very beginning, right after the title page. If you need to move it, select the entire table of contents box and cut it, then place your cursor where you want it and paste.

Update the table of contents when your document changes

If you add new headings, delete old ones, or change heading text after you've inserted the table of contents, the list won't update on its own. You have to refresh it manually.

Right-click anywhere inside the table of contents box. A menu will appear with an option that says Update Field. Click it. Word will ask whether you want to update page numbers only or the entire table. Choose Update entire table if you've added or removed headings, or if you've changed heading text. Choose Update page numbers only if you've only moved text around and the headings themselves haven't changed.

You can also update it from the References tab: click Table of Contents, then click Update Table at the top of the dropdown menu.

Customize the table of contents appearance

Word's built-in designs cover most needs, but you can adjust a few things. Right-click inside the table of contents and select Table of Contents Properties (or Field in some versions). This opens a dialog where you can change how many heading levels to include.

For example, if your document has Heading 1, Heading 2, and Heading 3 styles but you only want Heading 1 and Heading 2 to appear in the table of contents, you can set it to show only two levels. This keeps the list shorter and easier to scan. The default is usually three levels.

You can also manually edit the text in the table of contents after it's inserted, but those changes won't stick if you update the table later — Word will overwrite them with the current heading text. If you need permanent custom text, consider creating the table manually instead, though that means updating it by hand whenever your document changes.

Troubleshoot a table of contents that's empty or incomplete

If you insert a table of contents and it shows no entries, or only some of your headings appear, the problem is almost always that your headings aren't formatted with heading styles. Check each heading in your document. Click on it and look at the Styles group on the Home tab. If it says "Normal" or shows a custom style name, it won't appear in the table of contents.

Select each heading that's missing and apply the correct heading style. Then right-click the table of contents and click Update Field > Update entire table. The missing entries should appear.

Another common issue: if you've copied and pasted text from another document or the web, the formatting sometimes carries over hidden style information that Word doesn't recognize as a heading style. If a heading still doesn't appear after you've applied Heading 1, try selecting it and pressing Ctrl+M (Windows) or Command+M (Mac) to clear all direct formatting, then reapply the heading style.

Use outline view to check your heading structure

Before you insert a table of contents, it helps to see how Word sees your document's structure. Click the View tab and select Outline. This shows your entire document as a hierarchy of headings, with each level indented under the one above it.

Outline view makes it obvious if you've missed a heading or applied styles inconsistently. For example, if you have a Heading 1, then jump straight to Heading 3 without a Heading 2 in between, you'll see it immediately. You can also collapse and expand sections here to focus on one part of your document at a time. When you're done reviewing, click the View tab again and select Print Layout to return to normal editing.

Frequently Asked Questions

Can I make the table of contents show only certain heading levels?

Yes. Right-click the table of contents, select Table of Contents Properties or Field, and change the "Show levels" number. If you set it to 2, only Heading 1 and Heading 2 will appear. This is useful for long documents where you want a shorter, simpler table of contents.

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

Right-click the table of contents and select Table of Contents Properties or Field. Uncheck the box that says Show page numbers. The table will still list all your headings, just without the numbers on the right.

Does the table of contents work the same way in Word Online?

Yes, the process is identical. Format your headings with heading styles, then go to the References tab and click Table of Contents. Word Online offers fewer design options than the desktop version, but the automatic update feature works the same way.

Can I delete and recreate the table of contents?

Yes. Click anywhere inside the table of contents box to select it, then press Delete. The headings in your document stay intact — only the table is removed. You can insert a new one anytime by going to References > Table of Contents and choosing a design.

Why does my table of contents show wrong page numbers?

This usually means your document has manual page breaks or section breaks that shifted where headings land. Update the table of contents by right-clicking it and selecting Update Field > Update entire table. If the numbers still look wrong, check that you haven't inserted extra blank pages or changed margins after creating the table.