You add or remove content in your Word document, but the page numbers in the Table of Contents remain unchanged. This happens because Word stores the TOC as a field code that does not refresh automatically when page breaks shift. This article explains why the TOC field fails to update and provides the exact steps to force a refresh of page numbers.
Key Takeaways: Fixing Page Numbers in a Word TOC
- Right-click the TOC > Update Field > Update page numbers only: Refreshes page numbers without changing headings or formatting.
- Ctrl + A then F9: Updates all field codes in the document, including the TOC, in one action.
- File > Options > Display > Update fields before printing: Forces Word to refresh the TOC automatically before printing or PDF export.
Why Page Numbers in a TOC Do Not Refresh Automatically
A Table of Contents in Word is not a static list of headings. Word builds the TOC from a special field code named TOC (field code TOC \o “1-3”). This field reads heading styles in the document and records the text and the page number where each heading appears. When you insert a new paragraph, an image, or a page break, the page numbers shift. However, the TOC field does not recalculate its values on its own. Word treats the TOC as a snapshot of the document at the moment the field was last updated.
The TOC field only recalculates when you explicitly trigger an update. This design prevents Word from constantly recalculating the TOC while you type, which would slow down editing in long documents. The same behavior applies to other field-based elements, such as cross-references, indexes, and page number fields in headers or footers.
When Word Updates the TOC Automatically
By default, Word updates the TOC automatically only in one specific scenario: when you open a document that was saved with the TOC visible. In that case, Word asks whether you want to update the TOC. If you click No, the TOC retains the old page numbers. Word never updates the TOC while you edit the document in real time.
Why the Update Table of Contents Button Might Be Grayed Out
If you click inside the TOC and the Update Table button on the References tab appears dimmed, the TOC is likely a plain text table or a manually typed list. Word can only update a TOC that was generated using the built-in TOC feature. A manual list of headings and page numbers is plain text and has no field code attached. You must delete the manual list and insert a proper TOC via References > Table of Contents.
Steps to Update Page Numbers in a Word TOC
Use one of the following methods to refresh the page numbers in your Table of Contents.
Method 1: Update the TOC from the Right-Click Menu
- Click anywhere inside the Table of Contents
A gray border appears around the TOC, indicating the field is selected. - Right-click the selected area
A context menu appears. Choose Update Field. - Select Update page numbers only
In the Update Table of Contents dialog box, choose Update page numbers only. This option refreshes the page numbers without changing any heading text or formatting you applied manually. Click OK.
Method 2: Update the TOC from the References Tab
- Click inside the TOC
Place the cursor anywhere within the Table of Contents. - Go to the References tab
In the Table of Contents group, click Update Table. - Choose the update option
Select Update page numbers only and click OK.
Method 3: Update All Fields in the Document at Once
- Press Ctrl + A
This selects the entire document content, including all field codes. - Press F9
Word updates every field in the selection, including the TOC, cross-references, and page number fields. If the TOC contains subentries, all page numbers refresh together.
Method 4: Set Word to Update Fields Before Printing
- Go to File > Options
The Word Options dialog box opens. - Click Display in the left panel
Scroll to the Printing options section. - Enable Update fields before printing
Check the box next to Update fields before printing. Click OK. Now, every time you print or export to PDF, Word automatically updates the TOC page numbers without manual intervention.
Common TOC Page Number Update Problems
The TOC Shows the Same Page Number for All Headings
This usually means the headings are not formatted with built-in heading styles (Heading 1, Heading 2, etc.). Word builds the TOC only from text formatted with those styles. Apply the correct heading style to each heading line: select the text, then on the Home tab, click the desired heading style in the Styles gallery. After applying the styles, update the TOC again.
Page Numbers in the TOC Are Off by One or More Pages
A mismatch of one or two pages often occurs when a section break or a manual page break shifts content. Check for extra page breaks, section breaks that start a new page, or images set to In Line with Text that push headings to the next page. Remove unnecessary breaks, then update the TOC. If the document uses different headers or footers in different sections, verify that page numbering restarts correctly in each section.
Word Crashes When Updating the TOC in a Large Document
Very large documents with hundreds of headings can cause Word to freeze temporarily during a TOC update. To reduce the load, update the TOC in sections: select only a portion of the document, then press F9. Alternatively, temporarily reduce the TOC depth by right-clicking the TOC, choosing Edit Field, and changing the TOC level from 3 to 2. After the update, restore the original depth setting.
Manual Edits to the TOC Are Lost After Updating
If you type directly into the TOC to change a heading name or add a line, those changes disappear when you update the TOC. The TOC field regenerates from the heading styles in the document, overwriting any manual edits. To preserve custom text, do not edit the TOC directly. Instead, change the heading text in the document body. If you need text in the TOC that does not match a heading, create a separate TOC entry using Alt+Shift+O (Mark Table of Contents Entry) which lets you specify custom text that survives updates.
| Item | Update page numbers only | Update entire table |
|---|---|---|
| Description | Refreshes the page number for each TOC entry without changing heading text or formatting | Rebuilds the TOC from scratch, applying the default style and removing any manual formatting |
| When to use | After adding or deleting content that shifts page breaks | After renaming headings, applying a different heading style, or changing the TOC layout |
| Effect on manual edits | Preserves any formatting changes made directly inside the TOC | Overwrites all manual edits, including font changes and indentation |
| Keyboard shortcut | Right-click > Update Field > Update page numbers only | Right-click > Update Field > Update entire table |
You can now update page numbers in your Word TOC using the right-click menu, the References tab, or the Ctrl+A then F9 shortcut. For future documents, enable the option to update fields before printing to avoid stale page numbers. If you frequently work with long reports, consider using the Mark Table of Contents Entry feature to include custom text that survives updates without manual rework.