How to Insert and Automatically Generate a Table of Contents in Word
Explain the general method for creating a table of contents in Word: first apply heading styles to the chapter titles, then insert an automatic table of contents, update the table after making changes, and check the page numbers and heading levels item by item. Applicable to theses, reports, and long proposals.
Key points of this article
- The table of contents is generated from heading styles; a manually typed TOC easily goes out of alignment after edits, so setting styles before inserting it is more reliable.
- Use Heading 1 for first-level chapters and Heading 2 for second-level sections so the hierarchy is clear and the TOC indents correctly.
- After changing the body text, select the TOC and update the page numbers instead of manually editing each page number.
- The TOC page is usually not counted in the body page numbering, so distinguish it through section breaks or page-number start settings.
- After generating it, check item by item that all chapters are present, the levels are correct, and randomly spot-check that page numbers jump to the right places.
Many people writing theses, project reports, or long proposals type out a table of contents by hand in Word, then check the page numbers one page at a time. Whenever the content changes, the page numbers no longer match, and everything has to be redone. There is actually a standard, general method for creating a Word table of contents: first let Word recognize which text is a heading, then have it generate the table of contents automatically from those headings.
This article is for anyone who needs to create a table of contents for a multi-chapter document. After reading it, you will be able to set the correct heading levels, insert an automatic table of contents with page numbers, and quickly update it after the body text has been changed. Here we cover general Word operations that do not depend on a specific version or any additional tools.
Word's table of contents rests on one premise: it only recognizes heading styles, not font size or bold formatting. Once you understand this, most "empty table of contents" or "wrong page numbers" problems can be avoided.
How to Create a Table of Contents in Word: One-Sentence Answer
The table of contents is generated from heading styles. First, apply heading styles to the chapter titles, then insert an automatic table of contents at the desired location. Do not type it manually. Choose the approach below based on your situation.
| Your situation | Recommended Practices | Cause |
|---|---|---|
| Long documents (papers, reports, bid documents) have multi-level sections | Heading 1 for first-level chapters, Heading 2 for second-level sections, then insert an automatic table of contents | The hierarchy is clear, and the page numbers update automatically with the content. |
| Short documents only have a few sections. | Same heading style, keep only level-one headings in the table of contents | The operation is small, and future changes will also be easy to make. |
| The table of contents has already been typed out by hand, and the page numbers need to be changed. | Switch to heading styles and an automatic table of contents, and delete the manual table of contents. | Manual table-of-contents edits tend to fall out of alignment easily. |
| The title is just bold or enlarged plain text. | Convert them to heading style first, then generate the table of contents. | Word only recognizes styles, not visual effects |
| Appendices or special headings need separate formatting | Modify the table of contents style after generation, without manually editing line by line | Table of contents format and body heading format are set separately; change them once each. |
Before You Begin: Confirm These Points
Spend a few minutes checking the following items before you start, which can reduce rework.
- Whether chapter titles are consistent: Chapters at the same level should use the same heading style; otherwise the table of contents will miss entries. For example, if "Chapter 1 Introduction" and "2.1 Research Background" use different styles, the table of contents will be incomplete.
- Whether levels are clearly distinguished: Level-one chapters and level-two sections should be kept apart. Treating bolded sentences in the body text as subheadings will muddle the table of contents hierarchy.
- Whether the body text is largely finalized: Page numbers in the table of contents depend on pagination. If the body text is still going to change substantially, it is advisable to finish the content first before generating the table of contents, to avoid repeated updates.
- Whether page numbers are needed: With page numbers, readers can jump directly to the corresponding location; if only a list of chapters is needed, you can keep just the heading text.
- Differences between Word versions: The menu positions and button appearances differ slightly across versions, but the logic of heading styles and the table of contents is basically the same; this article describes general operations.
Steps to Generate a Table of Contents in Word
Follow the steps below in order. They apply to most versions of Word.
- Select the title text of Chapter 1 and apply "Heading 1" from the Styles gallery.
- Apply "Heading 1" to the other top-level chapters in turn, and apply "Heading 2" to the sections under each top-level chapter.
- Use the Navigation view to check the heading hierarchy, confirming that no chapters are missing and that no body text has been mistakenly set as a heading.
- Place the cursor where the table of contents should appear, usually after the cover page and before the body text; you may start it on a new page.
- In the menu, find the table of contents feature (usually on the References tab or a similar tab), and choose an automatic table of contents style that includes page numbers.
- Check that the table of contents has appeared, that each line shows the heading text plus its page number, and that you can Ctrl+click (or hold Ctrl and click) an entry to jump to the corresponding location.
- After editing the body text, select the table of contents and use "Update Table"; depending on your needs, choose to update only the page numbers or to update the entire table.
- If you need to adjust the font, line spacing, or indentation of the table of contents, modify the TOC styles rather than manually changing the format line by line.
Verify each item after completion
After the table of contents is generated, do not rush to submit or print it. Check each item against the table below.
| Checklist items | How do you see it? | What should I do if I have a problem? |
|---|---|---|
| Are all the chapters complete? | Compare all headings in the table of contents with those in the body text. | Headings that were missed have no style set; after adding it, update the table of contents. |
| Is the hierarchy level correct? | Should second-level subsections be indented under their corresponding first-level chapters? | Find the headings with incorrect hierarchy, fix their styles, and then update. |
| Do the page numbers correspond? | Click a few entries in the table of contents at random, and check whether they jump to the correct pages. | Update the table of contents after revising the body text, and choose to update the entire table of contents. |
| Are the heading texts consistent? | Are the text in the table of contents and the body headings exactly the same? | The table of contents text comes from the headings. After you modify the headings, just update the table of contents. |
| Does the table of contents page count toward the body page numbering? | Check the page number displayed at the bottom of the table of contents page | In section or page number settings, start the body text from a specified page number |
📊 Core Comparison
There are three common approaches in practice, each suited to different scenarios.
| Method | Previous operation amount | After the content is changed | Suitable situations |
|---|---|---|---|
| Add automatic table of contents to heading styles | Slightly more; you need to set up the styles first. | Just update the directory. | Long document, and it will be revised repeatedly. |
| Manually enter the table of contents | Few | Page numbers need to be changed one by one. | A small file of only a few pages |
| Use only bold or larger font. | Few | Unable to generate table of contents | Documents that do not need a table of contents |
If a document will be revised many times, spending a few extra minutes setting up styles at the beginning will save a lot of time on later updates.
❓ Frequently Asked Questions (FAQ)
1. Why is the table of contents empty after I insert it?
Usually this happens because the headings haven't been formatted with a heading style, so Word can't find content to include. Apply the Heading 1 or Heading 2 style to the chapter titles, then update the table of contents.
2. What if the table of contents page numbers are wrong?
First, update the table of contents and choose to update the entire table. If the entries are still misaligned, check whether there are extra page breaks or section breaks before the body text, and confirm that page numbering starts counting from the first page of the body text.
3. How do I make the table of contents show only first-level headings?
In the table of contents settings, change the display level to 1, then update the table of contents. This way, second-level subsections will no longer appear in the TOC, and the heading styles in the body text do not need to be changed.
4. Can I change the font and spacing of the text in the table of contents?
Yes. Just modify the style corresponding to the table of contents, and all TOC entries will change together. Directly reformatting line by line may be overwritten the next time the table of contents is updated, so this is not recommended.
📝 Summary
How to create a table of contents in Word: the key is to first mark the chapter hierarchy with heading styles, then insert an automatic table of contents, and update it whenever the content changes. Follow the steps and checklist in this article, and the table of contents and page numbers in a long document will stay consistent.


