You insert a table of contents in Word by first applying Heading 1–3 styles to your section titles, then clicking References → Table of Contents → and picking a built-in style, which drops in a field that pulls every styled heading with its page number automatically. The catch is that Word only trusts two kinds of heading sources: the built-in heading styles, or custom styles you've explicitly mapped to outline levels. Skip that groundwork and the gallery insert produces an empty or half-empty contents list. The whole job takes under two minutes in Word for Microsoft 365 on Windows, slightly longer if you're cleaning up manually formatted headings first.

Windows and Mac follow almost identical paths — References tab, leftmost section, Table of Contents button. The differences sit in the dialog boxes and the update shortcut. Below, you get the exact clicks, the style-mapping workaround for people who refuse to use Heading styles, the update behavior that confuses first-time users, and the fixes for the four failures that account for most broken contents pages.

Prepare Headings So References Finds Every Entry

Before you touch the References tab, confirm each section title carries a real heading style. Click any title, then look at the Styles gallery on the Home tab — Word highlights the applied style in a box. If "Normal" is highlighted on a line that reads "Chapter 3: Results," that line will never appear in your contents, no matter how bold or large you made the font. Font formatting lives separately from paragraph style in Word's architecture, which is exactly why manually styled titles fail.

The fastest fix is to select each title and press Ctrl+Alt+1 (Heading 1), Ctrl+Alt+2 (Heading 2), or Ctrl+Alt+3 (Heading 3) on Windows. On Mac, the same shortcuts work, though a few keyboards need Fn held for the function layer. Those shortcuts apply the style and its built-in outline level in one keystroke. If you've already typeset your document with custom styles like "Chapter Title," don't reassign them — map them to outline levels instead, because reassigning wrecks your formatting.

Word's Navigation pane (View → Navigation Pane, or Ctrl+F) shows you exactly what the References tab will see. Open it and scan the sidebar: every entry there becomes a contents line. According to Microsoft's support documentation for Word, the Table of Contents gallery reads headings at three outline levels by default, so anything styled Heading 4 or deeper stays out unless you change the setting inside the dialog.

Two preparation traps worth knowing. First, a heading inside a text box or table cell can be missed depending on version — Microsoft's documentation flags text boxes as unreliable for heading extraction, so move key titles into body text. Second, if your document uses a manual page-break section split, headings still register, but page numbers restart in each section and the contents will mirror that numbering. That's correct behavior, not a bug.

Place your cursor where the contents page belongs — usually on its own page after the title page. Then click References → Table of Contents, and the gallery opens with Automatic Table 1, Automatic Table 2, and Manual Table as the top three choices. Automatic Table 1 is the default: it inserts a "Contents" heading, every Heading 1–3 entry, right-aligned page numbers with dot leaders, and clickable hyperlinks.

Here's the sequence, in the order your hands actually move:

1: Click at the insertion point, typically after a page break on the title page. 2: Go to the References tab on the ribbon (between Mailings and Review). 3: Click Table of Contents in the Table of Contents group, far left of the ribbon. 4: Choose Automatic Table 1 from the gallery. 5: Press Ctrl+Home to check the new page, then scroll through entries to confirm nothing's missing.

Automatic Table 2 differs in one visible way: its heading text reads "Table of Contents" instead of "Contents." Choose it if your style guide demands the fuller label. The Manual Table option inserts placeholder text you overwrite by hand — no field, no page numbers, no updating — and it's almost never the right call unless you're building a fixed-layout print document where Word's automatic pagination would fight you.

If the gallery isn't visible or the button is greyed out, check two things. In Word for the web, the References tab exists but the gallery is limited, and the full automatic field only builds reliably in the desktop app — Microsoft's web-app comparison documentation notes that some table-of-contents functionality requires the desktop version. In the desktop app, a greyed-out button usually means the document is in Compatibility Mode (an old .doc file); save it as .docx first and the button re-enables.

Build From Custom Styles Using the Table of Contents Dialog

Writers who typeset with custom style names — "SectionHead," "Case Title," "Sidebar Heading" — get a cleaner result from the dialog than from reassigning everything to Heading styles. Open References → Table of Contents → Custom Table of Contents at the bottom of the gallery. In the dialog, click Options, and you'll see the real control panel: a scrollable list of every style in the document, each with a numbered "TOC level" box beside it.

