Oxidation State Calculator
Enter a chemical formula to determine the oxidation state of each element. For polyatomic ions, enter the charge.
How oxidation states are assigned
Oxidation states distribute the electrons in a compound by pretending every bond is fully ionic, with the more electronegative atom keeping the shared pair. The result is an integer (sometimes a fraction in superoxides and a few odd cases) that may not correspond to any real charge but accounts for electron transfer in a way that makes redox chemistry tractable.
The assignment rules form a strict priority list — apply them top-down, and the unknown atom is whatever the sum demands:
- Free elements: 0.
- Fluorine in compounds: −1 (always).
- Group 1 metals in compounds: +1. Group 2 metals: +2.
- Hydrogen: +1, except −1 in metal hydrides like NaH.
- Oxygen: −2, except −1 in peroxides (H₂O₂, Na₂O₂), −½ in superoxides (KO₂), and +2 in OF₂.
- The sum equals the overall charge — 0 for a neutral compound, the ion charge for a polyatomic ion.
How this calculator works
Type a formula (KMnO4, H2SO4, Cr2O7) and the optional ionic charge if the species is an ion. The parser counts atoms, applies the rules in priority order, and solves the resulting linear equation for the unknown element. The output table shows each element, its assigned oxidation number, and which rule produced it. A verification line confirms the assignments sum to the expected charge.
Worked examples
KMnO₄. K = +1 (rule 3), O = −2 × 4 = −8 (rule 5). Neutral compound: +1 + Mn − 8 = 0 → Mn = +7.
H₂SO₄. H = +1 × 2 = +2 (rule 4), O = −2 × 4 = −8 (rule 5). Neutral: +2 + S − 8 = 0 → S = +6.
Na₂O₂ (sodium peroxide). Na = +1 × 2 = +2 (rule 3). The compound is a peroxide, so O = −1 each by the rule 5 exception. Verify: +2 + (−2) = 0. Each O is −1, not −2.
Cr₂O₇²⁻ (dichromate). O = −2 × 7 = −14. Sum equals ion charge: 2(Cr) − 14 = −2 → 2(Cr) = +12 → each Cr = +6.
The peroxide and dichromate cases are the most common places students slip — the calculator surfaces the rule-exception path so the reasoning is visible, not just the answer.