Oxidation Number Calculator – Solve for Any Element, Step by Step

Type a compound to work out the oxidation number of the element you pick, using the standard rules.

100% FreeNo sign-up neededInstant results

Your compound

0 for a neutral compound, -2 for sulfate SO4, +1 for ammonium NH4, and so on.

Your numbers never leave this page. Everything is calculated in your browser.

Answer

Sulfur in H2SO4
S = +6
2×(+1) + x + 4×(−2) = 0, so x = +6.

Equation, term by term

H × 2, rule +1+2
S × 1, unknown xx
O × 4, rule −2−8
Total0

Steps

  1. Write the sum of all oxidation numbers and set it equal to the charge, 0.
  2. Fill in the known rules: H is +1, O is −2.
  3. 2×(+1) + x + 4×(−2) = 0, so x − 6 = 0, so x = +6.

Check: 2 + 6 − 8 = 0, which matches the neutral charge.

Copied

Common compounds, solved the same way

Each row uses the same rule: the oxidation numbers add up to the charge. Click a row’s compound in the calculator above to see its full steps.

CompoundElement solvedEquationAnswer
H2SO4Sulfur2×(+1) + x + 4×(−2) = 0S = +6
KMnO4Manganese+1 + x + 4×(−2) = 0Mn = +7
CO2Carbonx + 2×(−2) = 0C = +4
NH3Nitrogenx + 3×(+1) = 0N = −3
Fe2O3Iron2x + 3×(−2) = 0Fe = +3
H2O2 (peroxide)Oxygen2×(+1) + 2x = 0O = −1
Key takeaways
  • Write one term per element, with subscripts as multipliers, and solve so the terms sum to the compound’s charge.
  • Hydrogen is +1 and oxygen is −2, except in hydrides (−1) and peroxides (−1) — claimed deliberately via the toggles.
  • Divide by the target’s subscript at the end: 2x = +6 means x = +3, not +6.

How it works, in 3 steps

1

Enter the formula

Type a compound like H2SO4, or pick one from the list. Brackets work too, so Ca(OH)2 and Al2(SO4)3 parse correctly.

2

Pick the unknown

Leave it on Auto and the solver picks the one element the rules do not cover. Or choose an element yourself, and tick peroxide or metal hydride when those exceptions apply.

3

Read the equation

The solver sets the sum of all oxidation numbers equal to the charge and solves for x. Every term and every step stays visible for checking.

2×(+1) + x + 4×(−2) = 0 → x = +6
Worked example — sulfur in H2SO4. Hydrogen is +1 and oxygen is −2 by the standard rules, so 2 hydrogens give +2 and 4 oxygens give −8. The compound is neutral, so the sum must be 0: 2 + x − 8 = 0, which gives x = +6. That is the oxidation number of sulfur in sulfuric acid.

Going deeper

Alkali metals (Li, Na, K, Rb, Cs, Fr) are +1. Alkaline earth metals (Be, Mg, Ca, Sr, Ba, Ra) are +2. Fluorine is always −1. Oxygen is −2, except in peroxides, where it is −1; tick the peroxide box for those. Hydrogen is +1, except in metal hydrides, where it is −1; tick the metal hydride box for those. Chlorine, bromine and iodine are −1 when the compound also contains a metal. Aluminium is +3, zinc is +2 and silver is +1. Any element not covered by these rules is the one the solver solves for. If more than one element is uncovered, pick which one to solve for, or the solver will ask you to.

Sometimes the equation gives a fraction, for example iron in Fe3O4 comes out as +8/3, about +2.67. That is not a mistake: the compound contains iron in two different states at once, +2 and +3, and +8/3 is their average over the three iron atoms. The solver shows the exact fraction and the decimal, and says so, rather than rounding it away. The same care applies to the limits of the rules: unusual cases such as superoxides, where oxygen is −1/2, and complex ions with coordinate bonds are outside this solver, and the solver will not invent a value for them.

Type a compound, and this calculator works out the oxidation number of the element you pick, using the standard rules. Every known value, every term of the equation, and every step is shown, so you can check the answer by hand.

The rules, in the order the calculator uses them

An oxidation number is a bookkeeping value: the charge an atom would have if every bond in the compound were fully ionic. The calculator assigns it with the standard rules, in a fixed order, and shows the equation it solved, so you can check each step. The rules are: a free element is 0; a monatomic ion’s oxidation number equals its charge; hydrogen is usually +1; oxygen is usually −2; and the numbers in a neutral compound add to 0, while in a polyatomic ion they add to the ion’s charge.

