Skip to content

How to Create an Automatic Table of Contents in Word

By · · 9 min read

Illustration of a Word page with a contents list whose dotted leaders point to page numbers

An automatic table of contents in Word is a list that Word builds for you from the headings in your document. You never type the entries or the page numbers. When the document changes, you update the table and Word rewrites it to match.

The whole trick is in the headings. If your section titles use Word's heading styles, the table of contents takes a few clicks. If they are just bold text, Word has nothing to build from, and no setting in the dialog will fix that. This guide covers both halves: getting the headings right, then inserting, updating and customising the table in Microsoft 365 Word.

Key Takeaways

  • Word builds the table of contents from paragraphs formatted with heading styles (Heading 1, Heading 2, Heading 3), not from bold or large text.
  • Insert it from References > Table of Contents and pick an automatic table, never a manual one.
  • The table does not refresh itself. Use References > Update Table and choose Update entire table after you change headings.
  • Use Custom Table of Contents to set how many heading levels appear, change the dot leaders, or switch page numbers off.
  • Word for the web offers one automatic table style; open the desktop app for the full options.

What makes a table of contents "automatic"?

A table of contents is automatic when every entry comes from a heading style in the document. Microsoft's guide to inserting a table of contents says it plainly: missing entries usually mean the headings are not formatted as headings. Word looks for paragraphs styled Heading 1, Heading 2 and so on, and lists them in order with their page numbers.

The table itself is a field, which is a piece of content Word calculates rather than stores as typed text. That is why it can be updated, and also why it does not change on its own while you type.

A manual table of contents is the opposite. Microsoft advises avoiding the Manual Table styles in the gallery because they insert placeholder text that Word cannot build or update from your headings. If you have inherited a document with a typed contents list, replace it rather than trying to keep it in step by hand.

Step 1: Apply heading styles to your section titles

Before you insert anything, check that each section title uses a heading style:

  1. Click in a main section title.
  2. On the Home tab, in the Styles gallery, select Heading 1.
  3. For sub-sections, use Heading 2. For sub-sub-sections, use Heading 3.
  4. Repeat for every title you want in the table.

