What a table of contents does and why you need one

A table of contents is a list at the beginning of your document that shows every heading and its page number. When someone opens your document, they can click the heading in the table of contents and jump straight to that section instead of scrolling through pages to find it.

Most word processors build the table of contents automatically by reading the headings you've already formatted in your document. You don't type it manually — the program does the work and updates it if you add, delete, or move sections later.

A table of contents is most useful in longer documents: reports over five pages, manuals, research papers, or anything with multiple sections that a reader might want to jump between. Short documents usually don't need one.

Key Takeaways

  • Your document must use heading styles (Heading 1, Heading 2) for the table of contents to work — regular bold text won't be included.
  • In Microsoft Word, insert a table of contents from the References tab, and it updates automatically when you change headings.
  • Google Docs builds a table of contents from your heading styles using the Insert menu, and you can link it to jump to sections.
  • If you move, rename, or delete a heading, right-click the table of contents and choose to update it so page numbers stay correct.
  • Place the table of contents near the front of your document, usually after the title page but before the main text begins.

Format your headings before you build the table of contents

The table of contents reads only headings that are formatted with heading styles, not text that is just made bold or larger. Before you create the table of contents, go through your document and mark each section heading with the correct style.

In Microsoft Word, select a heading, then click the Home tab. In the Styles group, click Heading 1 for main section headings, Heading 2 for subsections under those, and Heading 3 for subsections under those. Do this for every heading in your document.

In Google Docs, select a heading and click the paragraph style dropdown (it usually says "Normal text" or "Body text"). Choose Heading 1, Heading 2, or Heading 3 from the list. The table of contents will only include headings you've marked this way.

If you skip this step, the table of contents will be empty or incomplete. The program has no way to know which text is a heading unless you tell it using the heading styles.

Create a table of contents in Microsoft Word

Once your headings are formatted with heading styles, click where you want the table of contents to appear — usually on a blank page near the front of the document, after any title page. Click the References tab at the top of the window.

In the References tab, click Table of Contents. Word shows you several design options. Click the one you prefer. Word inserts the table of contents and fills it with your headings and page numbers automatically.

If you later add a new heading, delete one, or move a section to a different page, the page numbers in the table of contents won't update on their own. Right-click anywhere in the table of contents and click Update Field. Choose whether to update page numbers only or the entire table, then click OK. Word rescans your document and fixes the table.

If you want to remove the table of contents, right-click it and click Remove Table of Contents. This deletes only the table — your headings stay in the document.

Create a table of contents in Google Docs

In Google Docs, place your cursor where you want the table of contents to go. Click Insert in the menu bar, then click Table of Contents. Google Docs shows you two design options — a plain list or one with a blue line on the left. Click the one you want.

Google Docs builds the table from your Heading 1, Heading 2, and Heading 3 styles and creates clickable links. When someone reading the document clicks a heading in the table of contents, it jumps them to that section.

When you change a heading in your document, the table of contents updates automatically — you don't have to do anything. If it doesn't update right away, refresh the page or close and reopen the document.

To remove the table of contents, click it and press Delete. The headings in your document stay where they are.

Create a table of contents in other programs

LibreOffice Writer works similarly to Word. Format your headings with the Heading 1, Heading 2, and Heading 3 paragraph styles. Click Insert in the menu, then Table of Contents and Index, then Table of Contents. LibreOffice inserts it and updates it the same way Word does.

Apple Pages has a different approach. Format your headings with the built-in heading styles, then click Insert in the menu bar. Scroll down and click Table of Contents. Pages shows you design options and inserts the table. If you change a heading later, the table updates automatically.

In most programs, the table of contents appears as a separate section that doesn't count toward your page numbering. If your document needs to start page numbering after the table of contents (so the first page of actual content is page 1), look for a page break or section break option in the Insert menu and place it right after the table of contents.

Fix common problems with your table of contents

If your table of contents is empty or missing headings, the most common reason is that you formatted those headings as bold or larger text instead of using the heading styles. Go back through your document, select each heading that's missing, and apply the correct heading style. Then update the table of contents.

If page numbers are wrong, you may have added or moved content since you created the table. Right-click the table of contents and update it. In Google Docs, just refresh the page.

If a heading appears in the table of contents but you don't want it there, select that heading in your document and change its style from Heading 1, 2, or 3 to Normal text or Body text. Update the table and it will disappear from the list.

If you want to include only Heading 1 and Heading 2 but not Heading 3, most programs let you customize this. In Word, right-click the table of contents and click Table of Contents Properties. Change the "Show levels" number to 2. In Google Docs, click the table of contents, then click the three dots menu and choose Update index to rebuild it with only the levels you want.

Where to place your table of contents

The table of contents usually goes on its own page or pages near the front of the document. In formal reports and theses, the order is typically: title page, then table of contents, then the actual content. In shorter documents, you might put it on the same page as your introduction.

Some documents have multiple tables — a table of contents for headings, a table of figures for images, and a table of tables for data tables. If your document needs all three, put them in that order, each on its own page or section.

If your document is very short (under five pages) or will only be read on a screen where scrolling is easy, a table of contents may not be necessary. Use your judgment based on how your readers will actually use the document.

Frequently Asked Questions

Can I create a table of contents without using heading styles?

No. The table of contents reads only text formatted with heading styles. If you use bold or larger font instead, the program won't recognize it as a heading. You must go back and apply the heading styles to every section you want included.

What if I want to include some headings but not others in the table of contents?

Change the style of the headings you don't want included. Instead of Heading 1, 2, or 3, use Normal text or Body text. Then update the table of contents. Only headings with heading styles will appear in the list.

Does the table of contents update automatically when I change page numbers?

In Google Docs, yes — it updates automatically. In Word and LibreOffice, you must right-click the table of contents and click Update Field to rescan your document and fix the page numbers. This takes a few seconds.

Can I edit the table of contents directly, or do I have to change the headings in the document?

You can edit it directly, but the changes won't stick. The next time you update the table of contents, it rebuilds from your headings and overwrites your edits. Always change the headings in the document itself, then update the table.

What if my document has no page numbers yet?

Add page numbers first. In Word, click Insert, then Page Numbers, and choose where you want them. In Google Docs, click Insert, then Page Numbers. Then create your table of contents — it will include the correct page numbers.