White sugar does not spoil technically. Granulated sugar is recommended to be thrown away after two years. However, the chances are high that it will still serve its purpose long after that.