On Windows you can also press Ctrl+Alt+1, 2 or 3 to apply Heading 1, 2 or 3, and Ctrl+Shift+N to return a paragraph to Normal (Microsoft's Word keyboard shortcuts).

Keep the levels in order. A Heading 3 directly under a Heading 1, with no Heading 2 between them, produces a table that looks oddly indented. If the default heading look does not suit your document, change the style itself rather than reformatting each title; the complete guide to styles in Word explains how. For a short walk-through of heading levels, see the lesson on real headings with heading styles.

A quick way to check your headings: open View > Navigation Pane. Every heading Word will put in the table of contents shows up there. If a title is missing from the pane, it will be missing from the table too.

Step 2: Insert the table of contents

With headings in place, inserting the table takes a few clicks.

Word for Windows (Microsoft 365):

  1. Click where the table should go, usually on its own page after the title page.
  2. Go to References > Table of Contents.
  3. Choose Automatic Table 1 or Automatic Table 2. The two differ only in their heading text ("Contents" or "Table of Contents").

Word for Mac:

  1. Click where you want the table.
  2. Select References, then choose one of the Automatic Table of Contents styles from the gallery.

Word for the web:

  1. Click where you want the table.
  2. Select References > Table of Contents > Insert Table of Contents.

Microsoft notes that Word for the web has only one automatic table of contents. For custom levels or styles, select Editing > Open in Desktop App.

If the contents should sit on a page of its own, put a page break after it with Ctrl+Enter (Microsoft's shortcut list) instead of pressing Enter until the next page. If the contents pages need Roman numerals while the body starts at page 1, you need a section break; the guide to section breaks in Word shows how, and starting page numbers on page 2 or 3 covers the numbering itself.

Check the result: the entries should match the headings you see in the Navigation Pane, in the same order. To practise this step on a real file, try the free exercise Insert a table of contents from headings.

Step 3: Update the table after you edit

The table of contents is a snapshot. Add a section, rename a heading or push text onto a new page, and the table is out of date until you update it.

  1. Go to References > Update Table. You can also right-click the table and choose Update Field, or click inside it and press F9 (which updates the selected field).
  2. Choose one option:
    • Update page numbers only refreshes page numbers and ignores changes to heading text.
    • Update entire table picks up new, renamed and deleted headings as well as page numbers.
  3. Select OK.

Choose Update entire table unless you have made manual edits inside the table that you want to keep. Microsoft's article on updating a table of contents describes both options and confirms that a manually typed table cannot be updated this way.

In Word for Mac, the same References > Update Table command applies. In Word for the web, right-click the table and choose Update Table of Contents (Microsoft's steps).

Make updating the last thing you do before you save a final copy or a PDF. The free exercise Update an out-of-date table of contents lets you practise exactly this repair.

Step 4: Customise levels, leaders and page numbers

The built-in automatic tables use sensible defaults. When you need something different, open the custom dialog: References > Table of Contents > Custom Table of Contents.

According to Microsoft's Custom table of contents reference, the dialog controls:

Setting What it changes
Show page numbers Turns page numbers (and their leader) on or off.
Right align page numbers Puts the numbers at the right margin; cleared, they sit next to the heading.
Tab leader Dots (the default), dashes, a solid line or none.
Formats Applies a preset look to the table.
Show levels How many heading levels appear. Set 2 to list only Heading 1 and Heading 2.
Use hyperlinks instead of page numbers Makes each entry a link to its heading in web-style views.
Options Chooses which styles feed the table, for example a custom style used for appendix titles.
Modify Changes the TOC 1, TOC 2 and TOC 3 styles that format each level of the table.

Two customisations come up often:

Show fewer levels. Long reports often list only chapters and main sections. Set Show levels to 2 and select OK. Word asks whether to replace the existing table; choose Yes. The Pro exercise Show only two heading levels in the contents practises this.

Change the font of the table. Do not select the table and reformat it directly, because the next full update will undo your work. Instead, in the custom dialog choose Modify, select a level such as TOC 1, and select Modify again to change its style. If Modify is unavailable, set Formats to From template first, as Microsoft's guide to formatting a table of contents explains.

Why are some headings missing from the table?

Almost every table of contents problem traces back to the headings. Work through these checks in order:

  • The title is not styled as a heading. Click in it and look at the Styles gallery. If Normal is highlighted, apply the right heading level, then update the entire table. The free exercise Turn look-alike headings into real headings covers this exact fault.
  • The heading level is deeper than the table shows. A Heading 4 will not appear in a three-level table. Either change the heading's level or raise Show levels.
  • You updated page numbers only. New headings appear only after Update entire table.
  • Body text appears in the table. A body paragraph has picked up a heading style, usually because a heading was split with Enter or text was pasted in with the heading style attached. Click in it, apply Normal, and update the table.

How do I see what is inside the table (field codes)?

Press Alt+F9 to switch between all field codes and their results (Word keyboard shortcuts). The table of contents turns into a code such as { TOC \o "1-3" \h \z \u }, where \o "1-3" means heading levels 1 to 3. Press Alt+F9 again to switch back. You rarely need to edit the code, but seeing it confirms you have a real, updatable table rather than typed text.

How do I delete a table of contents?

Go to References > Table of Contents > Remove Table of Contents, as described in Microsoft's article on deleting a table of contents. Word removes the field and its contents in one step, leaving your headings untouched.

Frequently asked questions

Does a Word table of contents update automatically?

No. The table is a field, and Word recalculates it only when you update it. Use References > Update Table > Update entire table, or right-click and choose Update Field, before you share or print the document.

Can I change how my headings look without breaking the table?

Yes. Keep the heading styles applied and change the style itself, for example its font, colour or size, so every heading at that level updates together. The table of contents keeps working because it reads the style, not the formatting. If a title must use a custom style of its own, add that style under Custom Table of Contents > Options and give it a level, as Microsoft's Custom table of contents reference describes.

How do I make the table of contents clickable?

In the desktop app, entries in the automatic tables link to their headings. In Word for Windows, hold Ctrl and click an entry to jump to that section (this is the default setting).

Practise building a contents page

The quickest way to make this skill stick is to fix a real document. Start with the free exercises above, then go through the contents pages and notes module and the lesson on automatic tables of contents.

This post is the hub for long-document skills. Once the table of contents is in place, the next jobs are usually layout and numbering:

These steps were checked against Microsoft Support documentation for Microsoft 365 Word on 5 November 2026.

Related posts

Written by Guccibase; see how these guides are written. Word Exercises is independent and not affiliated with Microsoft. Menu names follow Microsoft 365 as of 2026.