Two exceptions sit behind toggles on the page, because they change the hydrogen and oxygen rules. In peroxides, oxygen is −1 instead of −2, because the two oxygen atoms share a bond with each other. In hydrides of metals, hydrogen is −1 instead of +1, because the metal gives the electron to hydrogen rather than the reverse. The page applies the standard rule unless you switch the exception on, which is the right default: most compounds you meet follow the standard rules, and the exceptions should be claimed deliberately, not assumed.

The method is always the same. Write the compound, assign every known element its rule value, multiply by the number of atoms of each, and solve for the unknown element so that the total equals the compound’s charge. The page shows that equation explicitly, with one term per element, so a wrong assignment is visible as a wrong term rather than hidden inside a final answer. If you can write the equation yourself, you can verify any result on the page in seconds.

Unknown elements are the only case the method cannot close. If a compound contains an element whose rule value is not fixed by the standard rules and is not the target you picked, there are two unknowns and one equation, and no unique answer exists. The page handles this by showing what it knows rather than inventing a value, which is the honest behaviour: an oxidation-number calculator that guessed at unknown elements would produce confident answers that mean nothing.

Sulfuric acid, step by step

The default compound, sulfuric acid, H2SO4, is the cleanest demonstration of the method, because it uses only the standard rules and one unknown. Hydrogen is +1 and there are two hydrogens, oxygen is −2 and there are four oxygens, and sulfur is the unknown, x. The equation is 2×(+1) + x + 4×(−2) = 0, because the compound is neutral. That simplifies to 2 + x − 8 = 0, so x = +6, and the answer is S in H2SO4, S = +6.

Read the equation the way the page presents it: one term per element, with the count built into the multiplication. The 2 in front of (+1) is the subscript of hydrogen, and the 4 in front of (−2) is the subscript of oxygen. Forgetting a subscript is the most common error in hand calculations, and the page’s term-by-term display exists to prevent exactly that: if a term is missing its multiplier, you can see it immediately, while a bare final answer hides the omission.

The +6 result is worth pausing on, because sulfur in sulfuric acid is highly oxidised, which is part of why concentrated sulfuric acid is such a strong oxidising agent. The oxidation number does not mean the sulfur atom carries a +6 charge in reality; the bonds in H2SO4 are largely covalent, and the +6 is the bookkeeping value under the fully-ionic fiction. What it does tell you is the electron accounting: relative to elemental sulfur at 0, the sulfur here has formally lost six electrons, and that accounting is what makes oxidation numbers useful for balancing redox reactions.

Try the same method on the compound before trusting the page for a new one. Pick the target element, write the known terms with their subscripts, set the sum to the compound’s charge, and solve. If your hand equation matches the page’s displayed equation term for term, the answer is verified. If it differs, the difference is in a rule assignment or a subscript, and finding it teaches more than the answer alone.

Three more, solved the same way

Potassium permanganate, KMnO4, asks for manganese. Potassium is +1, oxygen is −2 with four atoms, and manganese is x. The equation is +1 + x + 4×(−2) = 0, so 1 + x − 8 = 0, and x = +7. Manganese at +7 is the highest common oxidation state for the element, which is why permanganate is a powerful oxidiser: it has a long way to fall when it gains electrons, and that fall drives the reactions it is used for.

Iron(III) oxide, Fe2O3, asks for iron, and this time the unknown itself has a subscript. Oxygen contributes 3×(−2) = −6, iron contributes 2x, and the compound is neutral, so 2x + 3×(−2) = 0, which gives 2x = +6 and x = +3. The step people miss is dividing by the subscript: the equation solves for 2x, not x, and the oxidation number belongs to one iron atom, so the final division by 2 is essential. The page shows it explicitly as 2x = +6, which is the step to check whenever the target element appears more than once.

Potassium dichromate, K2Cr2O7, combines both complications: two known elements with subscripts and an unknown with a subscript. Potassium gives 2×(+1) = +2, oxygen gives 7×(−2) = −14, chromium gives 2x, and neutrality gives 2×(+1) + 2x + 7×(−2) = 0, so 2x = +12 and x = +6. Chromium at +6, like manganese at +7, is a strong oxidiser, and the pattern is worth noticing: the highest oxidation states cluster on compounds used as oxidising agents, because a highly oxidised atom has the most to gain by taking electrons.

