How to Add Last Name and Page Number in Word (Header/Footer Guide)

Adding your last name and a page number to a Microsoft Word document is one of the most common formatting tasks in academic writing — especially for MLA-style papers. It looks simple on the surface, but Word gives you several ways to do it, and the right approach depends on how your document is structured and what version of Word you're using.

Why Last Name + Page Number Formatting Matters

Most academic style guides — particularly MLA format — require a running header in the top-right corner of every page showing the author's last name followed by the page number (e.g., Smith 3). This isn't just a style preference; instructors and editors use it to identify pages if a document gets separated or printed out of order.

Word handles this through its Header and Footer system, which lets you insert repeating content that appears on every page automatically — including auto-updating page numbers.

The Standard Method: Using the Header Tool 📄

The most reliable way to add a last name and page number in Word involves these steps:

  1. Open the Header area — Double-click at the very top of any page, or go to Insert → Header → Edit Header. This activates the header editing zone.

  2. Align text to the right — Press Ctrl + R (Windows) or Cmd + R (Mac) to right-align. Everything in MLA headers sits flush to the right margin.

  3. Type your last name followed by a space — For example: Smith (with a space after it).

  4. Insert the page number — Go to Insert → Page Number → Current Position → Plain Number. Word will drop in a dynamic page number field that updates automatically as your document grows.

  5. Close the header — Double-click the main body of the document, or click Close Header and Footer in the ribbon.

The result: every page will show your last name and the correct page number in the top-right corner.

Common Variations That Change the Process

Not every document setup works the same way. A few factors affect how this plays out:

Different First Page

Many style guides require no header on page one (especially if you have a title page). Word has a built-in fix for this:

  • While in the header editor, check "Different First Page" in the Header & Footer Tools ribbon.
  • This creates a separate, blank first-page header while keeping your name + page number on all subsequent pages.
  • If you want page 2 to show "2" rather than "1," go to Insert → Page Number → Format Page Numbers and set the starting number to 0 — so the visible count begins at 1 on what Word calls page 2.

Section Breaks and Multiple Sections

Longer documents — theses, reports, book manuscripts — often use section breaks to separate chapters or front matter. By default, each new section inherits the header from the previous one ("Link to Previous" is on). If you need different headers per section, you'll need to:

  • Place your cursor in the section where you want the change.
  • Open the header, then turn off "Link to Previous" in the ribbon.
  • Edit that section's header independently.

This is where things get more complex, particularly if page numbering needs to restart or continue differently across sections.

Word Version Differences

The core feature works across Word 2016, 2019, 2021, and Microsoft 365, with nearly identical steps. Older versions like Word 2010 or 2013 follow the same logic but the ribbon layout differs slightly. Word for Mac mirrors the Windows version closely, though keyboard shortcuts vary.

Word Online (the browser version) supports basic headers but has limited formatting options compared to the desktop app — some fine-tuning, like "Different First Page" behavior, may not behave identically.

Formatting the Header Text Itself

Once your name and page number are in the header, you may need to adjust the font, size, and style to match your document body. Headers don't always inherit the same formatting automatically.

ElementMLA StandardHow to Change
FontTimes New RomanSelect header text → Font menu
Size12ptSelect header text → Size field
AlignmentRight-alignedCtrl+R / Cmd+R
SpacingNo extra line breaksCheck paragraph spacing in header

If your page number shows up in a different font or size than your last name, select both elements together and reformat them as a single block.

When the Page Number Appears in the Wrong Place

Two things commonly go wrong:

  • Page number lands on a new line instead of after your name — this usually means you pressed Enter instead of Space before inserting the number. Delete the line break and replace it with a single space.

  • Number shows on page 1 when it shouldn't — check whether "Different First Page" is enabled, and verify which section your cursor was in when you made the change.

  • Page number resets mid-document unexpectedly — a section break with "Link to Previous" turned off and a different "Start At" value is almost always the cause. 🔍

What Shapes Your Experience With This Feature

How straightforward this process feels depends on a few things that vary by user:

  • Document complexity — a single-section essay is much simpler than a multi-chapter document with a title page, table of contents, and body sections.
  • Word version and platform — desktop Word gives you the most control; Word Online and Word for iPad have meaningful feature gaps.
  • Whether you're working from a template — some templates (like pre-formatted MLA or APA templates) already have header placeholders set up, which changes what you need to edit vs. what's already in place.
  • Prior familiarity with section breaks — users who haven't worked with sections before often find that the header behaves unexpectedly when sections are involved, because changes don't always apply document-wide the way you'd expect.

The mechanics of the feature are consistent — but how many steps stand between you and a correctly formatted header depends entirely on your document's existing structure.