Can Microsoft Word Put Automatic Line Numbers in the Right Margin?
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.

- 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.
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.
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.
Double-click on the top margin of your document to open the Header & Footer view.
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.
Right-click the border of the text box and select 'Format Shape'. Under the 'Line' options, choose 'No line' so the border becomes invisible.
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.
Double-click anywhere in the main body of the document to close the Header & Footer tools. The right-margin numbers will now appear.

Submit Feature Request to Microsoft
Provide feedback directly to Microsoft requesting the addition of a right-margin line numbering feature.
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. Download WPS Office: Visit the official WPS website to download and install the free software suite on your device.
- 2. Open Your Document: Launch WPS Writer and open your existing Word document to seamlessly continue your work without losing formatting.
- 3. Format with Ease: Utilize the intuitive Insert and Page Layout tabs to customize your margins, headers, and text boxes quickly.

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.




