How to Insert a Vertical Bar in a Microsoft Word Equation
Question details
The user needs to insert a vertical-bar bracket within the Microsoft Word Equation Editor to enclose a fraction or mathematical expression.

- 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.
Ensure you have the Equation Editor active by clicking inside your document and pressing 'Alt + =' to create a new equation block.
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.
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 + ='.
With the equation block selected, the 'Equation' tab will appear on the ribbon. Click on the 'Bracket' icon in the Structures group.
Scroll down through the dropdown menu until you find the 'Single Brackets' section.
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 Math AutoCorrect Shortcuts
For users who prefer keeping their hands on the keyboard, Math AutoCorrect allows you to quickly type scalable vertical bars.
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. Open WPS Writer: Launch WPS Office and open a new or existing document.
- 2. Insert an Equation: Navigate to the 'Insert' tab on the top menu and select 'Equation' to open the equation input field.
- 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.

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.




