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)

12

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. ...

MORE FROM ALLEN

Counting All Characters

Need to know how many characters there are in a workbook? You can find out easily with the handy macro introduced in this ...

Discover More

Limitations On Finding Characters

When you search for information in a worksheet, you expect Excel to return results that make sense. If you don't get a ...

Discover More

Deleting Graphics when Deleting a Row

If you use Excel to keep a graphic with each row of data you amass, you may wonder if there is a way to easily delete the ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (ribbon)

Using the SYMBOL Field

The most common way of adding symbols to a document is to use the Symbol dialog box. There is another way, however, that ...

Discover More

Field Reference to Number of Prior Pages

Fields are used for all sorts of purposes in Word, but typically to provide some sort of dynamic information. This tip ...

Discover More

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
Subscribe

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

View most recent newsletter.

Comments

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}] 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 eight minus 6?

2019-07-17 08:41:07

Henry Noble

@DonnaH

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

Allen has covered this in detail in another Tip.

https://wordribbon.tips.net/T005882_Getting_a_Proper_Total_Page_Count.html


2017-03-30 19:34:04

DonnaH

QUESTION: Your explanation is great for just the page number which I have no problem with. But...how 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.

Thanks...


2017-01-08 01:10:25

maldoror

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


2015-12-28 22:42:13

Gramps

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


2015-12-28 22:35:52

Gramps

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

mo

hi
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

thanks...


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

Damear

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 http://word.mvps.org/mac/fieldsinmacword.html 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

Damear

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.

Newest Tips
Subscribe

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.