Word · Long documents
Create a table of contents in Word that updates itself
A hand-typed contents list is wrong the moment anything moves — and something always moves. Word's automatic table of contents is built from your headings instead: style the headings once, insert the table, and after any edit one update rebuilds the entries and the page numbers. This guide does it in that order.
What you need
- A document long enough to need one. Past about eight or ten pages, readers stop scrolling hopefully and start looking for a map. Reports, manuals, proposals and long family documents all qualify.
- Headings you are willing to style properly. The whole method rests on one fact, stated plainly in Insert a table of contents: a table of contents in Word is based on the headings in your document. Bold, enlarged body text that merely looks like a heading is invisible to it.
Step 1: Style the headings first
- Apply Heading 1 to each top-level title. Click in a chapter or section title — no need to select the whole line — and choose Home > Styles > Heading 1. Repeat for every top-level section.
- Apply Heading 2 and Heading 3 to the levels below. Subsections take Heading 2; sub-subsections, Heading 3. Keep the ladder honest: a Heading 3 that sits directly under a Heading 1 with no Heading 2 between will look lost in the finished table.
- Fix the heading look in the style, not heading by heading. If the colour or size of Heading 1 is not to your taste, right-click the style in the Styles gallery and choose Modify. Every heading in the document follows the style, so one change restyles them all — and the table of contents keeps working, because it reads the style, not the look.
Step 2: Insert the table
- Put the cursor where the table belongs. Usually its own page after the title page: click at the top of a blank page, or insert a page break where the table should start.
- Insert an automatic table. Go to References > Table of Contents and choose one of the Automatic styles. Word builds the entries from your styled headings, with page numbers and clickable links. Pick an automatic style, not the manual one — a manual table is a typed list wearing a table's clothes, and it never updates.
- Read it once against the document. Every section you expect should appear, at the right level of indent. A missing entry almost always means that heading never got a heading style in Step 1.
Step 3: Update it after edits
- Update before every send-out. Right-click the table and choose Update Field, or click into the table and use References > Update Table.
- Choose the right kind of update. Word asks: Update page numbers only is the fast choice when no headings were added, removed or reworded. Update entire table rebuilds the entries as well — use it whenever headings changed, and use it before printing even if you think they did not.
- Update twice if the document moved a lot. Adding the table itself, or a big edit near the front, can shift page numbers while the update runs. A second update settles the numbers: if the first update changes the pagination, update again so the numbers are right.
Step 4: Adjust the look without breaking it
- Change levels shown through the custom table dialog. References > Table of Contents > Custom Table of Contents sets how many heading levels appear. Two or three levels suit most documents; nine levels is a directory, not a map.
- Restyle through the TOC styles. The table's own entries use styles named TOC 1, TOC 2 and so on. Modifying those changes the table's fonts and spacing while leaving the updating machinery alone.
- Never retype an entry by hand. Typed edits inside the table are wiped out at the next update. To change an entry's wording, change the heading in the document and update the entire table.
End state
- The table lists every styled heading, at the right level, with the page number where that section starts.
- Clicking an entry (Ctrl+click in desktop Word) jumps to that heading in the document.
- One Update Field after any edit brings entries and numbers back in line — no hand-typed corrections anywhere in the table.
When it goes wrong
- A heading is missing from the table. It was formatted by hand instead of with a heading style, or it uses a custom style the table is not set to read. Apply the matching Heading style and update the entire table.
- The table swallowed a paragraph of body text. That paragraph carries a heading style or a heading outline level by accident — it happens when styles are applied with the cursor in the wrong paragraph. Set it back to Normal and update.
- Page numbers are off by one throughout. The table was updated before the last edit landed, or the document's pages shifted during the update. Update the entire table once more, after all editing is finished.
- An error message sits where the table was. The table is a field, and fields can show an error after a bad edit or a damaged save. Delete the table, put the cursor back in its place, and insert a fresh automatic table — the headings it reads are still in the document.
Related document tasks
-
Insert a table of figures in Word
Insert a table of figures in Word: add captions to your figures first, generate the list from the References tab, make a separate list of tables, and update the list after edits so page numbers stay right.
-
Insert a date in Word that updates itself, and one that stays fixed
A letter template should show today's date every time you open it.
-
Create a table of contents in Google Docs and keep it updated
A long document without a table of contents makes readers scroll and guess.
-
Create and format a table in Word
A table turns a wall of figures, dates or names into something a reader can scan in seconds — a price list, a schedule, a comparison.
Sources
- Microsoft Support, Insert a table of contents — heading styles as the basis of the table, inserting an automatic style, and updating with Update Field.
- Microsoft Support, Add a table of contents — adding heading styles, choosing a format, and updating again when pagination changes.