To add a header and page number in Word, open the header area by choosing Insert > Header, type your header text, then place the cursor where the number should go and choose Insert > Page Number > Current Position > Plain Number. Word inserts an automatic page-number field that updates as pages are added or removed. These steps are for Microsoft Word in Microsoft 365 on Windows; Mac notes are included where the controls differ.
What You’ll Need
- A document open in the desktop version of Microsoft Word. The ribbon names below apply to Microsoft 365 for Windows; menus may be arranged differently in Word for the web or older editions.
- The text you want in the header, such as a report title, your name, or a department. Decide whether the number should appear on every page or whether the first page needs a different layout.
Step-by-Step
- Open the header area. In the document, choose Insert > Header. Pick a simple design from the gallery, or select Edit Header to work in a plain header area. The header is the band at the top of the page, separate from the main body text. You can also double-click near the top page margin to open it. When it is active, Word displays the Header & Footer tab and a boundary line around the header.
- Type the header text. Click in the header and enter the wording you want, such as a project name or chapter title. Keep it brief so it does not compete with the body text. Use the Home tab to change font, size, or emphasis just as you would for normal text. Header content is repeated on pages that share the same section and header settings, so you usually only need to type it once.
- Choose where the page number belongs. Click after the header wording if the number should share its line. To place the number at the right while keeping text on the left, use the alignment tab control rather than repeatedly pressing the spacebar: on Windows, choose Header & Footer > Insert Alignment Tab, select Right, and confirm. If the number should be on a separate line, press Enter in the header and use the Home tab’s right-alignment button before inserting it.
- Insert the automatic number. With the cursor at the intended location inside the header, choose Insert > Page Number > Current Position, then select a plain-number style such as Plain Number. The exact style names in the gallery can vary slightly. Choose Current Position because it inserts the field where your cursor is, rather than selecting a predesigned header that may replace or rearrange the header content you already entered.
- Check the numbering and layout. Scroll through several pages. The first page should show the number where expected, and later pages should have sequential numbers. If the header contains both text and a number, check that they do not collide or wrap awkwardly. If you want the number to appear on the right, verify that the alignment tab or paragraph alignment placed it there, rather than relying on spaces.
- Close the header. Choose Header & Footer > Close Header and Footer, or double-click in the document body. You can also press Esc in many desktop versions. Closing the editing area does not remove the header; it simply returns you to the main document. Click or double-click the header again whenever you need to revise it.
- Save and review a print preview. Save the document, then choose File > Print to inspect how the header and numbers will look on printed pages or in a PDF. Look at the first page and a later page, since different-first-page settings and section breaks can make them behave differently. Return to the document to make any needed adjustments.
Mac note: The same basic process works in Word for Microsoft 365 on Mac: use Insert to add a header, type the text, and use the Insert tab’s Page Number command while the header is active. Word for Mac may show a page-number gallery or a dialog with position and alignment choices instead of the same Windows menu sequence. Choose the option that inserts the number at the cursor or at the top of the page, and check the result in the document. The Header & Footer tab appears when you edit the header, though its layout can differ from Windows.
Common Mistakes
- Typing a page number as ordinary text. A typed 1 stays 1 on every page. Insert a page-number field through Insert > Page Number so Word calculates the sequence for you.
- Using spaces to push the number across the line. The number may shift when the font, margins, or header text changes. Use a right alignment tab or right-align a separate number paragraph instead.
- Choosing a gallery design after writing custom header text. Some prebuilt designs replace or reformat content in the header. When you already have text, insert the number at the cursor with Current Position, then format it as needed.
- Assuming every page has the same header. Different First Page, Different Odd & Even Pages, and section breaks can create separate header areas. Editing one may not change all the others.
- Editing the body instead of the header. If the cursor is in the main page, text you type appears in the document body. Double-click the top margin and confirm that the header editing controls are active before making changes.
Tips
- Keep the design readable. Use a font size that is easy to read but smaller or less prominent than the main heading. Leave enough space between the header and body so the two areas do not feel crowded.
- Use a consistent style. A short title on the left and a page number on the right is a familiar layout for reports. For longer documents, a small amount of header text is usually more useful than repeating a full title on every page.
- Use the built-in field for reliable numbering. Word updates page-number fields when pagination changes. If a number appears stale after major edits, select the field and press F9 on Windows to update it; on Mac, use the field-update command available in Word or refresh the document by reopening it.
- Know when to use a footer instead. Page numbers can go at the top or bottom of a page. If a header is already busy, choose Insert > Footer to create a footer, then insert the page number there.
- Check the document’s margins. A header that looks fine on screen can sit too close to the edge when printed. If needed, adjust the header distance using Layout > Page Setup dialog launcher > Layout tab, then change Header from Top. Printer margins can also affect the result.
Troubleshooting
The same number appears on every page. The number may have been typed as plain text rather than inserted as a field. Delete the repeated text and, with the cursor in the header, insert a page number using Insert > Page Number > Current Position. If you inserted a field but it still looks wrong, click it and check that it is a page-number field, not a copied character.
The first page has no number. Double-click the header and look for Different First Page on the Header & Footer tab. If it is selected, the first page has its own header. Add a page-number field to that first-page header if you want a number there, or clear Different First Page if all pages should share the same header. The first page may still be counted even when its number is hidden.
The number starts at the wrong value or restarts unexpectedly. A section break may divide the document into sections with separate numbering settings. Click in the affected section’s header, then choose Page Number > Format Page Numbers. Check whether Continue from previous section or Start at is selected. Choose Continue from previous section for continuous numbering; use Start at only when you intentionally want a new sequence.
The header differs on some pages. Check for section breaks and the Different Odd & Even Pages setting. Each section can have its own header, and odd and even pages can use separate versions. If you want a section to match the one before it, open its header and check Link to Previous on the Header & Footer tab. Linking connects that header to the previous section; it does not remove the section break or change the body text.
The header or number is missing in print preview. Confirm that the content is inside the header area and that the text color is not indistinguishable from the page. Check Different First Page and section settings, then inspect File > Print again. If the number is clipped near the page edge, move it farther inward or adjust the header position and margins.
Frequently Asked Questions
Can I add a page number without adding header text?
Yes. Choose Insert > Page Number and select a top-of-page layout. Word creates the number field in the header even if there is no other header wording. You can also choose a bottom-of-page layout to put it in a footer.
Will the page number update if I add or remove pages?
Yes, if you insert it using Word’s Page Number command. It is a field, so Word recalculates the displayed number as the document’s pagination changes. A number typed with the keyboard is just text and will not update automatically.
How do I show a number on the second page but not the first?
Edit the header and select Different First Page on the Header & Footer tab. Leave the first-page header empty and insert the page-number field in the regular header used by following pages. Word normally still counts the first page, so the next page will display 2. To make it display 1 instead, adjust the page-number format for the section.
Can I use a different header on the first page?
Yes. Select Different First Page while editing the header. Word gives the first page a separate header area, where you can add different text, a logo, a number, or nothing at all. Changes to that area do not automatically change the regular header on later pages.
How do I remove a header or page number?
Choose Insert > Header > Remove Header to remove the header from the relevant section, or choose Insert > Page Number > Remove Page Numbers to remove page-number fields. If the document has multiple sections, check each section because headers and numbering may be set independently.
Can I put the page number at the bottom instead?
Yes. Choose Insert > Page Number > Bottom of Page and select a layout. Word inserts the field in the footer. You can then edit the footer to add other content or adjust alignment, and close the footer area when finished.
Related
- Power Query Get Current Year: M Code and Refresh Tips
- Power Query Data Types: Choosing, Changing, and Fixing Them
- Excel Table Drop-Down List: Set Up a Dynamic List
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Inventory Spreadsheet: Simple Setup and Useful TipsYes—an inventory spreadsheet can be simple: list each item once, record its quantity and reorder point, and update…
- Insert a Checkbox in Word: Shortcut and OptionsIn Microsoft Word for Windows, type 2610 and press Alt+X to insert an empty checkbox (☐); use 2611…
- Excel New Paragraph in Cell: Line Breaks ExplainedTo start a new paragraph inside an Excel cell in Microsoft 365 for Windows, edit the cell, place…
- Insert a Check Box in Word 2016: Clickable or PrintableTo add a box that readers can click in Word 2016, open the Developer tab and choose Developer…
- Google Sheets Date Math: Formulas, Examples, and TipsGoogle Sheets date math works by treating dates as serial numbers, so you can subtract one date from…
- Excel Keyboard Shortcut to Jump to the End of a ColumnIn Excel for Microsoft 365 on Windows, press Ctrl+Down Arrow to jump to the bottom edge of the…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.