All three examples use only the standard rules, and all three are solved by the same single equation. That uniformity is the point of the method: once the rules are fixed, every compound is the same kind of algebra, and the difficulty is never the mathematics but the rule assignments. Get the assignments right, respect the subscripts, divide by the target’s subscript at the end, and the answer follows.

Peroxides and hydrides: the two exceptions

Hydrogen peroxide, H2O2, is the case that breaks the standard oxygen rule, and the page handles it with unusual honesty. With the peroxide option switched on, oxygen counts as −1 instead of −2, and the term table shows hydrogen ×2 at +1 giving +2 and oxygen ×2 at peroxide −1 giving −2, for a total of 0. The page does not print a single-element headline for this case; it reports that all elements are known in H2O2 with a sum of 0, and shows the peroxide rule in the term table. That is the correct presentation, because with both elements known there is nothing to solve for, and inventing a headline would misdescribe what was computed.

The chemistry behind the exception is the oxygen-oxygen bond. In most compounds, oxygen takes electrons from the atoms it bonds with and lands at −2. In a peroxide, two oxygens bond to each other, so each oxygen only gains one electron net from its other bonds, and lands at −1. The rule is not an arbitrary adjustment: it follows from the same electron accounting, applied to a bond the standard rule does not cover. Whenever you see an O−O linkage, the peroxide rule is the one to use, and the page’s toggle is how you claim it.

Hydrides work the mirror way. In most compounds hydrogen gives up its electron and lands at +1. In a hydride of a metal, the metal is less electronegative than hydrogen, so hydrogen gains the electron and lands at −1. The page’s hydride toggle applies that rule, and like the peroxide toggle it should be switched on deliberately, only when the compound genuinely is a metal hydride. Applying the hydride rule to an ordinary compound, or the peroxide rule to an ordinary oxide, produces a consistent-looking wrong answer, because the equation will still balance with the wrong assignments.

The practical lesson is to check the structure before choosing a toggle. Peroxide or not is a fact about the compound’s bonding, not a free parameter to adjust until the answer looks nice. If you are unsure whether a compound is a peroxide, look at its structure or its name: the “per-” prefix and the O−O linkage are the markers. If you are unsure about a hydride, check whether the other element is a metal and whether hydrogen is written second in the formula. The toggles reward knowledge; they do not substitute for it.

Balancing redox equations with oxidation numbers

Oxidation numbers earn their keep when balancing redox equations, because they track electron flow. In a redox reaction, one species is oxidised, its oxidation number rises, and another is reduced, its number falls, and the electrons lost by the first must equal the electrons gained by the second. The oxidation numbers computed on this page are the ledger entries for that balancing: find how much each atom’s number changes, multiply by the number of such atoms, and choose coefficients so the total rise equals the total fall.

The probed examples supply the ledger entries. Sulfur at +6 in sulfuric acid, manganese at +7 in permanganate, iron at +3 in iron(III) oxide, and chromium at +6 in dichromate are all highly oxidised states, which means each of those atoms has far to fall when reduced. A permanganate ion reduced to manganese at +2 falls by 5 per manganese atom, so each mole of permanganate accepts 5 moles of electrons. That single fact, derived from the oxidation numbers, determines the stoichiometric ratio against any reducing agent whose rise per atom is known, and the rest of balancing is arithmetic built on it.

The method proceeds in order. Assign oxidation numbers to every atom on both sides, using the rules on this page, including the peroxide and hydride exceptions where they apply. Identify which atoms change and by how much, per atom and in total. Balance the electron change by choosing coefficients for the oxidising and reducing agents in the ratio that equalises total rise and total fall. Then balance the remaining atoms, oxygen and hydrogen last, with water and protons or hydroxide as the medium requires. The oxidation-number step is the first and most diagnostic: if the numbers are wrong, no coefficient choice can rescue the equation.

Common balancing errors trace back to the same mistakes as oxidation-number errors: forgotten subscripts, wrong exception toggles, and undivided target subscripts. A dichromate equation balanced with chromium at +12 instead of +6, because the 2x = +12 step was never divided by 2, will demand twice as many electrons as the reaction actually transfers, and the resulting coefficients will be wrong by a factor that no later step corrects. The page’s explicit 2x = +12 display exists to prevent exactly that error, and checking the division is the cheapest verification in redox work.

Finally, remember that oxidation numbers balance electrons, not atoms. A redox equation balanced for electrons but not for atoms is half done, and the remaining atom balance, particularly oxygen and hydrogen, must still be completed. Conversely, an equation balanced for atoms but not for electrons is not a valid redox equation at all, whatever its appearance. Both balances must hold, and the oxidation-number method guarantees the electron balance while the atom balance is finished by inspection. Together they produce equations that conserve both matter and charge, which is what a chemical equation must do.

