How to Fix Table of Contents Hanging Indents and Tab Leaders in Word
Question details
The user needs to resolve inconsistent spacing, hanging indents, or misaligned dot leaders in a Word document's table of contents.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Formatting an automatically generated table of contents to ensure uniform spacing, alignment, and proper leader dots.
- Observed behavior
- Some entries in the table of contents display inconsistent spacing, broken hanging indents, or incorrectly aligned tab leaders compared to the rest of the list.
Turn on the horizontal ruler (View > Ruler) and enable hidden formatting symbols to easily identify misaligned tabs and invisible spacing characters causing issues in your document.
Modify TOC Styles and Tab Settings
The most reliable way to fix inconsistent indents and leaders is to adjust the built-in TOC styles directly instead of manually formatting text in the table.
A table of contents is automatically formatted using predefined TOC styles (TOC 1, TOC 2, etc.). Manually formatting the table will result in lost changes the next time the table is updated. Modifying the base style ensures permanent and consistent formatting across all entries of the same level.
Navigate to the References tab, click on Table of Contents, and choose Custom Table of Contents at the bottom of the drop-down menu.
In the dialog box, click the Modify button to open the Style window, which lists the available TOC levels.
Select the problematic TOC level (e.g., TOC 2) and click Modify. In the new window, click the Format button at the bottom left and select Tabs.
Set the tab stop position to your document's right margin, choose the Right alignment radio button, select your preferred dot Leader, and click Set. Click OK on all windows to update the table.

Verify Heading Styles in the Document Body
If two entries on the same TOC level look different, they might accidentally be assigned to similar but distinct heading styles in the document body.
Create and Format Table of Contents Automatically in WPS Writer
WPS Writer provides an intuitive and powerful tool to generate, format, and customize your Table of Contents with perfectly aligned tab leaders and hanging indents without the formatting headaches.
- 1. Insert Table of Contents: Open your document in WPS Writer, go to the Reference tab, click on Table of Contents, and select Insert Table of Contents.
- 2. Customize Layout: In the dialog box, set your preferred Tab leader style from the drop-down menu and adjust the required heading levels.
- 3. Map Custom Styles: Click the Options button to map any specific custom heading styles in your document to the correct TOC levels.
- 4. Generate the Table: Click OK to generate perfectly aligned entries. You can easily update it later by clicking the Update TOC button.

Frequently Asked Questions
Why does my Table of Contents have inconsistent spacing between text and numbers?
Inconsistent spacing usually occurs when different built-in TOC styles are applied to the same level, or if manual tab stops and spaces were accidentally added directly into the document headings. Removing manual spaces from the headings will fix the generation.
How do I show the horizontal ruler to check tab stops in Word?
To display the horizontal ruler, navigate to the View tab on the ribbon and check the box next to Ruler in the Show group. This tool helps you identify misaligned tab stops in your TOC entries.
Can I fix TOC indents manually instead of using styles?
While you can manually adjust indents using the ruler directly on the table, it is highly discouraged. Any manual formatting will be completely overwritten and lost the next time you update the Table of Contents. Modifying the base TOC styles is the permanent solution.




