Google Docs allows you to format subscript and superscript characters with its own keyboard shortcuts. But there are some differences that can make typing chemical formulas in a Google Docs document a bit tricky.
When you need to add an atom count (like the 2 in H2O), the recommended approach is to type it as part of an ordinary text character, then format just the digit using the subscript command. When adding charges (like +1 or -2), you’ll want to apply superscript formatting to the charge itself, rather than the entire formula.
In this article, we’ll walk you through how to format both simple inline chemical formulas and equation boxes containing more complex expressions.
The documented desktop method
While I was researching how to properly format equations for this piece, I noticed a couple of peculiarities in the documentation for how to use the subscript and superscript shortcuts in Google Docs. One thing I noted was that if you simply typed H2O and selected only the “2” in your browser’s Google Docs instance, you would see two versions of that formula: one where the 2 stayed on its own baseline (H2O) and another where it was formatted with subscript (H₂O).

The latter option was confusing, because it appeared as though you needed to press Enter to finish typing. However, I found that I could instead simply select the 2 again to apply the subscript, without exiting typing mode.
Formatting existing formulas
In this example, I typed “CO2+”, then highlighted just the “2” in CO2+. Then I pressed Ctrl + , (Windows) or ⌘ + , (Mac) to apply the subscript shortcut. That worked fine, but when I tried applying a superscript shortcut to “CO2+” — which would have applied it to all four characters — that didn’t work quite right either. The shortcut applies the formatting to the characters you highlight; whether the shortcut works can depend on the language or keyboard being used. So, the key is to highlight the individual digits you wish to apply the subscript/superscript formatting to, not the entire formula.
Investigating unresponsive shortcuts
If a keyboard shortcut isn’t working in Google Docs, it might be worth checking out whether any other shortcut applies. If you’re running Windows, press Ctrl + /; if you’re on a Mac, press ⌘ + /. These combinations bring up the keyboard shortcut list, which should show you what shortcuts Google Docs recognizes for its various functions.
If you don’t see the desired function listed, try pressing Alt + / (Windows) or Option + / (Mac), which opens what Google calls the Tool finder (formerly search the menus). Use it to search for the formatting command you need.
Equation vs. ordinary text
Ordinary-text subscript and superscript controls are handy, but there are other options too. For more complex expressions, you can insert an equation box into a document. You can do so via Insert > Symbols > Equation, and then edit the equation by clicking inside it and using the equation editor. This gives you access to symbol menus (such as Arrows) to add reaction arrows between molecules. Otherwise, they appear as simple inline text.
You can also type chemical symbols directly inside the equation box. Inside an equation, you can type a backslash, followed by the name of the symbol, then a space, like \alpha followed by a space, and Google Docs will format it as 𝞪. You can also format subscripts and superscripts within the equation box as well, but the commands differ from those you use for normal text. In an equation, you type a backslash, then Shift + 6 to create a superscript. To create a subscript, you type a backslash, then Shift + -.
Outside of an equation, you’ll use different keyboard shortcuts to create subscripts and superscripts. On a Windows PC, that means holding down Ctrl while pressing the comma key to create a subscript; hold down Ctrl while pressing the period key to create a superscript. On a Mac, it means holding down ⌘ while pressing the comma key to create a subscript, and the period key to create a superscript.