When the page cannot decide, and why that is correct

Some inputs have no unique answer, and the page’s refusal to invent one is a feature. Two unknowns with one equation cannot be solved, and a compound with two elements whose oxidation numbers are both unfixed is exactly that case. The page shows what it knows, the terms it can assign, and the sum, rather than guessing at the missing value. A calculator that guessed would be worse than useless for study, because a guessed oxidation number looks exactly like a computed one and teaches a wrong value with full confidence.

Charged compounds add one more input to get right: the overall charge. For a neutral compound the equation sums to 0, but for a polyatomic ion it sums to the ion’s charge, and entering the wrong charge shifts the answer by exactly that error. If a result looks off by a small integer, the charge is the first suspect, ahead of the rule assignments. The page provides a charge field for this reason, and leaving it at the default when the species is actually an ion is the charged-compound version of forgetting a subscript.

Target selection matters too. The page solves for the element you pick, and picking a different target solves a different equation from the same compound. In H2SO4, picking sulfur gives +6; picking hydrogen would be trivial, since hydrogen’s value is fixed by rule, and picking oxygen the same. The interesting target is the element whose value is not fixed by a rule, usually the central atom or the transition metal, and the page’s target selector exists so you can aim the calculation at the unknown rather than at a known value.

When the page reports a result you did not expect, debug in this order: subscripts, then rule assignments, then toggles, then charge, then target. Subscripts first, because a missing multiplier is the most common error and the easiest to see in the term table. Rules second, because an exception applied to the wrong compound balances just as neatly as the right one. Toggles and charge third, because they change the equation’s constants. Target last, because solving for the wrong element gives a correct answer to a question you did not ask.

Oxidation numbers are bookkeeping, not charges

The deepest misunderstanding about oxidation numbers is treating them as real charges. In H2SO4, sulfur’s +6 does not mean a sulfur atom sits in the molecule with a +6 charge, waiting to be measured. The bonds are largely covalent, electrons are shared rather than transferred, and no experiment would find a +6 ion inside sulfuric acid. The +6 is the result of a fiction: pretend every bond is fully ionic, give the shared electrons to the more electronegative atom, and count what remains. The fiction is useful precisely because it is consistent, not because it is literal.

What the fiction buys is electron accounting for redox reactions. When sulfur goes from 0 in elemental form to +6 in sulfuric acid, six electrons have formally been lost, regardless of the real distribution of charge. When manganese goes from +7 in permanganate to +2 in a product, five electrons have formally been gained. Balancing a redox equation is balancing those formal gains and losses, and the oxidation numbers are the ledger entries. A ledger does not describe the coins in the till; it describes the flow, and the flow is what balancing needs.

This distinction also explains why oxidation numbers can be fractional in some contexts and why they sometimes disagree with other charge schemes. Formal charges, computed from Lewis structures, distribute electrons differently and answer a different question. Partial charges from measurements describe real electron density, which is a third thing again. Oxidation numbers, formal charges and partial charges are three bookkeeping systems for three purposes, and mixing them produces confusion that no single system deserves. Use oxidation numbers for redox accounting, formal charges for structure stability, and measured charges for reactivity, and keep the ledgers separate.

For study, the habit to build is checking the equation, not memorising answers. Sulfur +6, manganese +7, iron +3, chromium +6 are worth knowing as examples, but the transferable skill is writing the term equation for an unseen compound and solving it. The page shows its working for that reason: every result is a worked example of the method, and the method, not the answer, is what generalises to the next compound.

Oxidation numbers in organic chemistry

In organic molecules, oxidation numbers are assigned by the same rules, with a useful shortcut: each bond to a more electronegative atom raises the carbon number by 1, each bond to a less electronegative atom lowers it by 1, and bonds to the same element count zero. Methane, CH₄, has carbon at −4, because four bonds to less electronegative hydrogen each lower it by 1. Carbon dioxide, CO₂, has carbon at +4, because two double bonds to more electronegative oxygen raise it by 4. Methanol, CH₃OH, has carbon at −2: three bonds to hydrogen lower it by 3, one bond to oxygen raises it by 1.

This shortcut is the same rule set in disguise, and it makes tracking oxidation in organic reactions, such as oxidations of alcohols to aldehydes to acids, a matter of counting bonds rather than solving simultaneous equations.

