Formula and molecular weight
The status bar shows the molecular formula and molecular weight of the selected atoms, and updates as you edit. For example, select ethanol and the readout shows C2H6O with a molecular weight of 46.07. To copy the text, click the readout.
Reading the readout
Section titled “Reading the readout”The readout gives the formula with subscripts, followed by the average molecular weight to two decimal places, for example C6H6 MW: 78.11. The element order follows these rules:
- A compound that contains carbon uses Hill order: carbon first, then hydrogen, then the other elements alphabetically.
- A compound without carbon follows the IUPAC element sequence, so ammonia reads NH3 and sulfur dioxide reads SO2. An oxoacid starts with H (HNO3, H2SO4), a metal hydroxide ends with H (NaOH), and the hydroxide ion reads OH−.
To get the formula of acetic acid
Section titled “To get the formula of acetic acid”- Draw acetic acid (CH3–COOH) in bond-line form.
- With the Select tool, drag a box around the whole structure.
The status bar shows C2H4O2 MW: 60.05. The hydrogens are counted even though none are drawn.

Selection scope
Section titled “Selection scope”The readout appears only while atoms are selected. With nothing selected, it is empty; it does not fall back to the whole canvas. To get the formula for everything on the canvas, press Ctrl+A first.
A selection that spans several molecules gives one combined formula and weight. To read one molecule, select only that molecule.
Copying the formula
Section titled “Copying the formula”To copy the formula and weight as plain text (for example C6H6 MW: 78.11), click the readout. The readout flashes briefly to confirm. Structure > Copy Formula does the same for the selected atoms, and the command palette lists it under the same name. With nothing selected, nothing is copied and a message says “Select the atoms whose formula to copy first (Ctrl+A selects everything).”
Hiding the readout
Section titled “Hiding the readout”To turn the readout on or off, select View > Show Formula & Weight. The check mark beside the command shows the current state. The command palette uses the same name.
What counts toward the formula
Section titled “What counts toward the formula”| Item | How it is counted |
|---|---|
| Implicit hydrogens | Included, using the same count the canvas draws on atom labels. Standard valences are known for H, B, C, N, O, F, Al, Si, P, S, Cl, Ga, Ge, As, Se, Br, Sb, Te, and I; other elements, metals included, get no implicit hydrogens. |
| Charges | Change the implicit hydrogen count through the valence rule, so protonating or deprotonating an atom changes the hydrogen total. When the selection is one connected ion, its net charge is written after the formula: NO3−, NH4+. A selection of several separate pieces, such as three resonance forms, shows no charge. |
| Explicit lone pairs | When an atom has lone pairs drawn, its implicit hydrogens are counted from its full octet, which can change the count. The count never exceeds the atom’s remaining valence electrons, so a carbene carbon or a nitrene nitrogen gets no extra hydrogen; see Lone pairs. |
| Isotope labels | Counted by isotope, so D2O has a different formula and weight from H2O. |
| Group labels and collapsed groups | Counted as the atoms they stand for: a COOH label adds C, two O, and H, and a collapsed OMe adds the atoms it hides. A label that is not a library group makes the formula unknown, so the readout stays empty. See Functional groups and abbreviations. |
| A whole crystal | Counted as its formula unit: the cell’s contents divided by Z, so a rock salt cell reads NaCl. A crystal is never added to the molecules beside it: with molecules also selected, their formula and weight come first, then + crystal and the crystal’s formula. |
| Generic placeholders | A selection that contains R, X, or another placeholder has no formula, and the readout stays empty. |