Oxidation number of Sulfur in SO3

The oxidation number of sulfur in SO3 is +6. In this compound, oxygen has an oxidation number of -2. Since SO3 is a neutral compound, the sum of the oxidation numbers of sulfur and oxygen must be zero. Thus, sulfur must have an oxidation number of +6 to balance out the -6 from the three oxygen atoms.