The simplest way to add a vertical line in Word

The fastest way to add a vertical line in Microsoft Word is to use the Shapes tool. Open the Insert tab at the top of your document, select Shapes, choose the Line option, then click and drag downward on your page to create a vertical line. You can adjust the line's thickness, color, and position after you place it.

If you need the line to stay in a specific location — such as dividing two columns of text — anchoring it to a paragraph prevents it from moving when you edit. Right-click the line, select Wrap Text, then choose Through or In Front of Text depending on whether you want text to flow around it.

Key Takeaways

  • The Insert tab contains a Shapes menu where you can select and draw a line anywhere on your page.
  • After drawing a line, you can change its color, thickness, and style using the Drawing Tools Format tab that appears.
  • Anchoring a line to a paragraph using Wrap Text keeps it from shifting when you add or delete text nearby.
  • A vertical line can also be created using the Borders feature if you want it to appear only in a specific column or table cell.

Drawing a line using the Shapes menu

Open your Word document and click the Insert tab in the ribbon at the top. Look for the Shapes button — it usually shows a small square and circle icon. Click the dropdown arrow next to it to see shape options.

Scroll down in the Shapes menu until you see the Lines section. Click on the straight line option (the simplest one). Your cursor will change to a crosshair. Position your cursor where you want the line to start, then click and drag downward to create the vertical line. Release the mouse button when the line reaches the length you want.

Changing the line's appearance

Once you've drawn the line, it remains selected (you'll see small circles at each end). The Drawing Tools Format tab automatically appears in the ribbon. Use this tab to customize your line.

To change the line's color, click Shape Outline in the Format tab and select a color from the palette. To make the line thicker, click Shape Outline again, hover over Weight, and choose a thickness. You can also add a style — click Shape Outline, then Dashes to make the line dotted or dashed instead of solid.

Positioning the line so it stays in place

If your line keeps moving when you edit text, you need to anchor it. Right-click the line and select Wrap Text from the menu. Choose Through or In Front of Text — Through allows text to flow behind the line, while In Front of Text places the line on top of any text.

To anchor the line to a specific paragraph so it moves with that text, right-click the line, select Wrap Text, then choose More Layout Options. In the dialog that opens, click the Position tab and select Move with Text. This keeps the line aligned with the paragraph you're working on.

Using borders for a line in a table or column

If you're working with a table or want a line to divide columns, the Borders feature is often simpler than drawing a shape. Click inside the table cell or column where you want the line. Go to the Design tab (for tables) or the Home tab, find the Borders button, and select the border style you need.

For a vertical line in a table, click the cell where the line should appear, open Borders, and choose Right Border or Left Border depending on which side of the cell you want the line. This method keeps the line perfectly aligned with your table structure and prevents it from shifting.

Troubleshooting common line problems

If your line disappears when you scroll or print, check the Wrap Text setting. Lines set to Wrap Text: Square or Tight may not display correctly in all views. Switch to Through or In Front of Text instead.

If the line is too short or too long, click it to select it, then drag one of the circles at the ends to resize it. If you can't select the line, it may be behind text — right-click in the area where the line should be and select the line from the menu that appears. If the line won't move where you want it, try changing the Wrap Text setting to In Front of Text, which gives you more control over placement.

Frequently Asked Questions

Can I make a vertical line span multiple pages?

A single line shape cannot span pages automatically. Instead, draw the line on the first page, copy it, then paste it on subsequent pages in the same position. Alternatively, use a table with a single column and a right border — this border will continue across pages as your content flows.

How do I make a vertical line perfectly straight?

Hold the Shift key while dragging to constrain the line to a perfectly vertical angle. This prevents the line from tilting slightly, which can happen if you drag freehand. Release the mouse button first, then release Shift.

What's the difference between a line and a border?

A line is a shape you draw anywhere on the page and can move freely. A border is attached to a paragraph, table, or page and moves with that content. Use a line for decorative purposes and a border when you want the line to stay aligned with specific text or a table.

Can I group a line with text so they move together?

Not directly, but you can anchor the line to a paragraph. Right-click the line, select Wrap Text, then choose Move with Text. The line will then move when you edit the paragraph it's anchored to, keeping them together.

Why does my line look blurry when I print?

Very thin lines (under 1 point) may appear blurry in print. Select the line, go to Drawing Tools Format, click Shape Outline, hover over Weight, and choose a thicker option like 2.25 pt or 3 pt. Thicker lines print more clearly.