How to Add Page Numbers to TOC Entries in Word
🔍 WiseChecker

How to Add Page Numbers to TOC Entries in Word

When you insert an automatic Table of Contents in Word, the entries typically include the heading text and its page number. Sometimes the page numbers may be missing or misaligned, leaving your TOC incomplete. This happens when the TOC field is set to hide page numbers or the wrong tab stop leader is selected. This article explains how to ensure page numbers appear correctly for every TOC entry and how to control their formatting.

Key Takeaways: Page Numbers in a Word Table of Contents

  • References > Table of Contents > Custom Table of Contents: Opens the TOC dialog where you enable or disable page numbers and choose the tab leader style.
  • Show page numbers checkbox: When checked, page numbers appear after each TOC entry; unchecking it removes them entirely.
  • Right align page numbers checkbox: Forces all page numbers to align to the right margin, creating a clean vertical column of page numbers.
  • Tab leader dropdown: Lets you select dots, dashes, or a solid line between the entry text and the page number.
  • Update Table button or F9 key: Refreshes the TOC after you make changes to headings or page breaks.

ADVERTISEMENT

How the TOC Page Number Feature Works

Word builds a Table of Contents from heading styles (Heading 1, Heading 2, Heading 3) applied in your document. Each heading’s page number is pulled from the page where that heading appears. The TOC field code stores formatting instructions, including whether to show page numbers, whether to right-align them, and which tab leader to use between the heading text and the number.

By default, Word’s built-in Automatic Table 1 and Table 2 include page numbers. However, if you modify the TOC or insert a manual TOC, the page number settings can be lost. The TOC dialog in the References tab is the control center for all page number options. There are no prerequisites beyond having heading styles applied and a TOC inserted.

Steps to Add Page Numbers to TOC Entries

  1. Click inside the existing TOC
    Place your cursor anywhere inside the Table of Contents. This selects the TOC field so that the next steps modify it.
  2. Open the Table of Contents dialog
    Go to the References tab. In the Table of Contents group, click Table of Contents and then select Custom Table of Contents at the bottom of the dropdown menu.
  3. Enable page numbers
    In the Table of Contents dialog, under the Print Preview section, make sure the Show page numbers checkbox is checked. If it is unchecked, click it to enable page numbers.
  4. Choose page number alignment
    Check the Right align page numbers checkbox to push all page numbers to the right margin. This creates a neat column of numbers. Leave it unchecked if you want page numbers to appear immediately after the heading text.
  5. Select a tab leader
    From the Tab leader dropdown, choose one of the following: (none) for no leader, dots (……), dashes (——–), or a solid line (_______). Dots are the most common choice for professional documents.
  6. Apply the changes
    Click OK. Word will ask: “Replace the selected table of contents?” Click Yes to overwrite the existing TOC with the new settings. The page numbers now appear with the formatting you chose.

If You Are Creating a New TOC From Scratch

  1. Place the cursor where you want the TOC
    Click at the location in your document where the TOC should appear.
  2. Open the TOC dialog
    Go to References > Table of Contents > Custom Table of Contents.
  3. Set the page number options
    Check Show page numbers and Right align page numbers. Choose a tab leader.
  4. Set the TOC level depth
    In the General section, set Show levels to the number of heading levels you want to include. For example, 3 includes Heading 1, 2, and 3.
  5. Click OK
    Word inserts the new TOC with page numbers formatted as you specified.

ADVERTISEMENT

Common TOC Page Number Problems

Page Numbers Show “0” for All Entries

This usually means the TOC field has not been updated after the document’s pagination changed. Press Ctrl + A to select the entire document, then press F9 to update all fields. Alternatively, click inside the TOC and choose Update Table from the References tab, then select Update page numbers only.

Page Numbers Are Missing After Copying a TOC From Another Document

When you copy a TOC from one document to another, the page numbers refer to the original document’s pages. To fix this, delete the copied TOC and insert a fresh one using References > Table of Contents > Custom Table of Contents in the new document. Then update the TOC with F9.

Page Numbers Do Not Right-Align Even Though the Checkbox Is Checked

This can happen if the TOC was inserted using a manual TOC instead of an automatic one. Manual TOCs are not linked to heading styles and do not respect the right-align setting. Delete the manual TOC and insert an automatic TOC from the References tab. Ensure your headings use built-in heading styles.

Automatic TOC vs Manual TOC: Page Number Handling

Item Automatic TOC (Recommended) Manual TOC
Build method Pulls headings and page numbers from heading styles Requires you to type each entry and page number manually
Page number updates Updates automatically with F9 or Update Table Must be retyped manually after each page change
Right-align page numbers Supported via the TOC dialog checkbox Not supported; you must set tab stops manually
Tab leader Selectable from dropdown (dots, dashes, line) Must be inserted manually using tabs and leaders
Best use case Any document longer than 5 pages that undergoes revision Static documents that will never be edited

Now you can add, align, and style page numbers in any Word Table of Contents. Start by opening your TOC dialog from the References tab and adjusting the page number checkboxes. For a professional finish, always use the automatic TOC and update it with F9 before finalizing your document. An advanced tip: to remove page numbers from only one TOC level, modify the TOC field code directly by pressing Alt+F9 and adding the \n switch for that level.

ADVERTISEMENT