Half an Onionand other halves in a bag

Leftovers

How Long Do Cooked Onions Last in the Fridge?

Three to four days in the fridge, a few months frozen, and cool them fast.

Short answer

Cooked onions, including sautéed and caramelized onions, keep 3 to 4 days in a covered container in the fridge at 40°F or below, and about 3 to 4 months at their best in the freezer.

Key takeaways

  • Refrigerate cooked onions within 2 hours of cooking, 1 hour on a very hot day.
  • Plan on 3 to 4 days in the fridge, the same as other cooked leftovers.
  • Freeze caramelized onions in small portions; they keep their best quality for about 3 to 4 months.
  • Cooked onions stored in oil need extra care: keep them cold and use them within a few days.
  • Sour smell, slime or mold means throw them out; reheating won't fix spoiled food.

Cooked onions last 3 to 4 days in the fridge. That covers sautéed onions, caramelized onions, grilled onions and dishes where onion is a main ingredient. USDA gives the same window for cooked leftovers in general, and onions get no special exception. If you won't use them in that time, freeze them.

The rest comes down to cooling them quickly and storing them in a way that keeps the smell in the container.

How long do cooked onions last in the fridge?

Cooked onions keep 3 to 4 days in a covered container in a fridge set to 40°F or below.

Count from the day you cooked them, not the day you moved them to a smaller container. A fridge that runs warm shortens that window, so check yours with a fridge thermometer if you aren't sure.

Cooked onion Fridge (40°F or below) Freezer (0°F)
Sautéed or fried onions 3 to 4 days Best within 3 to 4 months
Caramelized onions 3 to 4 days Best within 3 to 4 months
Onion soup or a stew with onion 3 to 4 days Best within 3 to 4 months
Onions cooked and kept under oil Use within a few days Freeze for longer storage
Raw cut onion, for comparison About 7 days Best within about 8 months

Freezer times are about quality. FoodSafety.gov notes that food kept frozen at 0°F stays safe, but flavor and texture fade over months.

Raw cut onion keeps longer than cooked onion. If that's what you have, see how to store half an onion.

How fast do you need to refrigerate cooked onions?

Get them into the fridge within 2 hours of cooking, or within 1 hour if the room is above 90°F.

USDA's two-hour rule applies to every cooked food. Bacteria grow fastest between 40°F and 140°F, and a pan of onions cooling on the stove sits in that range for a long time. You don't need to wait until they're cold. Warm food can go straight into the fridge.

A big batch cools faster if you spread it out. Divide caramelized onions into shallow containers instead of one deep tub, and they'll chill evenly.

What's the best way to store cooked onions?

Use a shallow, airtight container, fill it close to the top, and keep it away from foods that pick up smells.

  1. Let the steam settle for a few minutes so you don't trap a lot of condensation.
  2. Spoon the onions into a shallow glass or plastic container with a tight lid.
  3. Label it with the date. Three days later you won't remember.
  4. Put it on a shelf, not in the door, where the temperature changes each time you open the fridge.

Plastic containers tend to hang on to onion smell, so a glass container is easier to get clean afterward. If your butter or milk has ever tasted faintly of onion, a better lid is the fix. Our guide to onion smell in the fridge has more on that.

Can you freeze cooked onions?

Yes, cooked onions freeze very well, and small portions make them easy to use later.

Caramelized onions are the best candidate, since they take so long to make. Cool them, then freeze them in an ice cube tray or in tablespoon-size mounds on a lined tray. Once they're solid, move them to a freezer bag, press out the air and label it. USDA puts the best-quality window for frozen leftovers at about 3 to 4 months.

Use them straight from the freezer in soups, sauces, gravies, omelets, pasta and burgers. A cube melts into a hot pan in a minute or two. For raw onions, the steps are a little different, and our guide to freezing onions covers them.

Is it safe to store cooked onions in oil?

Keep cooked onions packed in oil in the fridge and use them within a few days, because oil seals out air and that low-oxygen setting can support botulism bacteria.

Some people make a batch of caramelized onions and cover them with oil to keep them moist. Oregon State University Extension explains that vegetables stored in oil create an oxygen-free environment, which is the setting botulism bacteria need. Its guidance for homemade vegetable and herb oils is to refrigerate them and use them within 4 days, or freeze them. Never keep onions in oil at room temperature.

How can you tell if cooked onions have gone bad?

Throw them out if they smell sour, look slimy, show any mold, or are older than 4 days.

Spoiled cooked onions usually smell sour or fermented rather than sweet. The texture turns slick and the liquid in the container may look cloudy. Fuzzy spots of any color mean the whole container goes, not just the top layer.

The harder part is that food can make you sick without looking or smelling off. That's why the 3-to-4-day rule matters more than a sniff test. When in doubt, throw it out.

Short answers

Can I eat cooked onions after 5 days?
USDA guidance for cooked leftovers is 3 to 4 days in the fridge, so day five is past the recommended window. Food can look and smell fine and still carry bacteria that cause illness, so the safer choice is to toss it or freeze it before day four.
Do caramelized onions last longer than sautéed onions?
Not in the fridge. Long cooking concentrates the sugars, but it doesn't make onions shelf-stable. Treat caramelized onions like any cooked leftover: 3 to 4 days refrigerated, or freeze them.
Can I keep cooked onions at room temperature?
Only for up to 2 hours, or 1 hour above 90°F. After that, bacteria can grow to unsafe levels, so refrigerate them once they stop steaming.
Do I need to reheat cooked onions?
If you're adding them to a hot dish, heat the dish until it reaches 165°F. Cold caramelized onions straight from the fridge on a sandwich are fine as long as they were stored properly and are within 3 to 4 days.

Sources