How to Add Line Numbers to a Microsoft Word Document

Organize your documents by numbering them

What to Know

  • Select Layout > Page Setup > Line Numbers > choose option > select Apply to drop-down > Selected sections.
  • Next, select Line Numbers > Add line numbering > OK.

This article explains how to add line numbers to documents in Word for Microsoft 365, Word 2019, 2016, 2013, 2010, and 2007.

How to Add Line Numbers to a Word Document

To include line numbers in a document:

  1. Go to Layout > Page Setup > Line Numbers.

    If the document is divided into sections and you want to add line numbers to the entire document, press Ctrl+A to select the entire document.

    Word with the Line Numbers option highlighted
  2. Choose one of the following options:

    • Continuous: Allows consecutive numbering throughout the document.
    • Restart Each Page: Starts each page with the number 1.
    • Restart Each Section: Starts with number 1 after each section break.
    • Line Numbering Options: Allows more advanced line numbering options, for example, to number at different intervals.
    Word with the Line Number options highlighted
  3. To add line numbers to a specific section or to multiple sections, choose Line Numbering Options to open the Page Setup dialog box, then select the Layout tab.

    Page Setup screen in Word with the Layout tab highlighted
  4. Select the Apply to drop-down arrow and choose Selected sections.

    Page Layout window in Word with the Apply To section highlighted
  5. Select Line Numbers.

    Page Setup screen in Word with the Line Numbers button highlighted
  6. Select the Add line numbering check box.

    Line Numbers box in Word with the Add Line Numbering command highlighted
  7. Select any other options you want, then select OK to close the window.

  8. Select OK to save your changes.

All About Line Numbers

Microsoft Word automatically numbers all lines except for a select few. It counts an entire table as one line. It also skips text boxes, headers and footers, and footnotes and endnotes.

Microsoft Word does count figures as one line, as well as a text box that has inline with text wrapping applied. However, the lines of text within the text box are not counted.

You decide how Word handles line numbers. For example, apply line numbers to specific sections, or number lines in increments such as every tenth line.

Then, when it's time to finalize the document, remove the line numbers and you're ready to go.

Was this page helpful?