Oxidation number calculator
This oxidation number calculator finds the oxidation state of every element in a formula or ion. Type something like KMnO4, Cr2O7^2- or Fe3O4: it applies the standard oxidation number rules in priority order, solves the charge balance for what is left and shows each step, including average (fractional) oxidation numbers.
Find the oxidation number of each element
How to use the oxidation number calculator
Type the formula exactly as you would write it, with capital letters for element symbols. For an ion, add the charge at the end (SO4^2-, NH4+, Cr2O7^2-) or leave the formula plain and type the charge in the second field. Brackets and hydrate dots are understood, so K4[Fe(CN)6], Ca3(PO4)2 and CuSO4·5H2O all work. The oxidation number calculator then lists every element with its oxidation number, adds them up as a check and, under “Show the working”, explains which rule fixed each element and how the last one was solved. The oxygen menu lets you force the peroxide (−1) or superoxide (−½) value when you already know the structure.
What is an oxidation number? (and what the oxidation number calculator computes)
An oxidation number (oxidation state) is the charge an atom would carry if every bond in the species were fully ionic, with the shared electrons given to the more electronegative atom. It is bookkeeping, not a real charge, but it tells you which atoms gain or lose electrons in a reaction: oxidation is an increase in oxidation number and reduction is a decrease. The IUPAC Gold Book definition of oxidation state formalizes this, and OpenStax Chemistry 2e, section 4.2 gives the classroom rules used here. Every oxidation number calculator rests on one equation:
Rules for assigning oxidation numbers (with exceptions)
This compact table is the one to memorize. Apply the rules from top to bottom; when two rules conflict, the one higher in the list wins. The oxidation number calculator applies them in the same order, exactly as you would by hand.
| # | Rule (usual value) | Exceptions | Examples |
|---|---|---|---|
| 1 | Free element 0; monatomic ion = its charge | None | O₂, S₈, Fe: 0; Fe³⁺: +3; Cl⁻: −1 |
| 2 | Fluorine −1 in all compounds | None (F is the most electronegative element) | HF, OF₂, XeF₄ |
| 3 | Group 1 metals +1, group 2 metals +2, aluminum +3 | None in ordinary compounds | NaCl, MgO, Al₂O₃ |
| 4 | Hydrogen +1 | Metal hydrides: H −1 | H₂O, NH₃ (+1); NaH, CaH₂, LiAlH₄ (−1) |
| 5 | Oxygen −2 | Peroxides −1, superoxides −½, OF₂ +2 (F wins by rule 2) | H₂O (−2), H₂O₂, Na₂O₂ (−1), KO₂ (−½), OF₂ (+2) |
| 6 | Cl, Br, I −1 | Positive when bonded to O, F or a more electronegative halogen | NaCl, CCl₄ (−1); ClO₄⁻ (+7), ICl (I +1) |
| 7 | Sum of all oxidation numbers = overall charge | None: this rule always holds | S in SO₄²⁻: x + 4(−2) = −2, x = +6 |
Rule 7 is how you solve for the one element the other rules do not fix. The exceptions in the third column come from the order of the list: in OF₂, rule 2 (F −1) outranks rule 5 (O −2), so oxygen has to be +2 for the sum to be zero.
If two or more elements are still unknown after rule 6, the calculator first looks for a familiar polyatomic ion or ligand (SO₄²⁻, NO₃⁻, PO₄³⁻, CO₃²⁻, Mo₇O₂₄⁶⁻, CN⁻, SCN⁻, NH₄⁺, NH₃, CO, NO⁺…), which handles salts of transition metals such as CuSO₄, Fe₂(SO₄)₃, K₄[Fe(CN)₆] or sodium nitroprusside Na₂[Fe(CN)₅NO] (Fe +2), and carbonylate anions such as [Mn(CO)₅]⁻, where the metal is −1. If that does not settle it, the most electronegative remaining element (by Pauling electronegativity) takes its usual negative oxidation number, for example N −3 or S −2, and the process repeats. This is how the oxidation number calculator handles KSCN (S −2, C +4, N −3) or [Co(NH₃)₆]Cl₃ (Co +3).
Oxidation number calculator worked example: dichromate
The default entry of the oxidation number calculator is Cr₂O₇²⁻. Oxygen is −2 by rule 5, and chromium is the only unknown. The charge balance is 2x + 7(−2) = −2, so 2x = −2 + 14 = 12 and x = +6. Every chromium atom in dichromate is therefore +6, and when dichromate oxidizes Fe²⁺ to Fe³⁺ each chromium is reduced from +6 to +3, gaining 3 electrons (6 per Cr₂O₇²⁻).
Two more examples show the other paths the oxidation number calculator can take. In KMnO₄, K is +1 and O is −2, so 1 + x + 4(−2) = 0 and Mn = +7. In H₂O₂, H is +1 and O would be −2, but then the sum would be −2 instead of 0, so the calculator recognizes a peroxide and solves 2(+1) + 2x = 0, giving O = −1.
Average and fractional oxidation numbers
A non-integer result is not a mistake: it is the average over atoms that are not in the same state. Magnetite, Fe₃O₄, contains one Fe²⁺ and two Fe³⁺, so the oxidation number calculator gives 3x + 4(−2) = 0, x = +8/3. In the tetrathionate ion S₄O₆²⁻ the two central sulfur atoms are 0 and the two outer ones +5, averaging +2.5. In thiosulfate S₂O₃²⁻ the formula gives +2, the average of two different sulfur environments. The formula alone cannot separate such sites; you need the structure (Lewis structure or crystal data) for that.
Oxidation number calculator test set: common species
The calculator was checked against textbook answers for more than 30 species, including:
| Species | Result | Species | Result |
|---|---|---|---|
| KMnO₄ | Mn +7 | Cr₂O₇²⁻ | Cr +6 |
| H₂O₂ | O −1 | NaH | H −1 |
| OF₂ | O +2 | Fe₃O₄ | Fe +8/3 |
| S₂O₃²⁻ | S +2 | S₄O₆²⁻ | S +5/2 |
| NH₄⁺ | N −3 | NO₃⁻ | N +5 |
| C₆H₁₂O₆ | C 0 | CH₄ | C −4 |
| CO | C +2 | ClO₄⁻ | Cl +7 |
| SO₄²⁻ | S +6 | K₄[Fe(CN)₆] | Fe +2, C +2, N −3 |
| KO₂ | O −1/2 | CuSO₄·5H₂O | Cu +2, S +6 |
| Fe₂(SO₄)₃ | Fe +3 | LiAlH₄ | H −1 |
| NaClO | Cl +1 | ICl | I +1, Cl −1 |
| XeF₄ | Xe +4 | N₂H₄ | N −2 |
| C₂H₅OH | C −2 | CH₃COOH | C 0 |
| [Co(NH₃)₆]Cl₃ | Co +3 | KSCN | S −2, C +4, N −3 |
| Pb₃O₄ | Pb +8/3 | HN₃ (azide) | N −1/3 |
| U₃O₈ | U +16/3 | P₄ | P 0 |
Practice questions to check with the oxidation number calculator
Find the oxidation number of the element in bold, then check your answer below. Each solution uses only the rules table above and the sum rule, and every answer matches the oxidation number calculator.
| # | Question | Answer | Working |
|---|---|---|---|
| 1 | S in H₂SO₄ | +6 | 2(+1) + x + 4(−2) = 0, so x = 8 − 2 = +6 |
| 2 | Cr in Cr₂O₇²⁻ | +6 | 2x + 7(−2) = −2, so 2x = 12 and x = +6 |
| 3 | Mn in MnO₄⁻ | +7 | x + 4(−2) = −1, so x = +7 |
| 4 | N in NH₄⁺ | −3 | x + 4(+1) = +1, so x = −3 |
| 5 | Fe in Fe₃O₄ | +8/3 (average) | 3x + 4(−2) = 0, so x = +8/3 ≈ +2.67 (one Fe²⁺ and two Fe³⁺) |
| 6 | O in H₂O₂ | −1 | Peroxide: 2(+1) + 2x = 0, so x = −1 |
| 7 | C in C₂O₄²⁻ (oxalate) | +3 | 2x + 4(−2) = −2, so 2x = 6 and x = +3 |
| 8 | S in S₂O₃²⁻ (thiosulfate) | +2 (average) | 2x + 3(−2) = −2, so 2x = 4 and x = +2 |
Questions 5 and 8 are the ones students most often get “wrong” by expecting a whole number. In Fe₃O₄ the average +8/3 hides two different iron ions. In thiosulfate the two sulfur atoms are in different positions (one central, bonded to three O atoms, and one terminal, bonded only to the central S), so a structure-based assignment gives them different values, but any such split must still average +2. On an exam, give the average unless the question asks about individual atoms. In question 7, both carbon atoms in oxalate are identical, so +3 is the real value for each, not an average.
Limitations of a formula-based oxidation number calculator
Any oxidation number calculator that works from the formula alone sees atom counts, not bonds, so some species need care. Peroxide groups next to other oxygen: in H₂SO₅ or CrO₅ some O atoms are −1 and others −2; the calculator assumes −2 for all of them and warns that sulfur (+8) or chromium (+10) would exceed its maximum. Same element in two ions: NH₄NO₃ gives the average N = +1 (actually −3 and +5), with a note. Mixed-valence metals: in CuFeS₂ the total charge of Cu and Fe is fixed but not how it is split, so the calculator shows an equal split and says so. Polysulfides and similar: pyrite FeS₂ contains S₂²⁻ (S −1, Fe +2), but the rules give S −2 and Fe +4. Because Fe +4 is a possible state, no warning appears, so check the structure whenever two atoms of the same nonmetal are bonded to each other. Organic N–O compounds: when C, N and O are all present, the calculator reads N as part of a nitro or nitrite group (+3), or of a nitrate ester (+5) when there are exactly three O atoms per N, so nitromethane gives N +3 and C −2 and nitroglycerin gives N +5 and C −2/3. Glycine has the same formula as nitroethane but its N is an amine N (−3), so the calculator always adds a warning to check the structure. Hydrides of B and Si: following electronegativity, H is −1 in B₂H₆ and SiH₄ (B +3, Si +4); some introductory books write Si −4 instead.
Why oxidation numbers matter
Results from the oxidation number calculator identify redox reactions and tell you which species is oxidized (the reducing agent) and which is reduced (the oxidizing agent). The change in oxidation number per atom is the number of electrons n that appears in Faraday’s law and in the Nernst equation, so it links this page to the Electrolysis Calculator (Faraday’s Laws) and the Cell Potential Calculator. Oxidation numbers are also used to name compounds (iron(III) chloride, chromium(VI) oxide), to balance redox equations by the oxidation-number method and to find equivalent weights for the Normality Calculator.
Related calculators
After finding the oxidation numbers, balance the reaction with the Stoichiometry Calculator, get molar masses from the Molar Mass Calculator, and turn electron changes into voltages with the cell potential calculator.
- Cell Potential Calculator
- Electrolysis Calculator (Faraday’s Laws)
- Nernst Equation Calculator
- Molar Mass Calculator
- Stoichiometry Calculator
- Normality Calculator
- All chemistry calculators
Frequently asked questions
How do you find oxidation numbers step by step?
Assign the fixed values first (free elements 0, F −1, group 1 +1, group 2 +2, H +1, O −2, halogens −1 when bonded to less electronegative atoms). Then write the sum of atoms × oxidation numbers equal to the overall charge and solve for the remaining element. The oxidation number calculator shows exactly this algebra.
Can an oxidation number be a fraction?
Yes, but only as an average. When the formula method gives a fraction, the atoms of that element are in different environments: Fe₃O₄ gives +8/3 (one Fe²⁺ and two Fe³⁺), Pb₃O₄ gives +8/3 and S₄O₆²⁻ gives +5/2 for sulfur (two S at 0 and two at +5). Superoxides such as KO₂ give O = −½ because the extra electron is shared by the O₂⁻ pair. Each individual atom normally has a whole-number oxidation state, and you need the structure to find it. The oxidation number calculator shows such averages as fractions, for example +8/3.
What is the difference between oxidation number and charge?
The charge is real and belongs to the whole ion (SO₄²⁻ has charge −2). The oxidation number is a formal value for each atom, worked out as if all bonds were ionic (S +6, O −2 in sulfate). They coincide only for monatomic ions.
Why is oxygen −1 in hydrogen peroxide?
In H₂O₂ the two oxygen atoms are bonded to each other. Electrons shared between identical atoms are split evenly, so each O gets only one extra electron from its bond to H, giving −1 instead of −2.
Is this oxidation number calculator free?
Yes. The oxidation number calculator runs in your browser, needs no sign-up and does not store or send the formulas you enter.