Fill the boxes: type 1 beside your top-level custom style, 2 beside the next, 3 beside the third. Clear the boxes beside styles you don't want appearing — Word lists Heading 1–3 as levels 1–3 by default, plus Title and Subtitle sometimes, which is why a stray "Title" style can sneak a line into your contents. Click OK twice and Word builds the field from your mapping. This one dialog is where most "my contents is missing entries" complaints get solved, because it makes the heading-to-level relationship visible instead of implied.

The dialog also controls how the contents itself looks. Show page numbers is checked by default; uncheck it for a pure outline. Right-align page numbers is also on by default and produces the dot-leader look most readers expect. The Tab Leader dropdown (period, hyphen, underscore, or none) changes the leader character. Formats dropdown offers six canned appearances — From Template, Classic, Distinctive, Fancy, Modern, Formal — and each maps to a set of TOC 1 through TOC 9 paragraph styles you can then edit via the Modify button for fonts and indents.

One non-obvious behavior: if you modify the TOC styles directly in the document and later switch formats in this dialog, Word reverts your styling to the format preset. Pick your format first, edit styles second. Microsoft's field-code documentation for the TOC field explains why — each format simply rewrites the \o or \t switch parameters and rebuilds the field, discarding manual style tweaks.

Use a TOC Field for Multi-Level or Partial Contents

The dialog covers most needs, but the field code underneath gives you control the interface hides. Press Alt+F9 on Windows (Fn+Option+F9 on Mac) to toggle field codes and you'll see the contents is a single line like { TOC \o "1-3" \h \z \u }. That's a TOC field, and its switches are the real settings.

The key switches and what they change:

Switch What it does When to change it
\o "1-3" Collects outline levels 1 through 3 Widen to "1-4" for four heading levels, narrow for shorter documents
\h Makes entries hyperlinks Remove only for print documents where links interfere
\z Hides tab and page numbers in web layout view Leave on for documents read on screen
\u Uses applied paragraph outline levels Remove if custom styles misbehave
\t "StyleName,2" Adds a specific style at a stated level Add a caption style or run-in heading
\n "1-2" Omits page numbers for levels 1–2 Rare; for continuous-flow documents

A quiet but important detail: the \o switch controls levels, but if a heading has a manual outline level set in Paragraph settings (Paragraph dialog → Indents and Spacing → Outline level), the \u switch is what honors it. Drop the \u and those headings vanish from the contents — a failure case Microsoft's field documentation calls out explicitly and that the gallery insert never explains to you.

Rebuild after editing by pressing F9 with the field selected, or right-click the contents and choose Update Field. You can also edit the field line directly — change "1-3" to "1-4" between the quotation marks, then F9. This is the route for documents where only certain sections should appear: give the undesired sections' headings body text styling or a low outline level, and they drop out without any manual deletion.

Update Page Numbers Before You Print or Share

A contents field is a snapshot. Add a paragraph on page 4 and every number below it shifts, but the contents page keeps showing the old values until you update it. Right-click anywhere inside the contents and choose Update Field, or click inside it and press F9. Word then offers two choices: "Update page numbers only" or "Update entire table." Choose the first when headings haven't changed; choose the second when you've added, renamed, or deleted headings.

The full update is what trips people. It rebuilds every entry from the heading styles and discards any text you typed directly into the contents. If you hand-edited a line — say, shortened a long chapter title inside the contents itself — that edit disappears on the next full update. The fix is to edit the heading in the body, not the contents entry. The contents is a field; the body is the source.

Update before every export. When you save to PDF via File → Save As or File → Export, Word doesn't auto-refresh the contents; the PDF captures whatever numbers were last calculated. The same applies to printing. A two-second Ctrl+A, F9 before the final export catches everything, though Ctrl+A then F9 updates every field in the document, including cross-references, which can trigger prompts on some fields — selecting just the contents and pressing F9 is tidier.

Set the field to refresh on open if you circulate a draft that colleagues will edit. File → Options → Display → check "Update fields before printing" catches the print path. There's no reliable toggle for update-on-open in modern Word without a macro, so treat the manual update as a habit rather than an automation.

Windows and Mac Differences That Change the Steps

The workflows are near-identical, but four differences bite people switching platforms. On Mac, Word for Microsoft 365 places the Table of Contents button in the same References tab position, and the gallery offers the same Automatic Table 1/2 and Manual Table options. The Custom Table of Contents dialog opens the same Options panel with the same style-level mapping.

The differences worth planning around:

