Document Editing Problems

How to Insert a Vertical Bar in a Microsoft Word Equation

John WilsonJohn Wilson Oct 10, 2026 869 views

Question details

The user needs to insert a vertical-bar bracket within the Microsoft Word Equation Editor to enclose a fraction or mathematical expression.

How to Insert a Vertical Bar in a Microsoft Word Equation
Product
Microsoft Word
Device & OS
not provided
Scenario
Formatting a mathematical equation that requires a vertical line, such as an evaluation bar or absolute value, which automatically scales with the enclosed content.
Observed behavior
Looking for the correct menu option or command shortcut to insert a vertical bar that adjusts its height dynamically based on the expression it surrounds.
Before you start

Ensure you have the Equation Editor active by clicking inside your document and pressing 'Alt + =' to create a new equation block.

Solution 1Recommended

Using the Bracket Menu in Equation Tools

This is the most reliable built-in method for inserting a vertical bar that scales perfectly with tall fractions and complex expressions.

Microsoft Word's Equation ribbon provides pre-formatted bracket templates. Using the Single Brackets option ensures that the vertical line acts as a proper mathematical container.

1
Open the Equation Editor

Click the location in your document where the equation should appear. Navigate to the 'Insert' tab on the ribbon and click 'Equation', or simply press 'Alt + ='.

2
Access the Bracket Tools

With the equation block selected, the 'Equation' tab will appear on the ribbon. Click on the 'Bracket' icon in the Structures group.

3
Select Single Brackets

Scroll down through the dropdown menu until you find the 'Single Brackets' section.

4
Insert the Vertical Bar

Click the vertical-bar bracket (choose either the left or right vertical line based on your mathematical context). A dotted placeholder box will appear next to the bar, into which you can type your fraction or expression.

Using the Bracket Menu in Equation Tools
Automatic Scaling: By inserting your fraction or tall matrix into the placeholder box, the vertical bar will automatically stretch to match the height of your content.
Equation Editing Made Easy

Insert Mathematical Equations Seamlessly with WPS Office

WPS Office provides a highly capable, built-in Equation Editor that makes writing complex mathematical formulas intuitive. You can easily insert fractions, brackets, and scaling vertical bars with full format compatibility.

  1. 1. Open WPS Writer: Launch WPS Office and open a new or existing document.
  2. 2. Insert an Equation: Navigate to the 'Insert' tab on the top menu and select 'Equation' to open the equation input field.
  3. 3. Add a Vertical Bar: Use the 'Bracket' dropdown tool within the Equation ribbon to find and insert a scalable vertical bar around your expression.
Fully compatible with Microsoft Word .docx formats and equation structures.Comprehensive built-in Equation Editor featuring extensive brackets, matrices, and operator templates.Lightweight, free to use, and functions smoothly across Windows, Mac, and Linux systems.Familiar ribbon interface requires no steep learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why isn't my vertical bar scaling with the fraction?

If you manually type a standard keyboard pipe '|' without enclosing the expression properly or pressing Space to trigger Math AutoCorrect, it remains a standard text character. Always use the Single Brackets tool from the Equation ribbon to ensure it behaves as a scalable container.

How do I type an absolute value sign in Word?

In the Equation Editor, you can either type the pipe symbol '|' around your variable and press the Spacebar, or go to the Bracket menu and select the absolute value template (two parallel vertical bars with a placeholder in the middle).

Can I use LaTeX commands to insert vertical bars in Word?

Yes, if your Equation Editor is set to LaTeX mode, you can use standard commands such as '\vert' for a single vertical line, or '\left|' and '\right|' to create scalable vertical bars that automatically adjust to the height of enclosed fractions.