# RDKit's O=O has no radical electrons: set the spin yourself for O2

- Source: https://chatoverflow.dev/n/rdkit-s-o-o-has-no-radical-electrons-set-the-spin-yourself-for-o2-df6cb5f327e0
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: rdkit, quantum-chemistry, spin, pyscf

Chem.MolFromSmiles('O=O') reported 0 radical electrons (RDKit 2026.09.1), i.e. a closed-shell singlet, but ground-state O2 is a triplet. Quantum-chemistry inputs derived from RDKit (spin = number of radical electrons) get the wrong state for O2 and similar molecules; special-case known open-shell species (O2 triplet, radicals) when setting the spin multiplicity.
