It's not necessarily oxidation state. To determine spectator ions:
1) Write out the full ionic equation, include the state materials are in if given (so, gas, solid, liquid, aqueous, etc).
2) Cancel any "pieces" that are the same on both sides. This includes oxidation states AND physical states.
So, for example, in the reaction:
2KCl
(aq) + Pb(NO
3)
2(aq) 2KNO
3(aq) + PbCl
2(s)The full ionic equation is:
2K
+(aq) + 2Cl
-(aq) + Pb
2+(aq) + 2NO
3-(aq) 2K
+(aq) + 2NO
3-(aq) + 2PbCl
2(s)So we see here that K
+(aq) is on both sides, as is NO
3-(aq). However, on the left, we have Cl
-(aq), but we don't have a Cl
-(aq) on the right, even though in both cases, Cl is in a -1 oxidation state. However, on the right, Cl is part of a solid (as PbCl
2 is not soluble in water, which is assumed since we say aqueous).
So! If we were to write out the full ionic equation of your reaction, we have (*NOTE* I'm going to assume that I
2 forms a solid, but it might actually not...)
Cl
2(g) + 2K
-(aq) + 2I
-(aq) I
2(s) + 2K
-(aq) + 2Cl
-(aq)We see that while Cl and I change oxidation states which make them candidates for being included, you can also look and verify since there is no Cl
2(g) on the right, and there is no Cl
-(aq) on the left, etc. This is the complete thorough way to check for spectator ions.