The simplest way to add a line in Word

The fastest way to put a line in a Word document is to type three hyphens in a row, then press Enter. Word automatically converts --- into a solid horizontal line that stretches across the page. This works in every version of Word from the last ten years and requires no menu navigation.

If you need the line to stop before the right margin — for example, to leave room for a signature or to create a line within a table cell — this automatic method won't work. For those situations, you'll need to use Word's drawing or table tools instead. The method you choose depends on where the line needs to go and whether it needs to be a specific length.

Key Takeaways

  • Type three hyphens (---) and press Enter to create a full-width line when ready without opening any menus.
  • Use the Insert menu and choose Shapes to draw a line of any length or angle, then position it exactly where you need it.
  • A table with invisible borders creates evenly-spaced lines for forms, signature blocks, or fill-in sections.
  • Underscores and spaces let you create a short line within a paragraph when you need text to wrap around it.

Drawing a line of custom length with shapes

When you need a line that doesn't stretch all the way across the page, use Word's drawing tools. Click the Insert tab at the top of the window, then look for Shapes in the ribbon. Click Shapes and select the straight line option — it's usually the first or second choice in the menu.

Your cursor will change to a crosshair. Click where you want the line to start, hold down the mouse button, and drag to where you want it to end. Release the mouse. The line appears on your page. You can click it anytime to move it, resize it, or change its color and thickness by right-clicking and choosing Format Shape.

If the line doesn't land exactly where you want it, click it once to select it, then use the arrow keys on your keyboard to nudge it up, down, left, or right one pixel at a time. Hold Shift while pressing an arrow key to move it in larger jumps. This method works well for signature lines, dividers between sections, or any line that needs to be a specific length.

Creating lines in a table for forms and fill-in sections

If you're building a form with multiple lines — like a sign-in sheet or a questionnaire — a table is often faster and more reliable than drawing individual lines. Click Insert, then Table, and choose how many rows and columns you need. For a straightforward form with lines to write on, you usually want one column and as many rows as you have blanks.

Once the table appears, click inside each cell and type your label (for example, "Name:" or "Date:"). Then select the entire table by clicking the small square icon in the top-left corner where the row and column headers meet. Right-click the table and choose Borders and Shading. Set the borders so that only the bottom of each cell has a line — this creates the effect of a line to write on while keeping the form clean and organized.

Tables are especially useful because they keep lines evenly spaced and aligned, and you can adjust the row height to give people more or less room to write. You can also copy and paste the table to repeat the same format multiple times without rebuilding it.

Using underscores and spaces for short lines within text

Sometimes you need a short line within a sentence or paragraph — for instance, a blank to fill in a name or date. Type an underscore character (Shift and the minus key) multiple times in a row, separated by spaces if you want them spread out. This creates a visual line that stays within your text and doesn't force a page break or disrupt your paragraph flow.

For example, you might write: "I, _________________, agree to the terms above." The underscores create a line that looks like a blank to fill in. This method is quick and works everywhere Word does, but it doesn't look as polished as a drawn line or a table, and it can be harder to control the exact length. Use it for informal documents or when you need something fast.

Changing line color, thickness, and style

If you created your line using the Shapes tool, you can customize how it looks. Click the line once to select it, then right-click and choose Format Shape. A panel opens on the right side of your screen. Look for the Line section and click it to expand your options.

From here you can change the color by clicking the color box, adjust the thickness (called "Width") by typing a number or using the slider, and choose a style like solid, dashed, or dotted. You can also add an arrow to one or both ends if you need directional lines. These changes explore only to the line you selected, so you can have different styles on different lines in the same document.

For lines created with the hyphen method (---), you cannot change the color or thickness without deleting the line and redrawing it with shapes. This is one reason to use shapes when appearance matters.

Removing a line you no longer need

To delete a line you created with shapes, click it once to select it and press Delete. The line disappears. If you created a line with the hyphen method (---), click at the beginning of that line, select the entire line including the line break after it, and press Delete. The automatic line vanishes and the text above and below it closes up.

If you're working with a table and want to remove the lines, select the table, right-click, choose Borders and Shading, and set all borders to None. This removes the visible lines while keeping the table structure intact — useful if you change your mind about the format but want to keep the text and layout you've already built.

Frequently Asked Questions

Why doesn't the three-hyphen trick work when I type it?

Word only converts --- to a line if you press Enter when ready after typing the three hyphens. If you type more text on the same line, Word treats it as regular text. Also, this feature can be turned off in Word settings. If it's not working, try the Shapes method instead — it works in every situation.

Can I make a line that's a specific width, like exactly 2 inches?

Yes, if you use Shapes. Draw the line, then right-click it and choose Format Shape. Look for the Size section and type the exact width you want. You can also set the height and rotation here. The hyphen method and underscore method don't give you this level of control.

How do I make a line that goes vertically instead of horizontally?

Use Shapes and select the straight line tool. When you drag to create the line, drag from top to bottom instead of left to right. You can also draw a horizontal line and then right-click it, choose Format Shape, and adjust the rotation to 90 degrees.

What if I need a dotted or dashed line instead of solid?

This only works with lines created using Shapes. Click the line, right-click, choose Format Shape, expand the Line section, and look for the Dash type option. Choose from solid, dashed, dotted, or combinations. The automatic hyphen line is always solid.

Can I copy a line I've already formatted and paste it elsewhere in the document?

Yes. Click the line once to select it, press Ctrl+C to copy, then click where you want the copy to appear and press Ctrl+V to paste. The new line has the same color, thickness, and style as the original. This is much faster than reformatting a second line from scratch.