Thiosulfate ion is produced by the reaction of sulfite ion with elemental sulfur, and by incomplete oxidation of sulfides (e.g. pyrite oxidation). Sodium thiosulfate can be formed by disproportionation of sulfur dissolving in sodium hydroxide (similar to phosphorus).