In academic research, translation agreements, book manuscript submissions, corporate disclosures, and legal filings, authors are frequently required to provide exact, self-updating document statistics. Requirements often demand stating the total word count, character count, page count, or file size on the document title page, cover sheet, or formal declaration. Manually checking the Word status bar and typing static numbers into a cover page is risky; as edits are made or sections are revised, static numbers quickly become obsolete.
Microsoft Word provides a suite of native document information field codes—principally NUMWORDS, NUMCHARS, NUMPAGES, and FILESIZE. By embedding these dynamic fields into body text, tables, or running headers, Word automatically calculates and renders current document metrics. When the document is saved, repaginated, or sent to a printer or PDF exporter, all statistics update dynamically to reflect the current state of the document.
Understanding Word’s Native Statistical Field Codes
Word calculates several foundational metrics as document properties:
NUMWORDS: Inserts the total number of words contained within the document.NUMCHARS: Inserts the total character count including spaces. Appending the\nswitch excludes spaces.NUMPAGES: Inserts the total number of pages across the entire document.FILESIZE: Inserts the physical size of the document file on disk.REVNUM: Inserts the total number of times the document has been saved.
Basic Syntax and Field Insertion Rules
Like all native Microsoft Word fields, field codes must be enclosed in special field braces that cannot be typed directly from the keyboard using curly bracket keys. You must generate field braces using dedicated shortcuts:
- Windows: Press Ctrl + F9
- macOS: Press Cmd + F9
The standard syntax for statistical fields is:
{ NUMWORDS [Switches] }
{ NUMCHARS [Switches] }
{ FILESIZE [Switches] }
Word supports number formatting picture switches (\#) and text formatting switches (\*) that allow you to customize how the numerical count is displayed on the page:
\# "#,##0": Adds standard thousands separator commas (e.g., “12,450” instead of “12450”).\* CardText: Spells out the count as cardinal text words (e.g., “twelve thousand four hundred fifty”).\* OrdText: Formats the count as ordinal text (e.g., “twelfth”).\# "#,##0 'KB'": Appends custom text units to the numeric output.
Inserting a Dynamic Word Count Step by Step
Follow these steps to insert a dynamic word count with thousands separators onto a title page or cover sheet:
- Open your Word document and place your cursor where the word count should appear (for example, after the text “Total Word Count: “).
- Press Ctrl + F9 to insert empty field braces:
{ }. - Inside the braces, type the field code and formatting switch:
NUMWORDS \# "#,##0" - Press F9 to calculate the field. Word replaces the field syntax with the current word count, properly formatted with commas (e.g., 8,942).
Inserting Character Counts With and Without Spaces
Academic publications and character-limited translation projects often require reporting both raw character count and character count excluding spaces.
To insert the total character count including spaces, insert:
{ NUMCHARS \# "#,##0" }
To insert the character count excluding spaces, append the \n switch:
{ NUMCHARS \n \# "#,##0" }
You can present these together in a clean summary table on your manuscript cover page:
Words: { NUMWORDS \# "#,##0" }
Characters: { NUMCHARS \# "#,##0" } (with spaces) / { NUMCHARS \n \# "#,##0" } (without spaces)
Embedding Formatted File Size Metrics
When compiling software deployment guides or compliance records, stating the document file size is often required. The FILESIZE field calculates the file size on disk based on the last save.
To display file size in Kilobytes (KB), append the \k switch:
{ FILESIZE \k \# "#,##0 'KB'" }
To display file size in Megabytes (MB), append the \m switch:
{ FILESIZE \m \# "#,##0.0 'MB'" }
Note: Because FILESIZE reads the saved file properties on disk, newly created unsaved documents will report 0 until the initial file save is performed.
Updating Fields and Automating Refresh Before Printing
Unlike dynamic web pages that poll continuous inputs, Word optimizes document performance by evaluating complex fields during explicit document events (saving, pagination, or manual refresh).
To update statistical fields manually while writing:
- Press Ctrl + A to select the entire document.
- Press F9. Word repaginates the document and refreshes all
NUMWORDS,NUMCHARS, andNUMPAGESfields instantly.
To toggle between the visible number and the underlying field code, press Alt + F9 on Windows or Option + F9 on macOS.
To guarantee that exported PDFs and printed manuscripts never contain stale metrics, enable Word’s automated print evaluation:
- Navigate to File > Options.
- Select the Display tab in the left navigation pane.
- Under Printing options, check the box for Update fields before printing.
- Click OK.
With this setting active, every time you print or export to PDF via File > Export, Word automatically recalculates document words, characters, and pages before generating the final file.