Skip to main content
Mathovia

Science

Oxidation Number Calculator

Find an unknown element's oxidation number from the overall charge, the known oxidation state, and the atom counts. This works for neutral compounds and charged ions.

Unknown oxidation number
6.00

The calculator applies charge balance; the sum of all oxidation-number contributions equals the compound or ion's overall charge.

Written by
MPhil in Mathematics, Founder of Mathovia
Published

Mathematics verification: Mathematical formulas, calculations, worked examples and solutions are reviewed for accuracy before publication. How we check our work

Oxidation numbers are a way of pretending every bond is fully ionic so you can keep score of electrons. Assign the shared electrons in each bond to whichever atom pulls harder, add up the imaginary charge on each atom, and you have a tool that tells you at a glance which species got oxidized, which got reduced, and whether a formula you’ve written is even possible. This calculator works from charge balance: you give it the overall charge, one known oxidation state, and the atom counts, and it solves for the unknown.

Oxidation Number Calculator formula
The Oxidation Number formula

The charge-balance equation

The oxidation numbers of every atom in a species, each multiplied by how many of that atom there are, must add up to the species’ overall charge:

Solving for the unknown oxidation number :

where is the known oxidation state, and are the atom counts, and is the overall charge (0 for a neutral compound).

How to Calculate Oxidation Number (step by step)

Step One: Set up the charge-balance equation

The algebraic sum of every element’s oxidation-number contribution must equal the overall charge of the compound or ion.

Overall charge = (unknown oxidation number × unknown atom count) + (known oxidation state × known atom count)

For the default example, the unknown element appears once, oxygen has an oxidation state of -2, and the ion has an overall charge of -2.

-2 = (unknown oxidation number × 1) + (-2 × 4)

Step Two: Calculate the known contribution

Multiply the known element’s oxidation state by the number of atoms of that element. This gives the known portion of the total charge.

Known contribution = known oxidation state × known atom count

Using the default values:

Known contribution = -2 × 4 = -8

Step Three: Isolate the unknown oxidation number

Subtract the known contribution from the overall charge, then divide by the number of atoms whose oxidation number is unknown.

Unknown oxidation number = (overall charge - known contribution) ÷ unknown atom count

With the default values:

Unknown oxidation number = (-2 - (-8)) ÷ 1 = 6

The result is positive six, written as +6. This is the oxidation number of sulfur in sulfate, SO₄²⁻. If you need the compound’s formula mass before doing charge-balance work, use a molar mass calculator. For reaction accounting, a chemical equation balancer can help ensure the atom counts are correct.

What your results mean

A positive oxidation number means the atom is assigned fewer electrons than its neutral-atom reference state, while a negative value indicates greater assigned electron ownership. An oxidation number of zero commonly appears for an element in its uncombined form.

The result depends entirely on accurate atom counts and known oxidation states. Common rules include assigning oxygen an oxidation state of -2 in most compounds, hydrogen +1 when bonded to nonmetals, and the total oxidation-number sum equal to zero in a neutral compound. Exceptions exist, so use the result as a charge-balance calculation rather than a replacement for chemical context.

Worked examples for common species

SpeciesKnown stateSetupUnknown
SO₄²⁻O = −2 (×4)−2 = x + (−8)S = +6
NO₃⁻O = −2 (×3)−1 = x + (−6)N = +5
MnO₄⁻O = −2 (×4)−1 = x + (−8)Mn = +7
Cr₂O₇²⁻O = −2 (×7)−2 = 2x + (−14)Cr = +6
NH₄⁺H = +1 (×4)+1 = x + (+4)N = −3
H₂O₂H = +1 (×2)0 = 2·(O) + (+2)O = −1 (peroxide)

Where oxidation numbers are used

  • Balancing redox reactions by the oxidation-number-change or half-reaction method.
  • Naming compounds — the Roman numeral in “iron(III) chloride” is the oxidation state.
  • Identifying oxidizing and reducing agents in a reaction.
  • Checking a proposed formula for charge consistency before trusting it.

Common mistakes

  • Applying O = −2 to a peroxide (it’s −1) or to OF₂ (it’s +2).
  • Assuming H is always +1 — in metal hydrides like NaH it’s −1.
  • Confusing oxidation number with formal charge or with actual ionic charge — they can differ.
  • Miscounting atoms, especially oxygens in polyatomic ions.

For the formula weight of the species you’re analysing, use the molar mass calculator; to verify the atom counts in a reaction, the chemical equation balancer.

About the formula: The calculator applies charge balance; the sum of all oxidation-number contributions equals the compound or ion's overall charge.

Frequently Asked Questions

What does an oxidation number represent?+

The charge an atom would carry if every bond's electrons were handed entirely to the more electronegative partner. It is a bookkeeping device for tracking which atoms gain and lose electrons in a reaction.

What is the oxidation number of sulfur in sulfate, SO₄²⁻?+

+6. Four oxygens at −2 contribute −8; the ion's total charge is −2; so sulfur must be +6 to balance: −2 = (S × 1) + (−8), giving S = +6.

Can I use this for a neutral compound?+

Yes. Set the overall charge to 0, then enter the known oxidation state and both atom counts. The charge-balance equation is the same.

Can an oxidation number be fractional?+

The calculated value can be, and it represents an average. Fe₃O₄ gives an average iron oxidation number of +8/3 because it actually contains a mix of Fe²⁺ and Fe³⁺.

What are the standard oxidation-state rules?+

Oxygen is −2 (except peroxides −1, and OF₂ +2); hydrogen is +1 with non-metals and −1 with metals; group 1 metals are +1, group 2 are +2; fluorine is always −1; a free element is 0; and every oxidation number in a species sums to its overall charge.

How is this used in redox reactions?+

Compare an element's oxidation number on each side of the equation. An increase is oxidation (electrons lost); a decrease is reduction (electrons gained). The totals must match, which is how redox equations are balanced.

Related calculators