Write chemical formulas and reaction equations
Type H2O to display H₂O or 2H2 + O2 -> 2H2O to display a reaction. Numbers after element symbols or groups become subscripts. Numbers before a formula, such as the 2 in 2H2, stay on the baseline as coefficients. Element symbols are upright, so Co (cobalt) stays distinct from CO (carbon monoxide).
Type or paste into the editor, or use Elements and Notation to insert a symbol at the cursor. The preview updates as you edit. Use an example to try a formula, ion, or reaction before writing your own.
Chemical notation examples
| To write | Type |
|---|---|
| A subscript on a group | Ca(OH)2 |
| An ion with a charge | SO4^2- |
| An isotope with mass and atomic numbers | ^{14}_{6}C |
| A reaction with physical states | 2H2(g) + O2(g) -> 2H2O(l) |
| A hydrate with a centered dot | CuSO4 . 5H2O |
| A reaction in equilibrium | N2O4 <=> 2NO2 |
| Text above and below an arrow | A ->[{heat}][{light}] B |
| A precipitate | Ag+(aq) + Cl-(aq) -> AgCl(s) v |
Use (s), (l), (g), and (aq) for solid, liquid, gas, and aqueous species. Write ^ for gas evolution or v for a precipitate, with a space before the symbol. Put words in braces inside the arrow’s square brackets so they are typeset as text.
Copy LaTeX or export an image
Choose Copy LaTeX to get a command such as \ce{H2O}. Use it in a LaTeX document with the mhchem package or in another editor that supports mhchem. You can also paste an existing \ce{...} command into this editor.
Choose SVG for a vector image you can resize in a presentation, diagram, or document. Editing, preview, and export run in your browser.
Copy image copies the preview as a transparent PNG. Choose PNG from the download menu to save the same image as a file.
Does the editor balance chemical equations?
The editor formats the coefficients you enter. To balance a reaction, adjust the coefficients until the number of atoms of each element is equal on both sides. For an ionic equation, check the total charge as well.