When you insert or paste a table in Word, it often extends beyond the right page margin, forcing you to manually resize columns or use the scroll bar to see all the data. This happens because Word’s default table behavior does not constrain the table width to the printable area between the left and right margins. This article explains how to force any table to automatically fit within your page margins using the AutoFit feature and other table properties, so your tables always stay within the boundaries of the page.
Key Takeaways: Keeping Tables Inside Page Margins
- Table Layout > AutoFit > AutoFit Contents: Shrinks each column to fit the text inside, but may still exceed margins if content is wide.
- Table Layout > AutoFit > AutoFit Window: Resizes the table to fit the width of the page between the left and right margins — the most direct fix.
- Table Properties > Table > Preferred width set to 100% relative to page: Forces the table to always stay within margins regardless of column content.
Why Tables Expand Beyond Page Margins
Word tables do not automatically respect the left and right page margins when you first create them. When you insert a table using Insert > Table, Word sets each column to a default width based on the number of columns you choose. For example, a table with 5 columns may have each column set to 2 inches, resulting in a total table width of 10 inches — wider than a standard letter-size page with 1-inch margins (which leaves only 6.5 inches of usable width).
The same problem occurs when you copy a table from a web page, an email, or another document. The pasted table retains its original column widths, which often exceed your current page margins. Word does not automatically scale the table down because it treats the pasted widths as explicit formatting.
Word provides three tools to fix this: the AutoFit commands on the Table Layout tab, the Table Properties dialog where you can set a preferred width, and the manual resize handles. Each method works for different situations, and using them together gives you full control over table width.
Steps to Force Tables to Stay Within Margins
Method 1: Use AutoFit Window to Resize the Table
- Select the entire table
Click the cross-shaped table handle at the top-left corner of the table. This selects all cells, rows, and columns. - Open the Table Layout tab
On the ribbon, click the Table Layout tab. This tab appears only when a table is selected. - Click AutoFit > AutoFit Window
In the Cell Size group, click AutoFit and choose AutoFit Window. Word immediately resizes the table so its total width equals the space between the left and right page margins.
This method works for any table regardless of how many columns it has. Word distributes the available width evenly among all columns by default. If you have merged cells or specific column needs, you can adjust individual column widths afterward without breaking the margin constraint.
Method 2: Set a Preferred Table Width in Table Properties
- Open Table Properties
Right-click anywhere inside the table and choose Table Properties from the context menu. Alternatively, select the table and press Alt + J, Q on the keyboard. - Enable a preferred width
On the Table tab, under Size, check the box Preferred width. In the measurement box, type 100 and set the unit to Percent. - Set measurement unit to Percent of Page
In the Measure in drop-down, choose Percent. This tells Word to calculate the table width as a percentage of the space between the left and right margins. - Click OK
The table now stretches or shrinks to fill exactly 100 percent of the available margin area. If you type a value less than 100, the table will be narrower than the margins.
Using a preferred width of 100 percent is the most reliable way to keep a table within margins permanently. Even if you add or remove text, the table width stays fixed to the margin boundaries.
Method 3: AutoFit Contents to Shrink Columns to Minimum Width
- Select the entire table
Click the table handle at the top-left corner. - Go to Table Layout > AutoFit > AutoFit Contents
Click AutoFit Contents. Word shrinks each column to the minimum width needed to display the text without wrapping. - Verify the table fits within margins
If the total width of all columns after shrinking is still wider than the margin area, use AutoFit Window after this step to force the table to fit.
AutoFit Contents is useful when you want columns to be as narrow as possible. However, it does not guarantee the table stays within margins if the content itself is wide — for example, long unbroken text strings like URLs or serial numbers. Combine it with AutoFit Window for best results.
Method 4: Manually Resize Columns While Constraining the Table
- Select the table
Click the table handle. - Hover over a column border
Move the mouse pointer over the vertical line between two columns until it becomes a double-headed arrow. - Hold Alt and drag the column border
Press and hold the Alt key on your keyboard, then click and drag the column border left or right. Holding Alt shows the exact column width in the ruler and prevents the table from resizing other columns. - Check the table width
After resizing, ensure the right edge of the table does not extend past the right margin. If it does, repeat the steps or apply AutoFit Window.
Manual resizing with Alt gives you precise control over individual columns without affecting the overall table width. This method is best when you need specific column widths but still want the table to stay within margins.
If the Table Still Exceeds Margins After AutoFit
Table Has a Fixed Width Set in Inches or Centimeters
Some tables, especially those copied from other programs, have a fixed width specified in inches or centimeters. This overrides the AutoFit Window command. To fix this, open Table Properties, go to the Table tab, and check Preferred width. Set it to 100 Percent. This replaces the fixed measurement with a relative one that respects margins.
Text Wrapping Is Set to Around Instead of None
When text wrapping is set to Around, the table can float outside the margins. In Table Properties, on the Table tab, under Text wrapping, select None. This anchors the table to the margins and prevents it from extending beyond them.
Page Margins Are Too Narrow
If your page margins are set to less than 0.5 inches on each side, the usable width may be too small for a table with many columns. Go to Layout > Margins > Custom Margins and increase the left and right margins to at least 1 inch. Then reapply AutoFit Window.
Table Contains Merged Cells or Nested Tables
Merged cells can prevent Word from distributing width evenly. If AutoFit Window does not work, unmerge any merged cells by selecting them and clicking Table Layout > Merge Cells to unmerge. For nested tables (a table inside a cell), right-click the inner table, choose Table Properties, and set its preferred width to 100 percent as well.
AutoFit Window vs AutoFit Contents vs Manual Resize
| Feature | AutoFit Window | AutoFit Contents | Manual Resize with Alt |
|---|---|---|---|
| What it does | Resizes table to fill page width between margins | Shrinks each column to fit its content | Lets you drag column borders individually |
| Respects margins | Yes — always | No — may exceed margins if content is wide | No — you must check manually |
| Preserves column proportions | Yes — distributes width evenly | No — each column shrinks independently | No — only the column you drag changes |
| Best used when | You want the table to always fit the page | You have short text and want narrow columns | You need specific column widths |
You now have four ways to force Word tables to stay within page margins. Start with AutoFit Window for the fastest fix. If you need to keep the table width fixed for future edits, set a preferred width of 100 percent in Table Properties. For tables with long text, combine AutoFit Contents with AutoFit Window. As an advanced tip, create a table style with a preferred width of 100 percent and apply it to all new tables — this saves you from repeating the steps every time you insert a table.