To create an automatic footer such as Page 3 of 12 in InDesign, combine a Current Page Number marker with a Last Page Number text variable. Put them on a parent page so the footer repeats across the document.
There is one important limit: Last Page Number is the final page’s number, not a count of physical pages. It gives the expected total for a document numbered continuously from 1. Restarted numbering, front matter and different section styles need a deliberate choice of scope and wording.
1. Create the footer on a parent page
Open the Pages panel and double-click the parent page that supplies the layout for your document pages. Older versions call this a master page; for example, A-Master is now A-Parent.
Use the Type tool to create a text frame in the footer area. Make it wide enough for the longest number you expect, and type Page followed by a space. On a facing-page spread, create the corresponding footer on each parent page that needs one.
2. Insert the current page marker
With the text cursor after that space, choose Type > Insert Special Character > Markers > Current Page Number. On the parent, this normally displays its prefix letter, such as A. On a document page it displays that page’s number.
Do not type an ordinary A or a fixed number in its place: that would remain literal text. After the marker, type a space, of, and another space.
3. Insert the last page variable
Choose Type > Text Variables > Insert Variable > Last Page Number. The footer now contains two dynamic items with the words between them.
To inspect the variable settings, open Type > Text Variables > Define, select Last Page Number and choose Edit. Check whether its scope is the document or the section. Use Document when the footer should refer to the document’s final page number; use Section when it should refer to the end of that numbering section.
Adobe’s text-variable guidance explains the available settings. Review document pages after changing the definition because it affects uses of that variable.
4. Apply the parent and check real pages
Double-click a document page in the Pages panel. Confirm that the intended parent is applied and that the footer appears in the correct position. For a continuously numbered 12-page document starting at 1, the third page should read Page 3 of 12.
In a test copy, add a page at the end and check that the footer changes to the new final number. Also inspect left and right pages, the first page, and any page using a different parent. Adobe’s page-numbering instructions cover the underlying marker setup.
When the last number is not the total
Consider a file with two introductory pages followed by ten body pages numbered 1 to 10. There are 12 physical pages, but the final body page is numbered 10. A document-scoped Last Page Number variable can therefore produce Page 3 of 10 on body page 3; it does not automatically produce a physical-page total of 12.
Decide whether the reader needs progress through the numbered body, the current section or the complete file. Review Numbering & Section Options before changing the setup. A multi-document book also needs its own numbering plan; do not assume this document variable counts every file in a book.
Quick troubleshooting before export
- The footer shows a literal A: check that you inserted a marker rather than typing the letter, and that you are viewing a document page rather than its parent.
- The footer is missing: check the applied parent, frame position, layer visibility and whether another object covers it.
- The final number is unexpected: inspect the variable scope and any section numbering restarts.
- The text is cut off: allow more room in the frame and check for overset text.
Export a PDF and inspect its first, middle and final numbered pages. If the document also contains imported PDFs, remember that placing a PDF page is a separate operation from numbering the InDesign document; see placing multi-page documents into InDesign.
Build your InDesign skills
Want a more reliable approach to parent pages, numbering and document production? Contact Academy Class to discuss InDesign training for your experience and projects.