When you insert a table in Word, the default column widths often stay fixed, forcing you to scroll horizontally to see all data. This happens because Word sets a specific table width based on the page margins at insertion time. You want a table that automatically adjusts to the current window width, especially when you resize the document window or change the page layout. This article explains the AutoFit feature in Word that lets you create a table that always fills the available space between the left and right margins.
Key Takeaways: Auto-Fit a Table to Window Width in Word
- Table Tools > Layout > AutoFit > AutoFit Contents: Shrinks or expands column widths to match the text inside each cell.
- Table Tools > Layout > AutoFit > AutoFit Window: Stretches the table to fill the full width between the left and right margins.
- Table Properties > Table > Preferred width set to 100%: Makes the table width relative to the page width, so it resizes automatically when you change margins or orientation.
How Word Table Width Works
By default, Word inserts a table with a fixed width based on the current page margins. If you insert a table when the document has 1-inch margins on a letter-size page, the table width is 6.5 inches. If you later change margins to 0.5 inches, the table stays at 6.5 inches and no longer aligns with the new margins. This fixed behavior causes the table to overflow the right margin or leave a gap on the right side.
Word provides three AutoFit options to control how a table handles width:
- AutoFit Contents — Adjusts each column width to fit the text or data inside it. The total table width becomes the sum of all column widths. This works well when you want columns to shrink tightly around their content.
- AutoFit Window — Stretches the table to fill the entire width between the left and right margins. Columns are distributed evenly or proportionally, depending on existing column widths.
- Fixed Column Width — Locks column widths to a specific value. The table will not resize even if you change the window size or page layout.
The option you need to make a table auto-fit the window width is AutoFit Window. This option sets the table to 100% of the available page width. When you later resize the window, change margins, or switch page orientation, the table width updates automatically.
Steps to Create a Table That Auto-Fits the Window Width
You can apply the auto-fit behavior to a new table or an existing table. The steps are the same in both cases. The following method uses the ribbon commands.
- Insert or select your table
Go to the Insert tab and click Table. Drag to select the number of rows and columns you need. If you already have a table, click anywhere inside it to select it. - Open the Table Tools Layout tab
After you click inside a table, two new tabs appear at the top of the ribbon: Table Design and Layout. Click the Layout tab under Table Tools. - Click AutoFit and select AutoFit Window
In the Cell Size group, click AutoFit. From the drop-down menu, choose AutoFit Window. Word immediately resizes the table to fill the full width between the left and right margins. - Verify the table width
Resize your Word window or change the page margins. The table width should adjust automatically to match the new available space. If you switch from portrait to landscape orientation, the table stretches to fill the wider page.
Alternative Method: Set Preferred Width to 100 Percent
If you prefer using the Table Properties dialog, you can achieve the same result by setting the preferred width to 100 percent.
- Open Table Properties
Right-click anywhere inside the table and choose Table Properties from the context menu. Alternatively, go to the Layout tab under Table Tools and click Properties in the Table group. - Enable preferred width
In the Table Properties dialog, on the Table tab, check the box labeled Preferred width. - Set width to 100 percent
In the measurement box, type 100. In the Measure in drop-down list, select Percent. Click OK.
The table now behaves exactly like one set to AutoFit Window. It will fill the full page width and resize automatically when margins or orientation change.
Common AutoFit Problems and How to Avoid Them
Table Does Not Resize After Changing Margins
If you applied AutoFit Window but the table still looks fixed, you may have previously set a fixed column width. To fix this, select the entire table, go to the Layout tab, click AutoFit, and choose AutoFit Window again. This overrides any fixed column width settings.
Columns Become Unevenly Wide
When you use AutoFit Window on a table that already has columns of different widths, Word distributes the extra space proportionally. If you want all columns to be equal width, click Distribute Columns in the Cell Size group on the Layout tab before applying AutoFit Window.
Table Exceeds the Right Margin
This usually happens when you have a very wide cell with no line breaks or a large image. AutoFit Window cannot shrink columns below the minimum width required by the content. To fix this, reduce the font size in wide cells, insert line breaks, or resize images inside the table cells.
AutoFit Window Does Not Work in Web Layout View
In Web Layout view, Word does not use page margins. The table stretches to fill the entire application window width, not the page width. Switch to Print Layout view (View tab > Print Layout) to see the table width relative to the actual page margins.
AutoFit Window vs AutoFit Contents: When to Use Each
| Item | AutoFit Window | AutoFit Contents |
|---|---|---|
| Purpose | Fill the full page width between margins | Shrink columns to fit the text inside each cell |
| Column widths | Distributed evenly or proportionally | Vary based on the longest content in each column |
| Resizing behavior | Updates when margins, orientation, or window size changes | Does not update when page width changes |
| Best use case | Tables that must span the full page, such as financial reports or data sheets | Tables where column width should match the content, such as simple contact lists |
| Ribbon location | Layout > AutoFit > AutoFit Window | Layout > AutoFit > AutoFit Contents |
The key difference is that AutoFit Window ties the table width to the page width, while AutoFit Contents ties it to the content. For a table that always fills the window width, use AutoFit Window or set the preferred width to 100 percent.
You can now create tables in Word that automatically adjust to the window width using AutoFit Window or the 100 percent preferred width setting. Apply this to new tables as you create them, or update existing tables that currently have fixed widths. For more control over column proportions, combine AutoFit Window with the Distribute Columns command to keep all columns equal. If you frequently work with tables that span the full page, consider adding the AutoFit button to your Quick Access Toolbar for one-click access.