Office Settings & Configuration

Can Microsoft Word Put Automatic Line Numbers in the Right Margin?

Natalie TaylorNatalie Taylor Nov 3, 2026 869 views

Question details

The user is trying to determine if it is possible to place automatic line numbers on the right side of the document instead of the left.

Can Microsoft Word Put Automatic Line Numbers in the Right Margin?
Product
Microsoft Word
Device & OS
not provided
Scenario
Formatting a document that specifically requires line numbering to be displayed along the right margin.
Observed behavior
Microsoft Word only places automatic line numbers on the left margin by default, and there is no built-in setting to change this to the right margin.
Before you start

Because Microsoft Word does not natively support right-margin line numbering, you will need to manually simulate this feature using a text box anchored to the document's header.

Solution 1Recommended

Use a Text Box Workaround for Right-Margin Line Numbers

Create a vertical text box in the header to manually align custom numbers along the right margin of your document.

Since the native line numbering feature in Word is restricted to the left margin for left-to-right languages, placing a text box within the header area allows the numbers to repeat across all pages without interfering with your main text.

1
Access the Document Header

Double-click on the top margin of your document to open the Header & Footer view.

2
Insert a Vertical Text Box

Go to the 'Insert' tab on the ribbon, click on 'Text Box', and select 'Draw Text Box'. Click and drag to draw a tall, narrow text box down the right margin of your page.

3
Format the Text Box

Right-click the border of the text box and select 'Format Shape'. Under the 'Line' options, choose 'No line' so the border becomes invisible.

4
Type the Line Numbers Manually

Click inside the text box and manually type the sequence of numbers (1, 2, 3, etc.), pressing 'Enter' after each number to match the line spacing of your document's main text.

5
Exit Header View

Double-click anywhere in the main body of the document to close the Header & Footer tools. The right-margin numbers will now appear.

Use a Text Box Workaround for Right-Margin Line Numbers
Manual Adjustment Required: Because these numbers are typed manually inside a text box, they will not update automatically. If you add or delete lines in your main document, you must manually adjust the numbering to match.
Free Microsoft Office alternative

Try WPS Office for Flexible Document Formatting

If you frequently encounter limitations while formatting documents in Microsoft Word, consider switching to WPS Office. It provides a highly compatible, free, and lightweight alternative with a familiar user interface that makes advanced layout tasks simpler.

  1. 1. Download WPS Office: Visit the official WPS website to download and install the free software suite on your device.
  2. 2. Open Your Document: Launch WPS Writer and open your existing Word document to seamlessly continue your work without losing formatting.
  3. 3. Format with Ease: Utilize the intuitive Insert and Page Layout tabs to customize your margins, headers, and text boxes quickly.
100% compatible with Microsoft Word formats (.doc, .docx)Familiar, easy-to-use interface with zero learning curveComprehensive page layout, margin, and text box adjustment toolsFree to use and significantly lighter on system resources
microsoft office alternative - wps office

Frequently Asked Questions

Why does Word only put line numbers on the left margin?

By default, Microsoft Word is optimized for left-to-right (LTR) languages like English. In traditional LTR publishing and legal formatting, reference numbers are placed on the left margin for easier visual alignment when reading from left to right.

Will changing the document's text direction move the line numbers?

Yes. If you change the document's text direction to Right-to-Left (RTL), Word will move the automatic line numbers to the right margin. However, this also forces all your text to align and read from right to left, which is not suitable for documents written in left-to-right languages.

Does the text box workaround work for multi-page documents?

Yes. Because the text box is anchored inside the Header view, it will automatically duplicate on every page. However, you will have to manually ensure that the line spacing inside the text box perfectly matches the body text spacing across all pages.