Browse to Insert > Page Number and pick a Page X of Y design: Word fills in the current page and the total for you, and both numbers update as the document grows or shrinks. For your own wording, such as “Sheet 3 of 12”, build it from two fields instead.
A printed handout, contract or exam paper is where this matters most: “Page 4 of 6” shows a reader at once that a sheet is missing.
Gallery or fields: which one fits your document
Both routes produce the same live numbers; fields simply give you more control over the wording.
| Your situation | Best route |
|---|---|
| Blank footer, you just want “1 of 2” style numbers | The Page X of Y gallery |
| The header or footer already has text (a title, a form number) | The gallery with Current Position, or the fields |
| You want your own words, such as “Sheet 3 of 12” | The PAGE and NUMPAGES fields |
| A cover page should not count in the total | The fields with a formula field (see the cover page section) |
| Each chapter or section needs its own total | The SECTIONPAGES field |
| You are editing in a browser | Word for the web’s Include Page Count |
Insert Page X of Y from the gallery (Windows and Mac)
Microsoft’s page on including the total number of pages covers Word for Microsoft 365 on Windows and Mac. The steps are the same on both.
- Click the Insert tab and select Page Number.
- If the page already has a header or footer, select Current Position so the number lands where your cursor is and your existing text stays put. If there is no header or footer yet, select a location such as Top of Page or Bottom of Page.
- Scroll until you see the Page X of Y designs and select one.

- Look at what appeared. If the design shows only the numbers, such as “1 of 2”, click just before the first number and type Page followed by a space.
- Select Close Header and Footer, or double-click anywhere outside the header or footer area.
The gallery designs may apply bold to the numbers. Select them in the footer and press Ctrl + B if you prefer plain text, or change the font and size the way you would for any other text.
Write your own wording with PAGE and NUMPAGES
Under the hood, Page X of Y is two fields. Microsoft’s PAGE field page says it inserts the number of the page the field sits on, and the NUMPAGES field page says that field inserts the total number of pages in the document. Combine them with any text you like. These steps are for Word for Windows: Microsoft notes that full field insertion and editing is supported only in the Windows desktop app.
Caption numbers work the same way behind the scenes, which is what lets numbered equations in Word renumber after a quick field update.
- Double-click the header or footer to open it, and click where the text should go.
- Type the words before the number, for example Sheet and a space.
- Press Ctrl + F9. Word inserts a pair of field braces. Type
PAGEbetween them. - Click after the closing brace and type of with a space on each side.
- Press Ctrl + F9 again and type
NUMPAGESbetween the new braces. - Select the line and press F9 to show the results instead of the codes.
The finished code reads Sheet { PAGE } of { NUMPAGES }, and the page shows “Sheet 1 of 2”. Don’t type the braces from the keyboard: Word only treats them as a field when they come from Ctrl + F9. If you prefer menus, Microsoft’s guide to inserting and viewing fields uses Insert > Quick Parts > Field, where you pick Page or NumPages from the Field names list.
A student paper that needs a surname in front of the number follows the same idea; adding your last name and page number in Word walks through that layout, and the custom header and footer walkthrough covers logos, dates and tab stops around the number.
Keep a cover page out of the count
Take a 12-page report with a title page. By default the inside pages read “Page 2 of 12” through “Page 12 of 12”. To make them read “Page 1 of 11” through “Page 11 of 11”, hide the number on the cover, renumber from zero and lower the total. Microsoft’s start page numbering later page covers the first two parts.
- Double-click the header or footer and select Different First Page. The cover now has its own empty First Page Header and Footer.
- Go to Insert > Page Number > Format Page Numbers and set Start at under Page numbering to 0. The second page now shows 1.
- The total still counts every page, so replace the NUMPAGES part with a formula field. The NUMPAGES page gives this pattern for numbering that does not start at 1:
Page { PAGE } of { = (StartingNumber-1) + { NUMPAGES } }, where StartingNumber is your Start at value. - With Start at set to 0, that becomes
Page { PAGE } of { = (0-1) + { NUMPAGES } }. Build it with Ctrl + F9 for each pair of braces (the formula field holds the NUMPAGES field inside it), then press F9.
The same formula handles any starting number, such as a chapter file that continues from page 47 of a larger book. For other ways to hide the first number, see how to skip page numbers in Word.
Give each section its own total with SECTIONPAGES
A packet that bundles three separate forms often needs each form to read “Page 1 of 3”, “Page 2 of 3” and so on, regardless of the packet’s length. Microsoft’s SECTIONPAGES field page says the field inserts the total number of pages in a section, and that you should restart page numbering from 1 in each section after the first.
- Put a section break before each new form with Layout > Breaks > Next Page.
- In each new section’s footer, deselect Link to Previous if you want different footer text there. If the button is dimmed, there is no section break before that page.
- In each section after the first, open Page Number > Format Page Numbers and set Start at to 1.
- Use
Page { PAGE } of { SECTIONPAGES }in the footer instead of NUMPAGES.
Microsoft’s page on page numbers in different sections has the full section steps, and linking and unlinking sections in Word explains why a header change sometimes spreads to every section.
Word for the web: Include Page Count
In a browser, the option has a different name. Microsoft’s Word for the web Page X of Y page says to select Insert > Page Numbers, then Include Page Count, which gives a result such as “Page 3 of 10”. For numbering that differs by section, Microsoft says to edit the document in the Word desktop app. More browser options are in adding page numbers in Word for the web.
When the total is wrong or you see codes
- The total looks out of date. Microsoft says Word updates fields when a document is opened. To update now, right-click the number and choose Update Field, or click in it and press F9. Ctrl + A then F9 in the body skips headers and footers, so click inside the footer first, then press Ctrl + A and F9.
- The total covers only part of the document. The footer probably uses SECTIONPAGES. Press Alt + F9 to see the codes and swap in NUMPAGES if you want the whole file.
- The first number after a section break is wrong. A section break is resetting them. Open Format Page Numbers in that section and check the Page numbering setting.
Page X of Y questions
Can it read 1/2 instead of 1 of 2?
Yes. Click in the header or footer, delete the word of between the two numbers and type a slash. If you built the line with fields, replace the text between the PAGE and NUMPAGES fields. The fields still update.
Why do I see { PAGE } of { NUMPAGES } instead of numbers?
Field codes are showing. Microsoft’s fields page says Alt + F9 switches between viewing field codes and viewing field results.
Why did the cover page get counted in the total?
NUMPAGES counts every page in the file, including a cover. Hiding the cover’s number with Different First Page doesn’t change that; use the formula field from the cover page section.
Does any of this work in Word 2013?
Microsoft’s Page X of Y page lists Word for Microsoft 365, 2024, 2021, 2019 and 2016, not Word 2013, so its menus may differ slightly. The field method works the same way inside the header. Keep in mind that Office 2013 products reached end of support on April 11, 2023, and Microsoft’s Office 2013 end of support announcement says they no longer receive security updates, non-security updates, bug fixes or technical support.
Before you print the final copy, scroll to the last page and confirm the two numbers match. Working in Google Docs instead? It has its own menu for page numbers in Google Docs, and a surname and page number at the top right works there too.

Kermit Matthews runs Live2Tech from just outside Philadelphia. He is an IT specialist with over 20 years of experience, from a university help desk to small-business IT, IT management and his own consulting practice, and has written tech guides full time since 2020. Steps are checked against the current software on a real device or the maker’s official documentation. More about Kermit.