How to Add an Automatic Table of Contents in Microsoft Word
You will learn to build a table of contents from your headings in Word, check its page numbers and update it after you edit your document.
3 min read
You can add an automatic table of contents in Microsoft Word by styling your section titles as headings and then picking an automatic style from the References tab. Word reads those headings and builds the list, including page numbers, for you. This guide is for office workers, students and small business owners who write long reports, proposals or price lists in Word.
What You Need
- The desktop version of Word for Windows or Mac. A Microsoft 365 subscription works too. Some features may not be available in Word for the web or on mobile apps, so use a computer if you can.
- A document with section titles. A typical example: Sana, an office assistant in Lahore, is preparing a 20-page quarterly sales report for her manager. Her sections are “Introduction,” “Sales,” “Expenses” and “Next Steps.”
- A few minutes to check the result before you share the file.
Step by Step
-
Style your section titles as headings. Word builds the table from paragraphs that use styles with outline levels, and heading styles are the most common choice. For Sana, “Introduction,” “Sales” and “Next Steps” become Heading 1, while smaller points under Sales become Heading 2.
-
Click where the table should appear. Most people place it on a page after the title page. Sana puts her cursor on a blank line after the cover page.
-
Open the References tab. This tab holds the table of contents tools. Sana clicks References at the top of the window.
-
Choose Table of Contents and pick an automatic style. Word inserts the table using your headings. Sana selects the first automatic style in the list, and her headings appear with page numbers beside them.
-
Check the page numbers. Scroll through the document and compare each entry with the page where the heading really sits. Sana notices that the “Sales” entry is correct but “Next Steps” is one page off.
-
Update the table after you edit. If you add, remove or move text, the page numbers can change. Update the table again so the numbers stay correct. Sana adds a paragraph to the Sales section and updates the table, and “Next Steps” moves to the right page.
-
Optional: view the field code on Windows. Press Alt+F9 to switch between the field codes and the results, and press it again to go back. A basic code looks like this:
{ TOC \o "1-3" }
This tells Word to list paragraphs with outline levels 1 through 3. You do not need to type this code to make a table of contents.
Tips and Common Mistakes
- A heading is missing from the table. Word only lists paragraphs formatted with styles that carry outline levels. If a title is just bold text in normal style, it will not appear. Apply a heading style to it and update the table.
- You typed page numbers by hand. Do not do this. Automatic page numbers update with your document, while typed numbers go out of date as soon as you edit.
- You forgot to update after changes. Page numbers can shift after you add or delete text. Make it a habit to update the table just before you save or send the file.
- You are using a shared template across different language settings. The guidance from Microsoft is not to use the \t switch in templates meant for users with different language configurations, because the list separator can differ between settings.
- You are working in the web or phone app. Some features may be missing, so if the table looks different from what this guide describes, switch to the desktop version.
- You also need a list of tables or figures. Word can list captioned items using References and Insert Caption, and a field such as { TOC \c “tables” } lists numbered tables. This is an advanced step, so test it on a copy first.
Use It Responsibly
Always check the finished table yourself. Word builds it from your headings, but it cannot tell whether your titles are accurate or your page numbers match your final layout. If you use an AI tool to draft or reword headings, check every suggestion before you put it in your document, because AI answers can be wrong or out of place for your report. Never paste confidential company figures, customer details or personal data into an AI tool to get help with headings. Follow your workplace or school rules on sharing documents, and follow Microsoft’s own terms for the version of Word you use. Keep your Microsoft account secure with a strong, unique password and turn on two-step verification where it is offered.
About the author
Ali Raza, Founder
Sources
- Field codes: TOC (Table of Contents) field - Microsoft Support — support.microsoft.com Official source
Sources last checked . Apps change: if a step looks different, follow the maker's page.
Drafted with AI assistance from the help pages above and checked automatically for completeness. Always confirm dates, fees and requirements on the official website before acting. Report an error · How we correct mistakes
Questions or something to add?
Ask below. We read every comment and reply when we can.