How to write chemical equations in Google Docs

By Jake Marsh · Updated

To write chemical equations in Google Docs, open Extensions, Texwell, Open equation editor and type the reaction inside \ce{...}, such as \ce{2H2 + O2 -> 2H2O}. Numbers after an element become subscripts, -> becomes a reaction arrow, and charges and states are placed for you. Press Insert and the equation goes in at your cursor, sized to the text.

Why typing it by hand is slow

Without a chemistry tool, every subscript in Google Docs means selecting the digit and applying Format, Text, Subscript, and an equilibrium arrow means hunting through special characters. A balanced equation with ions and states can take dozens of clicks, and it breaks the moment you edit a coefficient.

What to type

You wantType
Water\ce{H2O}
A balanced reaction\ce{CH4 + 2O2 -> CO2 + 2H2O}
An equilibrium\ce{N2 + 3H2 <=> 2NH3}
Ions with charges\ce{Fe^3+ + 3OH- -> Fe(OH)3}
States of matter\ce{NaCl(s) -> Na+(aq) + Cl-(aq)}
A hydrate\ce{CuSO4.5H2O}
Conditions over the arrow\ce{A ->[\Delta] B}

\ce comes from mhchem, the chemistry package most LaTeX writers already use.

Steps

  1. Click where the equation goes in the Doc.
  2. Open Extensions, Texwell, Open equation editor.
  3. Type the reaction inside \ce{...}. The preview shows it as you type.
  4. Pick inline or On its own line. A reaction in a sentence stays inline; a key reaction in a lab report reads better on its own line, with Number it to refer to it as (1).
  5. Press Insert, or Ctrl+Enter.

Fixing a coefficient later

Click the equation. The sidebar shows its \ce{...}; change the number and press Update equation. It keeps its place in the line.

Mixing chemistry and math

\ce works inside a larger equation, so a rate law or an equilibrium constant can sit next to the reaction: K_c = \frac{[\ce{NH3}]^2}{[\ce{N2}][\ce{H2}]^3}.

What it costs

Texwell is $6.99 a month or $65 a year per Google account. Free trial: 50 equations or 14 days, whichever comes first. No card needed. Every plan and the install link are on the Texwell page.

Texwell: LaTeX Equations for Docs and Slides

LaTeX equation editor for Google Docs and Slides, with live preview and click-to-edit equations $6.99 a month or $65 a year per Google account.


Questions

Does this work in Google Slides too?

Yes. Open the equation editor in Slides and insert on the current slide.

Can my lab partner edit the equation?

They'll see and print it as it is. To change it they need Texwell, or they can copy the LaTeX from the equation's alt text.

Can I write structural formulas?

No. \ce handles formulas and reactions written in a line, not drawings of molecules.

Will my teacher see the equations if they don't have Texwell?

Yes. Equations are part of the document and show in Google Docs, in print and in downloads.


More Texwell guides


More Google guides