Sweet potatoes are versatile, flavor-packed nutritional powerhouses, so we always try to keep them on hand. Since they last so long, however, it’s easy to forget about them until they’re shriveled, soft, and even moldy. So while we definitely recommend keeping a steady supply of sweets for all your roasting, baking, and mashing needs, check in once in a while to make sure they haven’t gone bad.

For the best tips on sweeter, longer-lasting spuds, I spoke to Susan Choung, senior food editor at Good Housekeeping. From how to prepare sweet potatoes for storage to how long they'll stay fresh, here are Choung’s top tips.

Keep them cool, dark, and dry

Stored in a cool, dark, dry place, sweet potatoes can last several weeks, according to the University of Nebraska-Lincoln (UNL) Extension. Wherever you store them, just make sure you don't forget about them: “I try to store sweet potatoes where I can see them, not tucked behind a pile of pantry staples,” says Choung. Additionally, “A quick check every few days makes it easier to catch one that’s starting to soften before it affects the rest.”

Skip the refrigerator

“Sweet potatoes are one of those ingredients that do better outside the fridge,” says Choung. Sweet potatoes will develop a hard center and unpleasant taste when stored in the fridge, says the United States Sweet Potato Council. “I keep them in a basket in a cool, dark spot that stays dry—away from the oven or a sunny window,” Choung says. This is because prolonged warmth can encourage sprouting and moisture loss, according to Penn State Extension.

Give sweet potatoes room to breathe

Like with many types of produce, “moisture is the enemy when storing sweet potatoes,” Choung says. For that reason, “I leave them unwashed until I’m ready to cook, then give them plenty of airflow so they stay dry and last longer.”

Sweet potatoes also benefit from plenty of ventilation: This prevents moisture buildup and delays spoilage. Store them in a basket or other ventilated container instead of a sealed plastic bag or container.

Keep them away from apples and bananas

The ethylene gas produced by fruits such as apples, pears, and ripe bananas can speed up sweet potatoes’ spoilage. Store them separately to help them stay fresh longer.

How long do sweet potatoes last?

Stored properly—i.e., in a well-ventilated container in a cool, dry spot away from ethylene-producing produce—sweet potatoes can last up to two weeks, says the United States Sweet Potato Council. However, “I use the timeline as a guide, not a guarantee,” Choung says. “The storage conditions and the sweet potatoes themselves make a difference, so check for soft spots, shriveling, or mold before cooking.”

The best way to store cut or cooked sweet potatoes

Cooked too many sweet potatoes, or want to prep some in advance? Easy: just refrigerate them, says Choung. “Leftovers are easy to toss into a breakfast hash, stir into soup, or freeze for another day. They’re also amazing pureed and used instead of canned puree for this cozy baked pasta with hazelnut brown butter.” Use cooked, refrigerated sweet potatoes within four or five days, according to the Mississippi State University Extension.

What about cut sweet potatoes that are still raw? “Put the pieces in a container, submerge them in water, and refrigerate covered,” Choung advises. “For the best quality, use them within 24 hours. Drain and pat dry before cooking.”

If you’re not sure you’ll use them up quickly, you can try freezing them: Frozen, cooked sweet potatoes will last up to a year, according to the United States Sweet Potato Council.