Half-equations: the method that never confuses

Half-equations split a redox reaction into an oxidation half and a reduction half, balance atoms and charge in each half separately, then combine them so electrons cancel. The method is longer than the oxidation-number shortcut but it never confuses oxidising and reducing agents, because each half shows explicitly which species gains and which loses electrons.

In acidic conditions, balance oxygen with water, hydrogen with hydrogen ions, and charge with electrons, in that order. In alkaline conditions, the same steps apply with hydroxide added to neutralise hydrogen ions at the end. A student who can write half-equations can balance any redox reaction, however complicated the oxidation numbers look.

Redox in everyday life

Redox is not confined to exams. Rusting is iron oxidised by oxygen in the presence of water, which is why rust prevention is about blocking oxygen, water, or both. Batteries are controlled redox: a spontaneous redox reaction whose electron flow is routed through a circuit to do work, and recharging reverses it. Bleach oxidises stains, breaking coloured molecules into colourless ones, and antioxidants in food are reducing agents that are themselves oxidised in place of the food they protect.

Recognising redox in everyday contexts makes the bookkeeping meaningful: oxidation numbers are not an abstract game but the accounting system for the electron transfers that power batteries, corrode bridges, and preserve food.

Frequently asked questions

What is an oxidation number in simple words?

An oxidation number is a bookkeeping number assigned to each atom in a compound, showing how many electrons that atom has gained or lost compared with its neutral state. The numbers are chosen so that they add up to the total charge of the compound or ion.

How do you find the oxidation number of sulfur in H2SO4?

Let sulfur be x. Hydrogen is +1 and oxygen is -2, so 2 times (+1) plus x plus 4 times (-2) equals 0. That is 2 plus x minus 8 equals 0, so x equals +6. Sulfur in H2SO4 is +6.

What is the oxidation number of manganese in KMnO4?

Manganese in KMnO4 is +7. Potassium is +1 and each oxygen is -2, so +1 plus x plus 4 times (-2) equals 0, which gives x equals +7.

Why is oxygen usually -2 but -1 in peroxides?

In most compounds oxygen takes two electrons and is -2. In a peroxide the two oxygen atoms share a single bond with each other, so each oxygen only takes one electron and is -1. Hydrogen peroxide, H2O2, is the classic example, and this calculator has a peroxide tick box for it.

What does a non whole number answer mean?

A fraction such as +8/3 for iron in Fe3O4 means the compound contains that element in two different states at once, and the fraction is the average over all its atoms. Fe3O4 contains iron as +2 and +3, averaging to +8/3 across three iron atoms.

Why must the oxidation numbers add up to the charge?

Because oxidation numbers track electron bookkeeping for the whole particle. A neutral compound has no net charge, so its numbers must sum to 0. An ion with a charge of -2, such as sulfate, must have numbers summing to -2. If your sum does not match, either a rule or the formula is wrong.

Why is oxygen usually −2 but −1 in peroxides?

Because in a peroxide the two oxygen atoms bond to each other, so each oxygen only gains one electron net from its other bonds. Switch the peroxide option on, and the page applies −1 in the term table, as it does for H2O2, where oxygen ×2 at −1 balances hydrogen ×2 at +1.

Can an oxidation number be zero?

Yes. A free element has oxidation number 0, because there is no more electronegative partner to take its electrons. An element in its pure form is the zero point from which oxidation and reduction are measured.

Why does the page sometimes not name a single element?

Because there is nothing to solve for. In H2O2 with the peroxide option on, both elements are known, so the page reports that all elements are known with a sum of 0, and shows the peroxide rule in the term table, instead of inventing a headline.

Does a positive oxidation number mean the atom is positively charged?

No. Oxidation numbers are bookkeeping values under the fiction that every bond is fully ionic. They track formal electron gains and losses for balancing redox reactions; they are not measured charges, and in covalent compounds the real charge distribution is quite different.

How do oxidation numbers work in organic molecules?

By a bond shortcut: each bond to a more electronegative atom raises carbon by 1, each bond to a less electronegative atom lowers it by 1. Methane carbon is −4, carbon dioxide carbon is +4.

What are half-equations?

A redox reaction split into oxidation and reduction halves, balanced separately for atoms and charge, then combined so electrons cancel. They never confuse which agent is which.

Is rusting a redox reaction?

Yes: iron is oxidised by oxygen in the presence of water. Batteries, bleaching, and antioxidants are everyday redox too.

↑

Oxidation Numbers Explained

Rules in priority order and the hard worked examples.