Type Chemical Formulas in Google Docs

Chemical formulas in Google Docs need subscript for atom counts and superscript for charges. Type the formula as ordinary text first, then select only the characters that need to move, so the element symbols stay on the normal writing line.

For water, type H2O and lower only the 2. For an ion such as Ca2+, raise the 2 and the plus sign together. Making the whole formula smaller changes its appearance without putting those characters in the right position.

Lower the atom count with Subscript

Start in an editable document on a computer. Type H2O, then select just its 2. Choose Format > Text > Subscript. The 2 should shrink and drop slightly beneath H and O.

The keyboard route is Ctrl + comma on Windows or a Chromebook, and Command + comma on a Mac. Keep the selected digit highlighted while pressing the shortcut.

Drawing of the Google Docs Text formatting menu with Subscript highlighted for a chemical atom count

Try CO2 next. Only the final 2 needs subscript. For H2SO4, format the 2 and 4 individually, leaving H, S, and O at their normal height. This keeps the formula readable, and you can still edit it as ordinary text.

A number applies to the element immediately before it, or to a group enclosed in parentheses. In Ca(OH)2, the parentheses stay on the normal line and only the last 2 is lowered.

Google's Docs shortcut guide shows the Subscript and Superscript commands. Both keep the characters editable, so you can correct a count or charge later.

I'd finish the plain formula before formatting it. Selecting a known digit afterward is easier than switching text modes repeatedly while you're still thinking about the chemistry.

Raise an ion's charge with Superscript

Type the element or group and its charge in plain text. For Ca2+, select 2+, then choose Format > Text > Superscript. Both the number and sign should rise together at the end of the formula.

Use Ctrl + period on Windows or ChromeOS, or Command + period on macOS. This is a different shortcut from the comma used for subscripts.

For NH4+, lower the 4 and raise the plus sign. Leave the nitrogen and hydrogen letters as normal text. Keeping those selections separate avoids lifting the hydrogen count along with the charge.

If a charge contains more than one character, select all of them before applying Superscript. Leaving its plus or minus sign at normal height makes the finished notation harder to read.

Check that the sign is the one you intended before continuing. Docs can't decide whether the atom or group needs a positive or negative charge, or whether an atom count belongs in that position.

A symbol that remains normal size after the command probably wasn't selected. Undo the change, highlight only the charge, and apply Superscript again rather than shrinking the full formula's font.

Keep reaction coefficients at normal height

In a reaction where 2H2 + O2 produces 2H2O, the 2s at the start of the formulas count complete molecules. They stay normal size on the writing line. The digits following H and O describe the atoms within each molecule and need subscript.

Format atom counts after typing the reaction, and leave spaces around its separator so each formula is clear. Choose the reaction symbol your assignment requires; an equals sign isn't interchangeable with every reaction symbol.

A leading 3 before Ca(OH)2 counts three complete units. Keep that 3 at normal height and the final 2 lowered. The starting number, called a coefficient, applies to the whole formula, including the group in parentheses.

States such as (s), (l), (g), and (aq) normally stay on the writing line. Follow your course or publisher's style when it specifies a different treatment for a particular kind of notation.

Return to normal text after each formula

After typing with Subscript switched on, use the same command again before typing ordinary text. Do the same for Superscript. Otherwise, the next word can continue at the reduced size and shifted position.

When a sentence has already dropped down, select only the affected ordinary words and toggle Subscript off. Check the end of the formula afterward so the atom count stays in subscript.

Pasting without formatting removes the Subscript and Superscript styles you've applied. If you paste a formula that way, expect to reapply those styles to the digits and charges.

Keep a copy of the completed formula in the document when you need it repeatedly. Copying the formatted text can save time, but check every changed digit. Reusing a similar formula can also carry the wrong charge into the next example.

The Word subscript and superscript guide covers the corresponding controls when your final file needs editing in Word. Its shortcuts and menus differ from Docs.

Use an equation box when the expression needs one

Ordinary formatted text works well for short chemical formulas inside sentences. An equation box is useful when the expression also needs mathematical symbols or a more structured layout.

On a computer, click where the expression should go and choose Insert > Symbols > Equation. The equation toolbar provides groups of symbols. Enter the expression there, then click an ordinary paragraph to leave the equation editor.

Use View > Show equation toolbar when the toolbar is hidden. Editing inside an equation box works differently from ordinary text, so don't expect all the same text shortcuts to work there.

For a mark over a variable rather than an atom count, the Google Docs bar notation steps cover that separate notation. A subscript isn't a substitute for an overline.

Work from a phone or check the exported copy

With an external keyboard, the Android Docs app supports Ctrl + comma for Subscript and Ctrl + period for Superscript. On iPhone or iPad with a keyboard, use the corresponding Command combinations.

Select the characters in the app before using the shortcut. Without a keyboard or a visible formatting control for the style, finish these changes in the computer editor instead of substituting smaller ordinary digits.

Before submitting, open the actual PDF or downloaded document. Check a formula containing a subscript, one containing a charge, and any equation object. Read the characters as well as their position.

If the formatting won't stay in place, send an example with personal details removed through Help > Help Docs improve. Include whether the problem happens in Docs itself or only after downloading, and the file format involved.

The Short Version

Use Subscript for atom counts, Superscript for charges, and normal text for reaction coefficients. Select only the affected characters. Return to ordinary text afterward and inspect the final exported file before sending it.

Checked December 2, 2026.

If you have any business, I can build it online

Hi, I’m Hamza. I’ve been building websites and online shops for business owners since 2019, and I also built this site you’re reading.

Tell me what business you have or what you’re working on. I’ll look into how much it can grow online, and then we talk. You don’t have to buy anything or hire me first.

Chat with me on my site and I’ll show you proof of businesses I’ve helped and how they’ve grown.

Written by Isaac Smith

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.

More from Isaac Smith

Leave a Comment