Powdered sugar (or confectioner's sugar) can last indefinitely if stored in an airtight container in a cool, dry place away from heat and any strong smells. If your powdered sugar shows signs of moisture like moist clumps, contains pests or evidence of contamination, be safe and throw it out.