The quickest way to add line numbers

Open your document in Microsoft Word. Go to the Layout tab (or Page Layout in older versions). In the ribbon, find the Line Numbers button — it's usually in the right section of the toolbar. Click it, then select Continuous to number every line from start to finish, or pick another option if you want numbering to restart on each page or section.

That's the whole process. The numbers appear in the left margin and update automatically as you edit. If you don't see the Layout tab, you're probably in a different view — switch to Print Layout first by clicking View at the top.

Key Takeaways

  • Line numbers appear in the left margin and are added through the Layout tab, not through any dialog box or menu.
  • Continuous numbering counts every line in the document; other options restart numbering on each page or section.
  • You can set line numbers to count only certain sections of a document if you've divided it into sections.
  • Line numbers do not print by default — you must change the print settings if you want them to appear on paper.

Choosing between continuous and restarting numbering

Continuous numbering runs from 1 to the end of your document without stopping. This is the most common choice for legal documents, scripts, and anything where you need to refer to a specific line across many pages.

Restart Each Page resets the count to 1 at the top of every new page. This is useful for shorter documents or when you're working with pages that will be printed and distributed separately. Restart Each Section does the same thing but only within sections you've manually created — useful if your document has distinct parts that should have their own numbering.

If you pick the wrong option, you can change it anytime. Go back to Layout, click Line Numbers, and select a different style. The numbers update instantly.

Numbering only part of your document

If you want line numbers on some pages but not others, you need to divide your document into sections first. Place your cursor where you want the numbering to start, then go to Layout and click Breaks. Choose Continuous (this creates a section break without a page break). Do the same where you want numbering to stop.

Now select the section you want numbered. Go to Layout, click Line Numbers, and choose Continuous or another option. Only that section will be numbered. The rest of the document stays unnumbered.

This takes a few extra steps, but it's the only way to have line numbers in some parts of a document and not others.

Making line numbers visible when you print

Line numbers appear on screen by default, but Word does not print them unless you change a setting. Before printing, go to File, then Print. On the right side, click Print Layout or the settings icon (it looks like a gear). Look for an option that says Print Markup or Include Markup and turn it on.

In some versions of Word, you instead need to go to File > Options > Display and check Printing Options to see if line numbers are set to print. The exact wording varies by Word version, so if you don't find it in Print settings, check Options.

If you're sharing the document with others and want them to see line numbers, tell them to turn on line numbers themselves — the numbers won't transfer if you just send the file unless you've changed the print settings on your end.

Removing line numbers

Go to Layout, click Line Numbers, and select None. The numbers disappear immediately. If you only want to remove them from part of the document, select that section first, then follow the same steps.

Removing line numbers does not affect your text or formatting — it only hides the numbers in the margin.

Why line numbers matter for different document types

Legal documents, contracts, and court filings often require line numbers so that lawyers and judges can refer to specific lines without ambiguity. Scripts and screenplays use line numbers so that directors and actors can discuss exact moments. Academic papers sometimes use them for peer review, so reviewers can point to specific passages without copying text.

If you're submitting a document to someone else and they ask for line numbers, use Continuous unless they specify otherwise. If they ask for line numbers to print, remind them that they'll need to turn on the print setting themselves, or include a note in your email explaining how to do it.

Frequently Asked Questions

Why don't my line numbers show up when I print?

Word does not print line numbers by default. Before printing, go to File > Print, then look for a settings button or gear icon. Turn on Print Markup or check the Display options under File > Options. The exact location depends on your Word version.

Can I change the color or style of the line numbers?

Not directly through the Line Numbers menu. Line numbers use the same color and font as your document's default text. If you need a different appearance, you would need to use a macro or third-party tool, which is beyond what Word's standard features offer.

Do line numbers count blank lines?

Yes. Every line, including blank ones, gets a number. If you want to avoid numbering blank lines, you would need to remove the blank lines from your document or use a macro.

What if line numbers don't appear after I click the button?

Make sure you're in Print Layout view, not Web Layout or Outline view. Click View at the top and select Print Layout. If you're still not seeing them, check that you're on the Layout tab, not Design or another tab.

Can I start numbering from a number other than 1?

Not through the standard Line Numbers menu. If you need to start at a different number, you would need to use a macro or manually insert line numbers using a different method, which requires more advanced Word skills.