Add page number X of Y to a Word document

The quickest way to show the current page number and the total number of pages in a document is to use the Page Number Gallery.

Important: Using the Page Number Gallery replaces the header or footer. To add page numbers to a header or footer you want to keep, see Add page numbers to a header or footer.

  1. On the Insert tab, click Page Number.

    Image of the Page Number button and menu in the Header & Footer group on Insert Ribbon.

  2. Click a location, such as Top of Page, Bottom of Page, or Current Position.

    Note:  Don't choose Page Margins. The options for that location don't include Page X of Y .

  3. In the gallery, scroll through the options until you see Page X of Y.

  4. Click a page number format.

  5. To return to the body of your document, click Close Header and Footer on the Design tab (under Header & Footer Tools), or double-click anywhere outside the header or footer area.

    Image of Close Header and Footer button under Header & Footer Design tools

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!