Document Editing Problems

Insert Subscript and Superscript Variables in Word Equations

Khadija KhanKhadija Khan Nov 22, 2026 868 views

Question details

The user wants to add subscripts and superscripts to variable names in Word equations when the usual Home ribbon commands are unavailable.

How to Insert Subscript and Superscript Variables in Word Equations
Product
Microsoft Word Equation Editor
Device & OS
not provided
Scenario
Editing a mathematical equation with the Equation Design tools in Word.
Observed behavior
The Home ribbon subscript and superscript commands are unavailable while editing the equation.
Before you start

Click inside an existing equation, or select Insert > Equation to create one. Check that the Equation or Equation Design tab appears on the ribbon.

Solution 1Recommended

Use the Equation Script gallery

Use equation-specific templates to add a subscript, superscript, or both to a variable.

1
Open the Script gallery

Click inside the equation, select the Equation or Equation Design tab, and choose Script in the Structures group.

2
Choose a script layout

Select a subscript, superscript, or combined subscript-and-superscript template from the gallery.

3
Fill in the placeholders

Click the base placeholder and type the variable, then click the script placeholder or placeholders and enter the desired characters.

Use the Equation Script gallery
Edit equations in WPS Writer

Add equation scripts in WPS Writer

Use WPS Writer's equation editor and script templates to create variables with subscripts and superscripts in your documents.

  1. 1. Open your document: Open WPS Writer and use Open to select your document, or create a new document.
  2. 2. Insert an equation: Place the cursor where you want the equation and select Insert > Equation.
  3. 3. Choose a script template: In the equation editor, select a subscript or superscript template from the script or template controls. The labels may vary by version.
  4. 4. Enter the variable and script: Click the template placeholders and type the variable and its subscript or superscript, then click outside the equation to continue editing.
Create subscripted and superscripted equation variables with script templates.Open and edit Microsoft Word DOC and DOCX files.Use a familiar ribbon interface for document editing.Get started with a free, lightweight Office suite.
microsoft office alternative - wps office

Frequently Asked Questions

Why are the Home tab subscript and superscript buttons unavailable in my equation?

Word equations use equation-specific structures rather than ordinary text formatting. Click inside the equation and use Equation or Equation Design > Script instead.

How do I type a subscript without opening the Script gallery?

Inside a Word equation, type the variable, an underscore, and the subscript, such as x_i, then press Spacebar to convert it.

Can I add both a subscript and a superscript to the same variable?

Yes. Click inside the equation, open Equation or Equation Design > Script, and select a template with both script placeholders. Enter the variable and each script in its placeholder.

How do I create a new equation in Word?

Place the cursor where the equation should appear and select Insert > Equation. Click inside the new equation to access its equation tools.