The margins are the blank space between the edge of the paper and the area where you can print data. You have margins on all four sides: top, bottom, left, and right. The page header lies inside the top margin. The footer lies inside the bottom margin. The lessons use the default margins in most cases. The instructions will, of course, tell you to change the margins if it is necessary.
Margins (highlighted with green dots) surround the body
of the printed spreadsheet
If you don't use "letter" size paper, you may need to use different margins to have your documents look similar to the illustrations.
Some printers cannot print as close to the edge of the paper as others. You may have to make adjusts to your documents if your printer needs extra wide margins.
![]() |
Step-by-Step: Setup Margins |
![]() |
What you will learn: | what the margins are to set the sizes for margins in Page Setup dialog to resize margins in Page Layout view to resize margins in Print Preview how the margins relate to the header and footer to center on the printed page |
Start with:,
budget-chart-2010-Lastname-Firstname.xlsx from your Class disk, excel
project1 folder.
On the Page Layout tab, click the Margins button.
The menu offers 3 default settings plus the last custom settings
you used.
(Your Last Custom Setting may be different from the
illustration.)
This time we want to see all the settings
instead of using one of the pre-designed settings.
Margin settings are in inches if Regional settings = English (United States)).
[See the earlier page]
The Page Setup
dialog does not show you what the unit of measure is! It just gives
the numbers. There is no place inside Excel to change the
measurement system being used.
If necessary, change the margins to match the illustration:
Top = 1, Bottom = 1, Left = 0.75, Right = 0.75, Header =0.5, Footer = 0.5
Center on page boxes not checked.
If your computer uses the
metric system, the default sizes are in centimeters:
Top
and Bottom 2.5, Left and Right 1.9, Header and Footer 1.3.
Units
of Measure: You can type in the unit of measure as well as the number,
like 2.5 cm, if the system is not using what you want. Excel will convert your measurement
and show the equivalent number.
Click in the Left margin text box.
A dark line
appears on the diagram so you can see what area will be affected
by a change in this text box.
The diagram in the middle of the Margins tab is not really a preview of your document. It just shows the
dividing lines for the margins and header and footer. As you change the values
on this tab, the diagram will NOT adjust to match.
The Page Layout view lets you see how your data will fit on the page, including data that will not print with the current settings. You can adjust the page margins in this view using the ruler.
Click in the Status bar on the button for Page Layout view .
In this view the rulers show for the page where the cursor is. The ruler shows you column widths, row heights, and margins
The illustration shows the Budget sheet with
reduced zoom so you can see at least part of each of the 4 pages.
Only the top two pages would print because of the print area you
set in an earlier lesson.
Problem:
No rulers
You have turned off display of rulers.
Solution: On the View tab in the Show tab group,
check the box Ruler. This box is grayed out unless you are in Page
Layout view.
Warning: Changes you make using the
ruler apply to ALL pages for this worksheet.
Experiment: Margins with Ruler
Watch how the wrapping to each page changes as you change the margins.
When you are ready to continue...
Reset the margins to 1" top and bottom, 0.75" left and right, 0.5"
header and footer.
It can be difficult to drag to these exact values. If you have trouble, use the Page Setup dialog instead. Be sure to select the whole value in the spin box. There may be more decimal places in the number than the box can show.
When margin lines are shown in Print Preview, you can drag them to adjust the sizes.
Excel 2007: Click the check box Show Margins in
the ribbon.
Excel 2010, 2013, 2016: Click the Margins button
on the Status bar, bottom right.
This toggles on and off a set of lines that mark the margins and the header and footer. Across the top you can see the column widths.
The margins and column widths can be adjusted while in Print Preview. You cannot edit the cell contents in this view.
Problem:
Print Preview shows Landscape orientation
You saved changes in the
last lesson.
Solution: Change orientation to Portrait.
The header and footer areas have their own margins which can be set differently from the margins of the page as a whole. It's a "feature", except when you forget and your header or footer does not line up the way you expected.
When you are ready to continue... change
margins back to 1" top and bottom and 0.75" left and right.
If you have trouble getting those values by dragging, use the Page Setup
dialog instead. Be sure to select the whole value in the spin box. There
may be more decimal places in the number than the box can show.
Margins Error: If you set the Header larger than the Top margin, or the Footer
larger than the Bottom margin, or if your text size is too big to fit in the
space, your header or footer may print on top of your data cells. In the illustration below, the header contains my
name, formatted to a large font size. It overlaps the first row of cells in the spreadsheet. Your header and footer will print, come what may! You may get a message about this problem, but it won't insist on your fixing it. If the top row or two of your spreadsheet happens to be blank, you
may not notice the effect.
Example of the Problem: Header text on top of
sheet data
Top margin should be bigger than the Header!
Excel
2007: The default left and right margin inside the header and footer is 0.75 " no matter what margins you set for the rest of
the page. If your header or footer text starts at the margin, it may not
line up with the data. You have to change this margin separately. Another strange "feature".
Excel 2010, 2013, and 2016 do not do this!
To make small spreadsheets and ranges print more attractively, you can center the print area horizontally or vertically or both. This can only be done in the Page Setup dialog.
The preview document on the Margins tab moves to show the change. You won't notice this centering unless the range that is printed is smaller than the width or height of the page.
The preview in the dialog
is not a thumbnail of your actual document.
Page Layout view does NOT show a change.
Change to Print
Preview.
Check both pages. Can you see
the
difference that centering horizontally and vertically made?
This sheet fills the vertical space already so there is not much change, if any
at all. But on page 2, you can see a definite difference! The cells no longer start at the left margin.