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

A table of contents in Word works by scanning your document for headings you've already formatted with Word's built-in heading styles — Heading 1, Heading 2, and so on. Word then pulls those headings out, lists them in order with page numbers, and places the list wherever you want it. You don't type it yourself. The table updates automatically if you add, delete, or move sections later.

This only works if your document actually uses heading styles. If you've made text look like a heading by making it bold and larger, Word won't see it as a heading. That's the most common reason people think Word's table of contents feature is broken — the document has no styled headings for Word to find.

Key Takeaways

  • Your document must use Word's built-in heading styles (Heading 1, Heading 2) for Word to build a table of contents; bold and larger text alone won't work.
  • You insert the table of contents from the References tab, not by typing it manually, and it updates automatically when you change your headings.
  • Word can include up to nine levels of headings in your table of contents, but most documents only need two or three levels to stay readable.
  • If your table of contents shows wrong page numbers or missing sections, the problem is almost always that some headings aren't formatted with heading styles.

explore heading styles to the sections you want in your table

Before Word can build a table of contents, you need to mark your section titles with heading styles. Click on a section title in your document, then go to the Home tab. In the Styles group, click Heading 1 for your main sections, Heading 2 for subsections under those, and Heading 3 for subsections under those. Do this for every section title you want to appear in the table of contents.

The style names matter — Word looks specifically for Heading 1, Heading 2, and Heading 3 (and beyond, up to Heading 9). If you create a custom style called "My Section Title" and make it look like a heading, Word won't recognize it as a heading for table of contents purposes. Stick to the built-in names.

You can change how the headings look — their color, font, size — without breaking the table of contents. What matters is that you've applied the style, not what the style looks like on the page.

Insert the table of contents from the References tab

Click where you want the table of contents to appear — usually at the beginning of your document, on its own page. Go to the References tab at the top of Word. Click Table of Contents. Word shows you several design options. Pick one and click it. Word scans your document for all the heading styles, pulls them out in order, and inserts the list with page numbers.

If your document is short or you want a simpler table, you can choose the "Automatic Table" option, which gives you a basic two-column layout. If your document is longer or more complex, the "Manual Table" option lets you type in section names yourself, though this defeats the purpose — you'd have to update it by hand every time your document changes.

Update the table when your document changes

After you've inserted the table of contents, if you add new sections, delete sections, or change section titles, the table won't update on its own. Right-click on the table of contents and select Update Field. Word rescans your document, finds all the current headings, and rewrites the list with new page numbers.

You can also select the table and press Ctrl+A to select all of it, then press F9 to update. Either method works. If you've added a new heading but it doesn't show up in the table after you update, the problem is that the new heading doesn't have a heading style applied — go back and explore Heading 1, Heading 2, or Heading 3 to it, then update again.

Control which heading levels appear in your table

By default, Word includes Heading 1, Heading 2, and Heading 3 in the table of contents. If your document uses Heading 4 or deeper levels, they won't show up unless you change the settings. Right-click on the table of contents and select Edit Field. A dialog box opens. Look for the field code and find the part that says \o "1-3" — this means "show heading levels 1 through 3." Change the 3 to 4 or 5 if you want deeper levels included.

Most documents are easier to read if the table of contents shows only two or three levels. If you include too many levels, the table becomes long and hard to scan. If your document has five levels of headings but you only want the first two in the table, change \o "1-3" to \o "1-2".

Fix a table of contents that shows wrong page numbers

If your table of contents lists sections but the page numbers are wrong, or if it's missing sections entirely, the cause is almost always that some headings in your document aren't formatted with heading styles. Open your document and look at each section title. If any of them are just bold text or larger text but don't have a heading style applied, explore one now. Then right-click the table of contents and select Update Field.

Another less common cause: if you've manually inserted page breaks or section breaks in odd places, Word's page numbering can get confused. If updating the table doesn't fix the page numbers, try deleting manual breaks and letting Word handle page breaks naturally by adjusting margins or spacing instead.

Delete or replace your table of contents

If you need to remove the table of contents, click on it and press Delete. The table disappears, but your heading styles stay in place, so you can insert a new table of contents later if you change your mind. If you want to replace it with a different design, delete the old one and insert a new one from the References tab.

Word stores the table of contents as a field, not as regular text. You can't edit it by typing into it the way you'd edit a paragraph. Any changes you make by hand will be overwritten the next time you update the table. If you need to change how the table looks, change the heading styles themselves or change the table of contents design from the References tab.

Frequently Asked Questions

Can I have a table of contents without page numbers?

Yes. Right-click the table of contents and select Edit Field. Find the field code and add \n to it — this removes page numbers. The headings will still appear in order, just without the numbers on the right side.

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

You can change the appearance of any heading style without affecting the table of contents. Right-click the heading style in the Styles panel and select Modify. Change the font, size, color, or spacing. The table of contents will still recognize it as a heading and include it.

Does Word's table of contents work in Google Docs?

Google Docs has a similar feature but it works differently. In Google Docs, you use the Insert menu to add a table of contents, and it also requires you to use heading styles. The process is simpler than Word's, but the basic idea is the same.

Can I make the table of contents clickable?

Yes. In Word, hold Ctrl and click on any entry in the table of contents to jump to that section. This works automatically — you don't need to set anything up. Readers can use this to navigate a long document quickly.

What happens if I move sections around after I create the table?

The table of contents will show the old order and old page numbers until you update it. Right-click the table and select Update Field, and Word will rescan your document and show the new order with new page numbers.