Task Windows Mac (Word for Microsoft 365)
Toggle field codes Alt+F9 Fn+Option+F9 (or Option+F9 on some layouts)
Update field F9, or right-click → Update Field F9 works, but some builds need the right-click menu
Default heading shortcuts Ctrl+Alt+1/2/3 Same shortcuts; add Fn on keyboards where function keys are media keys
Web version support Full gallery in browser with limits Browser version shares the same limits

The web app is the bigger version gap. Word for the web renders an existing contents field and lets you update it, but the gallery's insert experience is narrower and custom dialog options aren't all exposed. A document built in the desktop app and opened in the browser keeps its contents intact and clickable; a contents page first created in the browser may lack features the desktop dialog would have set.

Compatibility Mode deserves a mention for both platforms. A .doc file saved from an old version opens with the ribbon in reduced form and some References controls disabled. Save As → Word Document (.docx) re-enables everything. If a colleague's contents page looks wrong only on your machine, check the file extension before rebuilding anything.

Fix an Empty Contents Page or Missing Entries

An empty contents page after insertion means the field found nothing at the level it was asked to collect. The cause is almost always headings that aren't heading-styled, or a field whose \o range excludes your levels. Open the Navigation pane first: if the sidebar is empty, your titles are body text wearing bold formatting, and the fix is applying Heading 1–3 or mapping your custom style in the Options dialog. If the sidebar shows entries but the contents page doesn't, edit the field and widen the \o range.

Missing entries with some present is a levels problem. The common pattern: chapter titles are Heading 1, subheads are Heading 3, but the section heads in between were manually bolded and never styled — those gaps appear as missing middle rows. Apply Heading 2 to them and rebuild. A second pattern involves the "Do not show in table of contents" behavior: headings inside tables or text boxes don't reliably register, per Microsoft's documentation, so relocate them.

Odd dots, stray lines, or entries with no page number usually come from tab stops or manual line breaks inside a heading. A heading containing a line break (Shift+Enter) can split into two contents rows or truncate. Right-click the entry, choose "Go to Heading" via Ctrl+click, and clean the paragraph — replace the soft return with a normal space or restructure the title.

When you can't see what's wrong, toggle field codes with Alt+F9 and read the TOC line. A missing \h means entries aren't clickable; a narrow \o range names itself; a \t switch pointing at the wrong style name explains phantom entries. To start clean, delete the field entirely (select the contents and press Delete), then rebuild from the gallery — faster than debugging a field someone else mangled.

Control the Look With TOC Styles and Page-Number Options

The contents page inherits paragraph styles named TOC 1 through TOC 9, one per level. Modify them the way you'd modify any style: click inside the contents, open the Styles pane (Ctrl+Alt+Shift+S on Windows), right-click TOC 1, and choose Modify. Change the font, size, spacing, and indents, and every level-1 entry follows. The dialog also has a "Format" button for paragraph-level tweaks like "Keep with next," useful so a long contents page doesn't break an entry across pages.

To change the appearance of the contents heading itself, modify the style called "TOC Heading" — that's the "Contents" line the gallery inserts, not a Heading 1. People hunt for it under Heading styles and miss it; it lives among the TOC styles in the Styles pane. Changing it is safe because it's not part of the collected entries.

Page-number formatting has its own controls. The dot leader character comes from the TOC style's tab stop settings — right-click TOC 1 → Modify → Format → Tabs, and you'll see the right-aligned tab at the page margin with the leader character. Swap the leader to none for a cleaner outline, or adjust the position if your margins are unusual. Roman numerals for front matter and Arabic for body follow the section's page-number format set via Insert → Page Number → Format Page Numbers; the contents reflects whatever each section's numbering produces.

Keep the contents page out of its own field by ensuring the "Contents" heading uses TOC Heading, not Heading 1 — a Heading-1-styled contents title adds itself as an entry, producing the familiar "Contents … 2" line at the top of your contents. Similarly, exclude appendix titles and reference lists by leaving them as body text or Heading 4, so they stay out of the collected range.

When to Skip the Field and Hand-Type the Contents

A field is the right answer for documents that will be revised, shared, or repaginated. It's the wrong answer in a handful of situations where it fights you. Hand-typing wins when the document is a fixed-layout design — a two-column brochure, a poster, a certificate — where Word's tab-leader alignment can't match the design. It also wins when the contents must live inside a text box or a placed object, since the field inserts into body flow.

A third case: documents that must open identically in software that doesn't process Word fields — some PDF converters, legal e-filing systems, older translation tools. A static typed list survives those pipelines where a TOC field might flatten or vanish. Accept the trade-off: typed contents won't update, and you become the update process.

