You have restructured a long Word document by moving, adding, or deleting sections, but the table of contents still shows old page numbers. This happens because a table of contents is a field code, not a static list. Word stores the page numbers at the moment you insert or last update the TOC, so any structural change makes them stale. This article explains how to update the TOC correctly, why the numbers get out of sync, and what to do when a simple update does not fix the issue.
Key Takeaways: Fixing a Misaligned Table of Contents
- Right-click the TOC and choose Update Field, then select Update page numbers only: Refreshes all page numbers without changing headings or formatting.
- Ctrl + A then F9: Updates every field in the document, including TOC, cross-references, and page number fields.
- File > Options > Display > Update fields before printing: Automatically updates the TOC and all fields each time you print or save to PDF.
Why the Table of Contents Shows Wrong Page Numbers After Restructuring
A table of contents in Word is a field code, specifically the TOC field. When you insert a TOC, Word scans the document for heading styles (Heading 1, Heading 2, and so on), captures the heading text and its current page number, and builds a static field result. The TOC does not automatically refresh when you move, insert, or delete content. After a restructure, the page numbers stored in the field are no longer accurate because the physical pagination of the document has changed. The TOC field result remains frozen until you manually tell Word to update it.
Word also stores the page numbers based on the physical page break positions at the time of the last update. If you add a paragraph that pushes a heading to the next page, or if you delete a section that removes a page break, the TOC still shows the old number. The field must be re-evaluated against the current document layout to produce correct numbers.
Common Scenarios That Cause Stale Page Numbers
Several editing actions lead to mismatched TOC page numbers:
- Inserting or deleting entire sections, chapters, or appendices
- Changing the font size, spacing, or margins of a heading or body paragraph, which shifts content to a different page
- Adding or removing manual page breaks, section breaks, or column breaks
- Using different headers or footers that affect pagination
- Inserting or resizing images, tables, or charts that push text to the next page
Steps to Update the Table of Contents and Correct Page Numbers
Use one of the following methods to refresh the TOC after a document restructure. All methods work in Word for Microsoft 365, Word 2021, Word 2019, and Word 2016.
Method 1: Update the TOC from the Context Menu
- Right-click anywhere inside the table of contents
Do not click a heading link. Right-click a blank area or the TOC border. A context menu appears with two update options. - Select Update Field
Word opens the Update Table of Contents dialog box. You see two radio buttons: Update page numbers only and Update entire table. - Choose Update page numbers only and click OK
This option refreshes every page number in the TOC without altering the heading text, indentation, or formatting. It is the fastest and safest choice after a restructure that did not change heading names.
Method 2: Update All Fields in the Document
- Press Ctrl + A to select the entire document
This selects all content, including the TOC, headers, footers, and any other field codes. - Press F9
Word updates every field in the selection. The TOC page numbers, cross-references, page number fields, and index entries all refresh at once. If the TOC is in a different section, make sure your selection includes that section.
Method 3: Enable Automatic Update Before Printing
- Go to File > Options
Word opens the Word Options dialog box. - Select Display in the left pane
Scroll down to the Printing options section. - Check the box labeled Update fields before printing
This setting tells Word to refresh all fields, including the TOC, every time you print, save to PDF, or use Print Preview. After enabling this, you never need to manually update the TOC before final output. - Click OK
The setting takes effect immediately for the current document and all future documents based on the Normal template.
When the TOC Still Shows Wrong Page Numbers After Updating
If you have updated the TOC and the page numbers remain incorrect, the problem is not the TOC itself but the underlying heading styles or pagination. Below are the most common causes and their fixes.
Headings Are Not Formatted With Built-In Heading Styles
A TOC field only recognizes paragraphs formatted with Word built-in heading styles: Heading 1 through Heading 9. If you applied a custom style that looks like a heading but is not one of the built-in styles, the TOC ignores it. To verify, click the Home tab and look at the Styles gallery. Headings that appear in the TOC must show Heading 1, Heading 2, etc. Apply the correct style to any heading that is missing from the TOC or showing a wrong page number.
The TOC Field Is Locked or Corrupted
A locked field does not update. To check, right-click the TOC and see if Update Field is grayed out. If it is, the field is locked. Press Ctrl + A, then press Ctrl + Shift + F11 to unlock all fields, then press F9 to update. If the TOC still does not update, the field code may be corrupted. Delete the entire TOC, place the cursor where you want the new TOC, go to References > Table of Contents, and choose a built-in style. Word rebuilds the TOC from scratch using the current heading positions and page numbers.
Document Contains Multiple Sections With Different Page Numbering
If your document uses section breaks with restart page numbering, the TOC may show page numbers relative to the wrong section. For example, a heading on page 5 of the document might show as page 1 if the section restarts numbering. Open the header or footer in each section and check the Page Number Format dialog. Ensure that Start at is set correctly or set to Continue from previous section. After adjusting the numbering, update the TOC again.
Manual Update vs Automatic Update: When to Use Each Method
| Item | Manual Update (Right-click > Update Field) | Automatic Update (File > Options > Update fields before printing) |
|---|---|---|
| Trigger | User action only | Print, save to PDF, or Print Preview |
| Scope | Only the selected TOC field | All fields in the document |
| Best for | Quick check after a small edit | Final output or collaboration handoff |
| Risk | None, you control the update | May change cross-references unexpectedly if not reviewed |
| Keyboard shortcut | Click TOC, then F9 | No direct shortcut, must enable in Options |
After restructuring a document, you can now update the table of contents to show accurate page numbers using the right-click menu, the Ctrl + A then F9 shortcut, or the automatic update before printing setting. If numbers remain wrong, check that headings use built-in styles and that section page numbering is consistent. As a final step, enable the Update fields before printing option to prevent stale page numbers in your next print or PDF export.