Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, and 2013. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Inserting the Total Number of Pages in Your Document.

Inserting the Total Number of Pages in Your Document

by Allen Wyatt
(last updated July 17, 2019)


It is not unusual to put a page number in your headers or footers, and the different ways of accomplishing that task are covered in other issues of WordTips. You can also, however, insert a field that indicates the total number of pages in a document. This can be used in a header or footer or directly within the text of your document. To insert the total number of pages in your document, follow these steps:

  1. Position the insertion point where you want the total number of pages to appear.
  2. Make sure the Insert tab of the ribbon is selected.
  3. In the Text group, click Quick Parts. You'll see a drop-down menu.
  4. Choose Field. Word displays the Field dialog box.
  5. In the Categories drop-down list, choose Document Information. (See Figure 1.)
  6. Figure 1. The Field dialog box.

  7. In the Field Names list choose NumPages.
  8. Click on OK to close the dialog box and insert your field.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (980) applies to Microsoft Word 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Word here: Inserting the Total Number of Pages in Your Document.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...


Hyperlinks to Charts

You can create hyperlinks to all sorts of worksheets in a workbook, but you cannot create a hyperlink to a chart sheet. ...

Discover More

Referencing Worksheet Tabs

Ever want to use the name of a worksheet tab within a cell? Here's how you can access that information using the CELL ...

Discover More

Calculating an Average within a Date Range

Need to find an average of the values that fall within a date range? Excel provides a number of ways you can do this, ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (ribbon)

Field in Footer Won't Update

Word provides a handy shortcut that allows you to update the fields in any text you've selected. When you select your ...

Discover More

Compound Page Numbering

Simple page numbering is easy to add to your documents. More complex numbering (such as two numbering schemes in the same ...

Discover More

Inserting the Name of the Last Person to Save the Document

Who saved the document the last time? Word keeps track of that information, and you can insert the person?s name into the ...

Discover More

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is five more than 2?

2019-07-17 08:41:07

Henry Noble


Your compound field would look something like this: Page { PAGE } of { = { NUMPAGES } -2 }

Allen has covered this in detail in another Tip.

2017-03-30 19:34:04


QUESTION: Your explanation is great for just the page number which I have no problem with. do you change the Y of Page X of Y?

I have inserted Page X of Y and have a cover and TOC before page numbering is to begin. I get how to set up the page number (x) and start it at one on the correct page. My question is how do I get the total number of pages (y) to only include the total number of pages of the document, not to include the cover and TOC.


2017-01-08 01:10:25


Word 15 for Mac does not have a NumPages field, so total page number can't be displayed.

2015-12-28 22:42:13


I tried Damear's suggestion (Ctrl - F9) and it worked. Easier than shuffling the document through Word 2003.

2015-12-28 22:35:52


I have recently installed Word 2016. I struggled with how to insert the total number of pages. The selection for X of Y just inserted "pg. X", just the page number, not including the number of pages.

I finally resorted to saving the document, opening it in Word 2003 and using that handy header and footer toolbar for inserting the page number and total pages. Upon reopening the document in Word 2016, it is just as I wanted it. Now I have "Page X of Y" in my footer.

Cludgey, but it worked.

2015-10-23 19:43:15


do you know hwo ot make the page number automatically update instntly

so if i have 5 pages and i then go to page 6 - i want the quick part to update straight away (i.e it always reflects the current total number of pages) - doing it when you save will not help as it has to be instant for prining documents.

2015-10-04 00:56:29

tanim tanvir


2015-09-21 02:34:36

Richard Price

Damear has perfectly illustrated what I feel about the ribbon: Microsoft has produced something so clunky to use that we all end up learning keyboard shortcuts instead, which must be the very definition of failure in GUI design.

2015-09-20 10:19:39


Jim, sorry, I don't have a Mac to check on, but according to a quick Google search you can use Cmd+F9 instead of Ctrl+F9 to insert a field, then F9 to update it (or rather all fields in the document).

Unfortunately, F9 key may be reserved for Exposé in MacOS, and you will have to set this function to another key in the system, or modify the respective functions in Word to use another key. See for detail.

2015-09-19 13:12:33

Jim Bartlett

Damear -- This tip doesn't work on Word for Mac (Ver. 15). Do you have a Mac equivalent?

2015-09-19 11:51:41

Henry Noble

Damear is right. In an effort to make it easy, Microsoft has made the process tediously complex.

Remember, in Word 2003, the header and footer control dialog offered the most commonly used parts as buttons.

In Word 2010, when header/footer is active, the ribbon includes a Page Number button. From that, you can choose an option, then modify the format as desired.

2015-09-19 09:07:06


That's one hell of a scenic route to get a simple job done. What I do is 1) Position the insertion point where needed; 2) Press Ctrl+F9; 3) Type "NumPages" (without the quotes); 4) Press F9. PROFIT!

This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.


FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.