For a static list that still looks right, build it with right-aligned tab stops and a dot leader rather than pressing Tab and periods by hand. Select the lines, open Paragraph → Tabs, set a right tab at the page's right margin, and choose the leader character. Page numbers then line up to the margin precisely, and the leader fills automatically as you type — the same look the field produces, minus the updating.

Set the page numbers last, after every other change. A typed contents built before the document is final will be wrong before the ink dries, and the audit is manual: walk each entry, note the page, correct the number. For a 60-page report that's ten minutes of checking — which is exactly why anyone with more than two revision rounds should accept the field's quirks and update it instead.

How Word's Table of Contents Settings Differ From Google Docs

People arriving from Google Docs expect contents to be a live outline panel they can click into and edit. Word's model is different in a way worth understanding before you build anything. Google Docs inserts a static-but-refreshable list with clickable entries but no page numbers at all — its outlined contents shows headings only, and page numbers aren't part of the format. Word's field adds right-aligned page numbers with dot leaders and a hyperlink, which is the look most printed documents need.

The update mechanisms differ too. Google Docs refreshes its contents when you click the refresh icon on the contents block. Word's field updates only when you ask it to — F9, right-click Update Field, or the print-on-update option. Neither auto-syncs in real time, and Word's is the stricter: it can rebuild from scratch and erase text you added into the field. That single difference explains why Word users lose hand-edits and Google Docs users don't.

Navigation panes are cousins, not twins. Both apps show a heading sidebar that tracks your document, and both require real heading styles for the sidebar to populate. In Word the Navigation pane is a preview of what the contents field will collect — if it's missing a section, the contents will be too. That preview is the single most useful diagnostic in the app, and it costs one keystroke (Ctrl+F) to open.

If your team spans both apps, standardize which one owns the document. A .docx with a contents field opened in Google Docs renders the field as static text that won't update; converting back can leave stale numbers. Word's field is more capable for print-oriented work; Google Docs' outline is lighter and auto-maintained. Pick per project rather than per habit when page numbers matter.

FAQ

Does adding a table of contents change my document's page count?

Yes, and the contents page itself counts. The gallery inserts the contents at the cursor plus a page break, so a document that ended on page 12 now runs to 13 or 14 before any other edit. Word recalculates body page numbers after the insert, which is why the contents shows the post-insert numbers. Allow an extra page in print layouts with a separate title page, since the contents commonly takes its own leaf.

Can I put the contents at the start without breaking the title page?

Insert a section break (Layout → Breaks → Next Page) after the title page, then insert the contents on the new section's first page. The section break lets you number front matter with roman numerals while body pages keep Arabic numbering, and the contents reflects each section's own format. Insert the break before the contents, not after — order matters. The References field doesn't care where it sits as long as it's in body text.

That's the \h switch making entries clickable — press Ctrl and click an entry to jump to the heading. It's on by default and it's useful for on-screen reading. To remove it for a print-only document, edit the TOC field and delete the \h switch, then update. Word will then produce plain entries. For a PDF export where links shouldn't appear, disable it before the final save.

Can I add a heading level four or deeper to the contents?

Yes — open the Custom Table of Contents dialog, clear the "Show levels" value and type 4 (up to 9), or edit the field's \o "1-3" to \o "1-4". Each deeper level adds a TOC 4 style you can format independently. Word supports nine levels. The practical limit is readability: four levels on a letter page produces deep indents, and most style guides stop at three.

What happens to the contents if I rename a heading?

The entry changes only after you update the field. Right-click inside the contents and choose Update Field → Update entire table, and the new heading text appears. A page-numbers-only update won't catch a rename. If the renamed heading is a style you mapped in the Options dialog, the entry persists at the same level. If you converted it to body text, the entry drops out on the full update.

How do I delete the table of contents cleanly?

Click anywhere inside the contents, then click the Table of Contents button again and choose Remove Table of Contents from the gallery's bottom option. That deletes the entire field and its page break in one action. Selecting the visible text and pressing Delete usually leaves part of the field behind, which is why the menu route is safer. After removal, the heading styles stay applied to your body titles.

Does a table of contents field work inside a macro or automated workflow?

Yes — the TOC field responds to VBA, and the object model exposes TablesOfContents with an Add method and an Update method. This is how template builders insert a contents page at document creation. A common failure: the macro runs before headings are styled, producing an empty field that doesn't self-correct. Build the styles first, then the field, then call Update in that order and the automation behaves like a careful human.