← Back to ElementVault
Chemistry · Calculator

Oxidation State Finder

Rule-based assignment · charge-balance solver · full working shown
Try: H₂SO₄ KMnO₄ Cr₂O₇²⁻ NH₄⁺ Fe₃O₄ H₂O₂
Oxidation States
Working
Need to balance the redox equation too?
The full ElementVault workbench includes the Equation Balancer, Stoichiometry, Solubility Tables, and 9 other calculators alongside the interactive periodic table.
Open full workbench →
More ElementVault calculators: Molar Mass · pH & Buffer · Equation Balancer · Gas Laws · All 12 calculators →

What this calculator does

Type a compound or ion — add the overall charge after a space for ions (Cr2O7 2-, NH4+) — and the calculator assigns an oxidation state to every element, showing which rule produced each number. For any single element whose state isn't fixed by the standard rules, it solves the value algebraically from the requirement that the sum of all oxidation states equals the overall charge.

The assignment rules, in the order they're applied

#RuleAssigned state
1Elemental form (H₂, O₂, N₂, Cl₂, S₈, Fe, …)0
2Fluorine, in any compound−1
3Group 1 metals (Li, Na, K, Rb, Cs, Fr)+1
3Group 2 metals (Be, Mg, Ca, Sr, Ba, Ra)+2
3Al · Zn · Cd · Ag (reliably fixed in practice)+3 · +2 · +2 · +1
4Hydrogen — bonded to a nonmetal (default)+1
4Hydrogen — in a metal hydride (NaH, CaH₂, LiAlH₄)−1
5Oxygen — default−2
5Oxygen — in a peroxide (H₂O₂, Na₂O₂, BaO₂, …)−1
5Oxygen — in a superoxide (KO₂, NaO₂, …)−½
5Oxygen — bonded to fluorine (OF₂)solved (+2)
6Any one remaining elementsolved from charge balance

Rule 6 only works when exactly one element is still unknown after rules 1–5. If two different elements are both variable-state (like nitrogen and chlorine in NH₄ClO₄), the charge-balance equation is under-determined and the calculator asks you to analyze each ion separately instead of guessing. Repeated atoms of the same unknown element — like the two chemically different nitrogens in NH₄NO₃ — aren't caught by this check, since they collapse into one combined unknown; see the FAQ below for why that formula needs to be split by hand instead.

Worked examples

1. HNO₃ (nitric acid). H is +1 (bonded to a nonmetal). O is −2 × 3 = −6 (default, no peroxide/superoxide/OF₂ pattern). Overall charge is 0 (neutral molecule), so nitrogen must make up the difference: N = 0 − (1 + (−6)) = 0 − (−5) = +5.

2. Cr₂O₇²⁻ (dichromate ion). O is −2 × 7 = −14. The ion's overall charge is −2, and there are two chromium atoms, so 2 × Cr = −2 − (−14) = 12, giving Cr = +6 per atom.

3. Fe₃O₄ (magnetite) — mixed valence. O is −2 × 4 = −8. Overall charge is 0 and there are three iron atoms: 3 × Fe = 0 − (−8) = 8, so Fe = 8/3 ≈ +2.67. This non-integer result is real — it's the average of one Fe²⁺ and two Fe³⁺ ions in the actual crystal structure, which the formula-level charge balance can't separate.

Common errors to avoid

Forgetting the hydride exception. Hydrogen is +1 almost everywhere, but flips to −1 when bonded only to a more electropositive metal (NaH, CaH₂). Applying +1 to hydride hydrogen gives the wrong sign for every other element in the compound too, since the charge balance is thrown off.

Applying −2 to every oxygen. Peroxides (−1) and superoxides (−½) are common enough in general chemistry (hydrogen peroxide, sodium peroxide, potassium superoxide) that assuming −2 everywhere silently breaks those specific compounds.

Treating a compound like NH₄NO₃ as one system. It has two nitrogens with genuinely different real oxidation states (−3 in the ammonium cation, +5 in the nitrate anion). Because they're the same element, entering the whole neutral formula won't raise an error — it silently averages both nitrogens into one number (+1) that balances the overall charge but isn't the true state of either one. Solve the cation and anion separately instead.

Frequently asked questions

Why do fractional oxidation states happen?

A fractional (or non-integer) oxidation state is an average over multiple atoms of the same element that are actually in different real oxidation states. Fe₃O₄ (magnetite) is the classic example: it's really a 1:2 mix of Fe²⁺ and Fe³⁺ ions, giving an average of (2 + 3 + 3)/3 = +8/3 ≈ +2.67. The charge-balance method used here reports that average because it can't distinguish the individual sites from the formula alone — crystallography is what reveals the real 1:2 split.

Why does NH₄NO₃ need to be split into separate ions?

NH₄NO₃ (ammonium nitrate) has two nitrogens with genuinely different real oxidation states — −3 in the ammonium cation, +5 in the nitrate anion. Because both are the same element, entering the whole neutral formula makes the calculator's charge-balance step treat them as one combined unknown and return an average (+1) that satisfies the overall charge without being either nitrogen's true state. The "two or more variable-state elements" error only fires when two different elements are both unknown (e.g. NH₄ClO₄, where nitrogen and chlorine are both unresolved) — repeated atoms of the same element aren't separated automatically. Whenever one element plays two structurally different roles like this, analyze each ion separately: entering NH4+ and NO3- gives each nitrogen its own correct answer.

What's the difference between oxidation state and formal charge?

Both are bookkeeping devices, not directly measurable charges, but they split bonding electrons differently. Oxidation state assigns every shared electron pair entirely to the more electronegative atom (as if the bond were fully ionic) — that's what this calculator computes. Formal charge splits every bonding pair exactly in half regardless of electronegativity (as if the bond were fully covalent). For a polar covalent bond like C–O, they usually give different numbers for the same atom; oxidation state is what you use to track redox reactions, formal charge is what you use to pick the best Lewis structure.

What rule handles OF₂ differently from other oxygen compounds?

Oxygen is almost always −2, but fluorine is more electronegative than oxygen and is always −1. In OF₂, that forces oxygen to be +2 instead of the usual −2 — the only common compound where oxygen is positive. This calculator detects fluorine in the formula and solves oxygen from the charge balance instead of hard-coding −2, so OF₂ (and any other O/F compound) comes out correct automatically.