The quickest way to add a line
Open your Word document and click where you want the line to appear. Go to the Insert tab at the top of the screen, then click Shapes. A menu will drop down showing different shape options. Find and click the straight line icon — it looks like a straightforward diagonal line. Your cursor will change to a crosshair. Click and drag across the page to draw the line, then release.
The line appears as an object you can move, resize, or delete. To adjust it after you've drawn it, click the line once to select it. Small squares appear at the corners and edges — drag these to make the line longer, shorter, thicker, or at a different angle. Right-click the line to change its color, thickness, or style (solid, dotted, dashed).
This method works in Word for Windows, Word for Mac, and Word Online. The steps are identical across all three versions.
Key Takeaways
- The Insert tab contains a Shapes menu with a straight line tool that you draw across the page by clicking and dragging.
- After you draw a line, you can resize it, move it, or change its color and thickness by right-clicking and selecting format options.
- A horizontal line that spans the page width is easiest to create by holding Shift while dragging, which locks the line to a perfectly straight angle.
- If you need a line that stays in a fixed position relative to text, use the Borders feature instead, which attaches the line to a paragraph.
Using borders for lines attached to text
If you want a line that moves with your text instead of staying in a fixed spot on the page, use the Borders feature. This is useful when you're creating a form, a title page, or a document where the line should stay above or below a specific paragraph.
Click in the paragraph where you want the line. Go to the Home tab, then find the Borders button — it looks like a small square with lines around it. Click the small arrow next to it to open a menu. You'll see options like "Bottom Border," "Top Border," and "All Borders." Click the one you need. A line appears when ready attached to that paragraph.
To remove a border line, click in the same paragraph and go back to Borders, then click "No Border."
Making a horizontal line across the entire page
The easiest way to create a full-width horizontal line is to use the Insert Shapes method but hold Shift while dragging. This locks the line perfectly horizontal so it doesn't angle upward or downward. Start at the left margin, hold Shift, and drag to the right margin.
If you want the line to stay in place as you type above and below it, insert a paragraph break before and after the line. Click at the end of the line and press Enter to create space below it. This prevents text from wrapping around the line object.
Changing line color, thickness, and style
Right-click any line you've drawn with the Shapes tool. A menu appears with a Format Shape or Format Line option near the bottom. Click it to open a panel on the right side of the screen.
In this panel, you'll see options for Line settings. Here you can change the color by clicking a color swatch, adjust the thickness (called "Width") by typing a number or using the slider, and choose a style like solid, dotted, or dashed. Some versions also let you add arrows to the ends of the line or create a gradient effect.
explore the changes and close the panel. The line updates when ready on your page.
Removing a line you no longer need
Click the line once to select it — you'll see the selection squares appear around it. Press the Delete key. The line disappears when ready.
If you used the Borders method instead, click in the paragraph with the border and go to Home > Borders > No Border to remove it.
When to use lines in your document
Lines work well for separating sections, creating visual breaks between chapters, or drawing attention to important information. They're also useful for creating forms where readers need to write in answers on a blank line.
For decorative purposes, keep lines straightforward — a single thin line is usually more professional than thick or heavily styled ones. If your document will be printed, test the line on a sample page first to make sure it prints clearly and doesn't use so much ink that it slows down printing.
Frequently Asked Questions
Can I make a line that's not straight?
Yes. Instead of the straight line tool, go to Insert > Shapes and choose a curved line or arrow. You can also draw freehand using the Freeform tool, though this is harder to control. For most documents, straight lines are clearer and look more professional.
Why does my line disappear when I type?
Lines created with Shapes are objects that sit on top of the text layer. If your text wrapping is set to "In Line with Text," the line may move unexpectedly. Right-click the line, choose "Wrap Text," and select "Behind Text" or "In Front of Text" to control whether it stays visible.
How do I make a line the exact width of my page?
Draw the line from the left margin to the right margin while holding Shift. If you need it perfectly aligned, right-click the line, choose "Position and Size," and set the width to match your page width minus the margins. In most documents, this is around 6 inches.
Can I use a line as a page divider?
Yes. Insert a line, then add paragraph breaks above and below it so text doesn't crowd it. You can also insert the line on its own page by placing it between two page breaks — go to Insert > Page Break before and after the line.