How to Add Page Number X of Y in Word Documents Easily

How-to basics · Updated November 3, 2026

How to Add Page Number X of Y in Word Documents Easily

To show a running total such as “Page 3 of 12” in Microsoft Word, open Insert > Page Number, choose a location such as Bottom of Page, and select a layout labeled Page X of Y. Word inserts fields for the current page and the document’s total pages; you can change the placement and formatting afterward.

What You’ll Need

  • A document open in the desktop version of Microsoft Word for Microsoft 365. The steps below use Word for Windows; Mac steps are noted where they differ.
  • A document with more than one page if you want to see the count change across pages. You can still insert the numbering in a one-page document.
  • Permission to edit the header or footer where the numbers will appear. If the file is protected or read-only, you may need to save an editable copy first.

Step-by-Step

  1. Open the document and choose where the numbering should appear. Decide whether you want the number at the top or bottom of each page. A footer is a common choice because it keeps the count away from the main text, but either location works. If your document has a cover page, decide whether that page should display a number before you insert anything.
  2. Open the page-number gallery. In Word for Windows, select Insert > Page Number in the Header & Footer group. Point to Top of Page or Bottom of Page to open the available designs. You can also use Page Margins or Current Position if you want a different placement. The gallery previews several alignments and styles.
  3. Choose a Page X of Y design. Select a design whose preview or name includes both the current page and total page count. Depending on the Word build and gallery, the label may read “Page X of Y,” “Page 1 of 1,” or include decorative lines. Choose a plain style if you want a simple “Page 1 of 8” result. Word adds the numbering to the header or footer and opens that area for editing.
  4. Check the result on more than one page. Scroll to another page and confirm that the first number changes while the total stays the same. For example, a five-page file should show “Page 1 of 5” on its first numbered page and “Page 2 of 5” on the next. If the field looks like a code rather than a number, right-click it and choose Toggle Field Codes to return to the displayed result.
  5. Close the header or footer. Select Close Header and Footer on the ribbon, or double-click in the main body of the document. The numbering remains in place and repeats on the pages that use that header or footer. Avoid deleting the number by clicking it and pressing Backspace unless you mean to remove the field from that repeating area.
  6. Set the first page behavior if needed. Double-click the header or footer to reopen it. On the Header & Footer tab, select Different First Page if a title or cover page should have no visible number, or if you want a different first-page footer. This option hides or separates the first page’s header/footer content; it does not automatically remove that page from the total page count. The next page may still display “Page 2 of 8.”
  7. Adjust the starting number only if the document requires it. With the header or footer open, choose Page Number > Format Page Numbers. In the dialog, set Start at to the value you need, then select OK. This changes the page-number sequence, not necessarily the total number in the “of Y” field. If you have sections, check whether numbering is linked to the previous section before changing its format.
  8. Save and check the page count. Save the document, then look through the pages or open Print preview using File > Print. Word normally refreshes page-number fields as it lays out the document, but a field may show an old result before repagination. If necessary, right-click the total-pages field in the footer and choose Update Field. Return to the document without printing if you were only checking the preview.

On a Mac: The ribbon layout and gallery names can differ slightly. Use Insert > Page Number to choose a position and alignment. If the available design does not include the total page count, open the footer or header and insert the fields separately: type “Page ”, use Insert > Field to insert Page, type “ of ”, then use Insert > Field again and select NumPages. Close the header/footer and check the result on a later page. Field names or dialog grouping can vary by Word for Mac release.

Common Mistakes

Typing the numbers as ordinary text. If you type “Page 1 of 5” yourself, Word will repeat that exact text in the same footer on every page. Use the built-in Page X of Y layout or insert fields so Word can calculate the changing page and total values.

Choosing a page-number design that only shows X. Many gallery choices show just the current page number. Look at the preview before selecting it, and make sure the design includes a total-pages value as well. If you already inserted a simple number, you can remove or replace it and choose a Page X of Y style.

Assuming a hidden cover page is excluded from Y. Different First Page hides the first page’s header or footer, but the page remains part of the document total. Thus the first visible number might read “Page 2 of 10.” That is expected if the cover is included in the count.

Editing the wrong section. A section break can give different parts of a document separate headers and footers. If you change numbering in one section, other sections may not change, or they may change because Link to Previous is enabled. Check the section label and linking setting before making a section-specific adjustment.

