You find an old bag of sugar at the back of the pantry with a “best by” date from two years ago. Is it still okay to bake with? In almost every case, yes. Sugar is one of the few foods that can last basically forever, but only if moisture, bugs, and strong odors stay out of it.
Quick answer: Sugar does not really expire. White granulated sugar and powdered sugar keep indefinitely when stored airtight and dry, and brown sugar stays safe indefinitely too but is best within about 18 months to 2 years before it dries out and hardens. The date on the bag is a quality date, not a safety date.
Why Sugar Lasts So Long
Bacteria and mold need water to grow. Sugar is extremely dry, and in high concentrations it actually pulls water out of microbes. That is the same reason sugar is used to preserve jams and jellies. As long as your sugar stays dry, there is nothing in it that can spoil.

Shelf Life of Different Types of Sugar
| Type of sugar | Best quality | Safe to use | Main problem over time |
|---|---|---|---|
| White granulated sugar | About 2 years | Indefinitely | Clumping from humidity |
| Powdered (confectioners’) sugar | About 2 years | Indefinitely | Lumps; absorbs odors |
| Brown sugar (light or dark) | 18 months – 2 years | Indefinitely | Dries out and turns rock hard |
| Raw, turbinado, or demerara sugar | About 2 years | Indefinitely | Clumping |
| Coconut sugar | About 2 years | Indefinitely | Clumping |
| Sugar cubes | About 2 years | Indefinitely | Absorbs odors |
“Best quality” means the sugar will look, pour, and taste its best during that time. After that, it is still safe if it has been stored properly.
What Does “Best By” Mean on Sugar?
In the US, food date labels (other than on infant formula) are generally not required by federal law and are about quality, not safety. Manufacturers often print a best-by date of about two years on sugar so they can guarantee texture and flow. You can safely use sugar well past this date.
How to Tell If Sugar Has Gone Bad
Sugar does not “go bad” the way milk or bread does, but it can become contaminated. Throw it out if you see:
- Bugs or larvae, such as ants, pantry moths, or weevils.
- Mold or dark wet spots, which mean water got in.
- An off smell. Sugar absorbs odors from things like spices, onions, or cleaning products, which can affect your baking.
- Strange colors or foreign debris in the bag.
Clumps are not a problem. Hard lumps just mean the sugar picked up some humidity. Break them up and use it as normal.
How to Store Sugar So It Lasts Forever
- Move it to an airtight container after opening. Paper bags let in moisture, odors, and ants.
- Keep it in a cool, dry pantry, away from the stove, dishwasher, and sink.
- Do not refrigerate white sugar. The fridge is humid and full of smells, which leads to clumps and off flavors.
- Use a dry spoon or scoop every time. A wet spoon is the number-one cause of sugar clumps.
- Store brown sugar with a moisture source, like a terracotta sugar saver, to keep it soft.

How to Soften Hard Brown Sugar
Brown sugar is white sugar coated with molasses. When that moisture evaporates, it turns into a brick. It is still perfectly safe, and you can fix it in minutes:
- Microwave method (fastest): Put the sugar in a microwave-safe bowl, cover it with a damp paper towel, and heat in 20-second bursts until soft.
- Bread method (overnight): Add a slice of fresh bread to the container, seal it, and wait 8–24 hours. The sugar pulls moisture from the bread.
- Apple slice method: Works like the bread, but remove the apple after a day or two.
- Oven method: Spread it on a baking sheet and warm it at 250°F for about 5 minutes, then use it right away.
Out of brown sugar entirely? You can make your own by mixing 1 cup of white sugar with 1 tablespoon of molasses. Learn how long that jar will keep in our guide to whether molasses goes bad.
Does Sugar Go Bad in Other Forms?
- Molasses keeps for years unopened and 1–2 years after opening. Read our molasses shelf life guide.
- Simple syrup (sugar dissolved in water) lasts about 1 month in the fridge because it contains water.
- Honey lasts indefinitely, though it may crystallize. Gently warm it to make it liquid again.
- Maple syrup should be refrigerated after opening and lasts about a year.
Sugar is not the only pantry staple with a long life. See how rice and chia seeds hold up over time.
Frequently Asked Questions
Can you use sugar after the expiration date?
Yes. White, powdered, and brown sugar are safe to use long after the best-by date as long as they have been kept dry and free of bugs and mold.
Does powdered sugar expire?
Powdered sugar keeps indefinitely if stored airtight and dry. It contains a little cornstarch to prevent caking, but that does not make it spoil. Sift it if it gets lumpy.
Does brown sugar go bad?
Brown sugar does not spoil, but it hardens as it loses moisture. Soften it with a damp paper towel in the microwave or a slice of bread in the container.
Should sugar be stored in the fridge?
No. The fridge is humid and smelly, which causes clumping and off flavors. A cool, dry pantry in an airtight container is best.
Why does my sugar have bugs in it?
Pantry pests and ants can get into unsealed bags. Throw out infested sugar, clean the shelf, and store new sugar in a container with a tight lid.