Confusing total pages with pages in a section. The usual “of Y” design counts the document’s total pages. It does not necessarily count only the pages in the current chapter or section. If you need a section-only count, you need a different field, such as SECTIONPAGES, and a document organized into sections appropriately.

Tips

Keep the label and numbers together in one footer design. Word fields update as the document’s pagination changes, so you do not need to edit the number each time you add text or images. The total refers to the pages in the document, including unnumbered cover pages, unless you deliberately use a different field or a specialized section setup.

Use the same alignment and font as the rest of the document. If the number is centered or right-aligned unexpectedly, reopen the footer and use the paragraph alignment controls on the Home tab. You can select the field and adjust its font size, color, or style just like other footer text; avoid deleting the field while formatting it.

If you have a title page followed by front matter with Roman numerals and then chapters with Arabic numerals, use section breaks rather than repeatedly typing numbers. Select Layout > Breaks > Next Page to start a new section, then configure page numbering for each section. Turn off Link to Previous when you need a section’s header or footer to differ. Make a copy first if you are unfamiliar with section formatting, since breaks can affect layout.

For a document shared with others, save in Word format and check the numbering again after substantial edits. Adding a large image, changing paper size, or changing margins can move content onto new pages and therefore change Y. A quick review in Print preview can catch a stale-looking count or a footer that has shifted.

Troubleshooting

Every page says “Page 1 of 1” or shows the same page number. Make sure you inserted the gallery’s page-number fields rather than typing sample text. Right-click a number and choose Toggle Field Codes to see whether Word is using a field. If you see field-code text, toggle it back; if you see only fixed text, remove it and insert a proper Page X of Y design again.

The total page count looks wrong or has not changed. First allow Word to repaginate by saving, switching to Print Layout, or opening File > Print. Then right-click the total field and choose Update Field. Also check whether you are comparing the displayed total with the whole document or only the pages in a section. The standard NumPages field counts the entire document, including pages without visible numbers.

The first page has no number, but the next page starts at 2. This is normal when the cover page is counted but its number is hidden with Different First Page. If the second page should display 1, set the numbering start value in Page Number > Format Page Numbers for the relevant section. For multi-section files, confirm that the section begins where you expect and that its numbering is not continuing from an earlier section.

Only some pages show the footer. Check for section breaks and different first-page or odd-and-even-page settings. Double-click the footer on a page that is missing the number and inspect whether it says First Page Footer, Odd Page Footer, or another section. If appropriate, turn off Different First Page or Different Odd & Even Pages, or add the number to the separate footer that is being used. Be cautious with Link to Previous, because changing it can affect other sections.

The page number disappeared after a layout change. Reopen the footer or header and check whether the field is still present. If a section’s footer was unlinked or replaced, insert the number in that section again. Also check the text color and font size; a white number or very small type can look missing even when the field is there.

Frequently Asked Questions

Can I put Page X of Y at the top instead of the bottom?

Yes. In the Windows gallery, choose Insert > Page Number > Top of Page and select a design that includes both values. You can also use the footer and header tools to move or restyle the fields. The choice affects placement, not how Word calculates the numbers.

Does Word update the total automatically when I add pages?

Usually, yes. Word recalculates page fields when it repaginates the document. If the displayed total seems outdated, save the file, open Print preview, or right-click the total field and choose Update Field.

How can I leave the cover page unnumbered but start the next page at 1?

For a simple document, enable Different First Page in the header/footer tools, then open Page Number > Format Page Numbers and set the numbering to start at 0 if the next page should display 1. If the document has distinct front matter or chapters, use section breaks and set the numbering for the appropriate section.

Can I show the number of pages in a chapter rather than the whole document?

Yes, but the standard Page X of Y design uses the document-wide total. Put the chapter in its own section and use a section-page total field, such as SECTIONPAGES, for the Y value. Ensure the section boundaries are correct and verify the result after editing, because section fields count pages within their section.

Will Page X of Y work if I export the document as a PDF?

Yes. The page numbers are part of the Word document layout and normally appear in a PDF made with File > Save As or File > Export. Check the PDF after exporting, especially if the document contains section breaks or a hidden first-page footer.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.