Almost everyone has stood in front of an open refrigerator holding a container of something and wondering how old it really is. Maybe it is the chili from last weekend, half a rotisserie chicken, or a carton of milk that is a day past the printed date. The answer matters, because a cold fridge slows bacterial growth but does not stop it, and the bugs that make people sick do not always announce themselves with a bad smell or a strange look.

This guide gives you real numbers, based on the food safety guidance published by the USDA and FoodSafety.gov, along with the habits that make those numbers work in a real kitchen. You will find timeframes for leftovers, raw meat, eggs, dairy, deli foods, condiments and produce, plus how to set up your fridge, how to cool hot food quickly, and when to stop debating and toss it. Think of it as the kitchen cheat sheet I wish I had when I started cooking for a household.

Key takeaways

  • Keep your refrigerator at or below 40°F (4°C) and your freezer at 0°F (-18°C). A cheap appliance thermometer is the only way to know for sure.
  • Refrigerate perishable food within 2 hours of cooking or buying, or within 1 hour if the room is hotter than 90°F (32°C).
  • Cooked leftovers are best eaten within 3 to 4 days. Raw poultry and ground meat should be cooked or frozen within 1 to 2 days.
  • Raw steaks, chops and roasts keep 3 to 5 days in the fridge. Eggs in the shell keep 3 to 5 weeks.
  • Date labels on most foods describe quality, not safety. Infant formula is the main exception, and you should never use it past its date.
  • Smelling food does not tell you whether it is safe. Many dangerous bacteria produce no odor at all.
  • When in doubt, throw it out. A few dollars of food is cheaper than a few days of food poisoning.

Why the fridge buys you time but not forever

Bacteria multiply fastest between 40°F and 140°F (4°C to 60°C), a range food safety people call the danger zone. In a warm kitchen, some bacteria can double in as little as twenty minutes. Chilling food to 40°F or below slows that growth dramatically, which is why refrigeration is such a powerful tool. But slowing is not stopping. A few types of bacteria, including Listeria, can keep growing at refrigerator temperatures, just far more slowly.

That is why every refrigerated food has a limit. Over several days, even slow growth adds up, and food that was perfectly safe on Monday can carry a worrying bacterial load by the following Monday. The timeframes in this guide are conservative on purpose. They are designed to keep you well inside the safe window, not to squeeze out one last day.

Spoilage bacteria versus the ones that make you sick

There are two broad groups of microbes to think about. Spoilage organisms are the ones that make food slimy, sour or musty. They are annoying but usually not dangerous, and they give you a visible or smellable warning. Pathogens, such as Salmonella, E. coli, Listeria and Campylobacter, are the ones that cause foodborne illness, and they can be present in large numbers without changing how food looks, smells or tastes.

This is the single most important reason not to rely on your nose. A container of leftover rice can smell perfectly fine and still be unsafe. Treat the clock and the thermometer as your guides, and treat your senses as a backup that can only tell you when food is definitely bad, never when it is definitely good.

Setting up your fridge so food actually lasts

The best storage times in the world mean little if your refrigerator runs warm. Many home fridges drift above 40°F, especially ones that are packed full, opened constantly or sitting near a stove or sunny window.

Check the temperature

Buy an inexpensive appliance thermometer and place it on a middle shelf, toward the front, where you can read it easily. Check it after a day or two, since the dial inside most refrigerators is a rough guide at best. If the reading is above 40°F (4°C), turn the control colder and recheck the next day. Most households find the sweet spot is a few degrees under the limit, around 37°F (3°C). Do the same for the freezer, aiming for 0°F (-18°C).

Know the zones

Your fridge is not the same temperature everywhere. The door is the warmest spot because it swings open and shut, and the back of the lower shelves tends to be the coldest. Here is a simple way to use that to your advantage.

Location Best for Why
Top shelves Leftovers, drinks, ready-to-eat foods, yogurt Steady, moderate temperature and easy to see so food gets eaten
Middle shelves Eggs in their carton, dairy, deli items Most consistent temperature in the unit
Bottom shelf Raw meat, poultry and fish on a tray or in a sealed container Coldest zone, and drips cannot reach food below
Crisper drawers Fruits and vegetables, kept in separate drawers if possible Higher humidity slows wilting
Door Condiments, jams, pickles Warmest spot, fine for foods with plenty of acid, salt or sugar

Eggs belong on a shelf in their carton, not in the door rack. The carton protects them from absorbing odors and keeps the date handy, and the shelf is colder and steadier than the door. Milk likewise should live on a shelf, not in the door.

Do not overstuff it

Cold air needs room to move around your food. A fridge crammed full cools unevenly, and warm pockets develop where air cannot reach. On the other hand, a nearly empty fridge recovers slowly after the door opens. Aim for comfortably full, with a little space between containers.

The 2-hour rule and how to cool food fast

Perishable food should not sit out for more than 2 hours. If the temperature around the food is above 90°F (32°C), such as at a summer picnic or a hot car, the limit drops to 1 hour. After that, the food has spent too long in the danger zone, and reheating will not fix it, because some bacteria make toxins that survive cooking.

The clock starts when the food leaves the oven, the stove or the grocery store cooler, and it adds up across the whole time. If a casserole sat out for an hour and a half at dinner and then another forty minutes while you cleaned up, you are past the limit.

Cooling big batches

A giant pot of soup or chili holds heat in its center for hours, even in the fridge. Putting a hot stockpot straight on a shelf can warm everything around it, too. Instead, divide large batches into shallow containers, about 2 inches deep or less, so the food cools through quickly. Leave the lids slightly ajar for the first half hour if you like, then seal them once the steam has stopped.

  • Cut large roasts and whole chickens into smaller pieces, or carve off the meat, before refrigerating.
  • Stir soups and stews set in an ice bath in the sink to speed cooling, then portion them out.
  • Do not wait for food to cool completely on the counter. Get it into the fridge within the 2-hour window even if it is still a little warm, as long as it is divided into shallow containers.

Leftovers and cooked foods

The general rule from the USDA is that cooked leftovers stay safe in the refrigerator for 3 to 4 days. This applies to cooked meat, poultry, fish, casseroles, soups, stews, cooked pasta dishes and most prepared meals. Day 4 is the outer edge, not a target, so if you know you will not get to something by Thursday, freeze it on Monday.

Cooked food timeframes

Food Refrigerator at 40°F (4°C) or below
Cooked meat and poultry 3 to 4 days
Cooked fish and shellfish 3 to 4 days
Soups and stews 3 to 4 days
Casseroles and leftover pizza 3 to 4 days
Cooked rice and pasta 3 to 4 days (see the rice note below)
Cooked vegetables 3 to 4 days
Hard-boiled eggs, in or out of the shell 1 week
Gravy and sauces with meat or dairy 3 to 4 days

A note on rice

Cooked rice and pasta deserve special mention. Uncooked rice can carry spores of a bacterium called Bacillus cereus. The spores survive cooking, and if the rice sits warm on the counter, they can grow and produce a toxin that reheating does not destroy. Cool rice quickly, spread it in a shallow container, refrigerate it within an hour or so, and eat it within a few days. If you cook a big pot for meal prep, portion it right away rather than letting the whole pot cool slowly.

Label everything

The most effective leftover habit I know costs about two cents. Put a strip of masking tape on each container and write the date you cooked it. Memory is unreliable, and the container of mystery stew is the one that ends up in the back of the fridge for two weeks. Pushing older items to the front and keeping a clear shelf for leftovers makes them far more likely to be eaten.

Reheating

Reheat leftovers until they reach 165°F (74°C) all the way through. Use a food thermometer, since microwaves heat unevenly and leave cold spots. Stir and rotate food while it heats, cover it to hold in steam, and let it stand a minute or two afterward. Reheat only the portion you plan to eat instead of warming a whole dish repeatedly.

Raw meat, poultry and fish

Raw animal proteins are where the clock runs shortest, because they start out carrying more bacteria than cooked food does. The rule of thumb is simple: if you do not plan to cook it within a day or two, freeze it the day you bring it home.

Raw item Refrigerator at 40°F (4°C) or below
Poultry, whole or in pieces 1 to 2 days
Ground meat (beef, pork, turkey, lamb) 1 to 2 days
Raw sausage (pork, beef, poultry) 1 to 2 days
Fresh fish and shellfish 1 to 2 days
Steaks, chops and roasts (beef, pork, lamb, veal) 3 to 5 days
Variety meats (liver, kidney) 1 to 2 days

Prevent cross-contamination

Keep raw meat, poultry and seafood on the bottom shelf, on a rimmed plate or tray or in a sealed container, so juices cannot drip onto produce or leftovers. Keep it in its original packaging or wrap it well, and do not wash raw poultry or meat. Rinsing splashes bacteria around your sink and counters, and it does not make the meat safer. Cooking to the right internal temperature is what kills bacteria.

Cured, smoked and packaged meats

Bacon keeps about a week once opened. Hot dogs last about a week after opening, and up to two weeks in an unopened package. Packaged lunch meat keeps about two weeks unopened and 3 to 5 days after opening. Fully cooked ham keeps 3 to 5 days once cut or opened. Because Listeria can grow in the cold, ready-to-eat deli meats are worth treating with extra care, especially for the groups mentioned in the vulnerable-groups section below.

Eggs and dairy

Eggs

Eggs in the shell keep for 3 to 5 weeks in the refrigerator, counted from the day you bring them home, not the day they were laid. Store them in their original carton on an inside shelf. In the US, commercially sold eggs are washed and must be refrigerated, so they should not live on the counter. Hard-boiled eggs keep for a week. Raw egg whites and yolks that have been separated or cracked into a container keep 2 to 4 days. Dishes made with eggs, such as quiche, should be treated like other leftovers, at 3 to 4 days.

Eggs are an area where food safety should not be left to chance. Salmonella can be present inside a seemingly perfect egg. Cook eggs until the whites and yolks are firm, and be careful with raw-egg recipes such as homemade mayonnaise, mousse or some dressings. If you need raw or lightly cooked egg for anyone in a high-risk group, pasteurized eggs are a safer choice.

Milk, yogurt and cheese

Food Typical fridge time
Milk, opened About 1 week
Cream and half-and-half, opened 3 to 4 days to 1 week, depending on the product
Yogurt 1 to 2 weeks
Sour cream and cottage cheese, opened 1 to 2 weeks
Butter 1 to 3 months
Hard cheese, opened 3 to 4 weeks
Soft cheese, opened About 1 week

Hard cheeses such as cheddar and Parmesan are more forgiving because they contain less moisture. If mold appears on a hard cheese, the USDA says you can cut off at least an inch around and below the moldy spot, keeping the knife out of the mold, and eat the rest. Soft cheeses, shredded cheese, sliced cheese, cottage cheese, yogurt and sour cream should be discarded if they get moldy, because mold can send threads deep into soft food.

Pay particular attention to soft cheeses made from unpasteurized milk, which carry a higher risk of Listeria. Anyone pregnant, immune-compromised, elderly or feeding young children should look for the word pasteurized on the label.

Deli foods, takeout and prepared salads

Store-bought prepared foods carry a clock too, and it starts the moment they were made, not when you bring them home. Deli salads such as chicken, egg, tuna, pasta and potato salad keep 3 to 5 days. Takeout leftovers follow the same 3 to 4 day rule as home-cooked food, and the 2-hour window starts when the food was packed. If it sat in a delivery bag or a car for a while, count that time.

A grocery store rotisserie chicken is best refrigerated within 2 hours of purchase. Pull the meat off the bones, store it in a shallow container, and eat it within 3 to 4 days. The bones make good stock, which also keeps 3 to 4 days or can be frozen.

Raw sprouts, pre-cut melon and bagged salad

Some ready-to-eat foods are a little riskier than others because they are eaten raw and handled a lot. Raw sprouts are one example, and cut melon is another, since the rind can carry bacteria that transfer to the flesh when it is sliced. Keep cut melon cold, covered and eat it within a few days. Bagged salads and cut vegetables should be used by their date and kept at 40°F (4°C) or below. Wash whole melons before cutting them.

Condiments, sauces and pantry staples that move to the fridge

Many opened jars need refrigeration, and the label usually says so. Acidic, salty and sugary foods last longer, but they are not immortal. The times below are quality guidance, so check the label on each product too.

Item, once opened Approximate fridge time
Mayonnaise (commercial) About 2 months
Ketchup About 6 months
Mustard Up to a year
Salad dressing (bottled) 1 to 3 months
Jarred pasta sauce 5 to 7 days
Jam and jelly 6 months or more
Pickles and olives in brine Several months
Opened canned food, moved to a container 3 to 4 days

Never store opened canned goods in the can. Move the contents to a glass or plastic container with a lid. The tomato sauce, beans or soup will keep better and will not pick up a metallic taste.

Fruits and vegetables

Produce is more forgiving than meat, but it has its own rules. Many fruits and vegetables last a week or more in the crisper, and some, like carrots, cabbage and apples, last for weeks. Others, like berries, mushrooms and fresh herbs, turn within a few days.

Produce Typical fridge time
Leafy greens, washed and dried 5 to 7 days
Berries 3 to 7 days
Broccoli, cauliflower 4 to 7 days
Carrots, beets, celery 2 to 4 weeks
Apples 4 to 6 weeks
Mushrooms 3 to 7 days
Cut fruit and cut vegetables 3 to 4 days

Cut produce is more vulnerable than whole produce, since cutting opens the surface to bacteria and moisture. Keep it covered and cold, and check it a day or two before you would for whole items. Items like tomatoes, bananas, potatoes and onions mostly do better outside the fridge, so do not crowd the shelves with them.

Who needs to be extra careful

The timeframes above are written for healthy adults, and even then they are conservative. Some people face a much higher risk of serious illness from foodborne bacteria, including pregnant people, young children, adults over 65 and anyone with a weakened immune system from illness or medication. For these groups, a mild stomach bug for most people can turn into hospitalization.

  • Stick to the shorter end of every range, and freeze leftovers early.
  • Avoid refrigerated deli meats, hot dogs and smoked fish unless reheated until steaming hot, which is recommended by the USDA for people at higher risk of Listeria.
  • Choose pasteurized milk, cheese, juice and eggs when eggs will not be fully cooked.
  • Do not eat raw sprouts.

If you care for someone in one of these groups, ask their health care provider for specific advice.

Date labels, explained

Labels like sell by, best by, use by and best if used by confuse nearly everyone. Except for infant formula, the dates on food are not federally required, and they generally reflect the manufacturer’s estimate of peak quality, not a safety cutoff. A package of yogurt might taste great a few days past its best by date if it has been kept cold the whole time, while a package of raw chicken that has been warm too long can be unsafe well before the date.

  • Sell by is for the store’s inventory. It generally leaves you time to use the food at home.
  • Best by and best if used by are about flavor and texture.
  • Use by is the last date recommended for peak quality, and it is the one to take most seriously for perishables.
  • Infant formula is the exception. Do not use formula past its use by date, since the nutrients may break down.

A date only applies if the food was stored properly. Once you open a package, the unopened date no longer applies, and the opened-food timeframes take over. If you are unsure, write the opening date on the package.

Common mistakes

  • Trusting the sniff test. Pathogens usually do not change smell, look or taste.
  • Leaving food out too long. Dinner sitting out while the family watches a movie is a classic way to blow through the 2-hour limit.
  • Cooling food on the counter overnight. A pot of soup left out overnight should be discarded, even if it looks fine in the morning.
  • Using the door for milk and eggs. It is the warmest part of the fridge.
  • Never checking the temperature. A fridge at 45°F (7°C) is silently shortening the life of everything inside.
  • Packing hot food into deep containers. The center stays warm for hours.
  • Storing raw meat above ready-to-eat food. Drips from the top shelf can contaminate everything below.
  • Rewarming the same leftovers over and over. Each cycle through the danger zone adds risk and wrecks the texture.
  • Keeping leftovers longer than 4 days. Freeze extras early instead of hoping to get to them.
  • Tasting food to decide if it is bad. Even a small taste of unsafe food can make you sick.

When to throw it out

Some decisions are easy. Others take a little more thought. Here is a simple framework for the gray areas.

Toss it without a second thought if

  • Perishable food has been out of the fridge for more than 2 hours (1 hour above 90°F or 32°C).
  • Cooked leftovers are more than 4 days old.
  • Raw poultry or ground meat has been in the fridge more than 2 days and was never frozen.
  • Food has visible mold, with the exception of the hard cheeses and firm produce mentioned below.
  • Food has a slimy film, off smell or sour taste that was not there before.
  • A can is bulging, leaking or deeply dented along a seam, or a jar lid has popped up.
  • You cannot remember how long it has been there.

Mold on produce and hard foods

On firm fruits and vegetables with low moisture, such as carrots, bell peppers and cabbage, you can cut away at least an inch around the moldy spot. For soft produce like tomatoes, berries, cucumbers and peaches, throw the whole thing out. For bread, jam, cooked pasta, soft cheese, yogurt and other moist foods, discard it all, since the mold you see is only the surface.

After a power outage

A closed refrigerator keeps food cold for about 4 hours during a power outage. A full freezer holds its temperature for about 48 hours, and a half-full one about 24 hours, as long as the door stays shut. After 4 hours without power, discard perishable foods in the fridge, including meat, poultry, fish, soft cheeses, milk, eggs and leftovers, unless they have been kept cold with ice or have a thermometer reading at 40°F or below. Food that thawed in the refrigerator can be safely refrozen, and so can food that still contains ice crystals or has stayed at 40°F (4°C) or below.

When in doubt, throw it out. That phrase is not a cliche, but the most reliable rule in the kitchen.

Practical habits that make fridge food last

Shop and store in the right order

Pick up refrigerated and frozen items last at the grocery store, and get them home and into the fridge within 2 hours, or 1 hour on a hot day. Use an insulated bag if you have a long drive.

Make a weekly fridge check

Before you shop, spend five minutes looking through the fridge. Move anything near its time limit to the front, plan a meal around it, or freeze it. Wipe up spills, toss anything past its window, and wipe shelves with a mild soap and water solution about once a month.

Use clean containers

Airtight containers, whether glass or food-grade plastic, protect against odors and drying. Wrap cut produce, cheese and meat well. Keep strong-smelling foods like onions and cut cabbage sealed so they do not flavor everything else.

Plan your week around timelines

Cook the most perishable things first. Fresh fish and ground meat early in the week, steaks and roasts a few days later, and anything you will not get to goes into the freezer right away. Leftovers from Sunday should be finished by Wednesday or Thursday, or frozen on Monday.

Frequently asked questions

Can I eat leftovers after 5 days if they look and smell fine?

I would not. The 3 to 4 day guidance exists because pathogens can grow without any visible or smellable change. If you will not eat the food in that window, freeze it on day one or two instead.

Is it safe to leave food out overnight if I reheat it thoroughly?

No. Some bacteria produce toxins that stay stable through cooking, so reheating cannot make long-neglected food safe. After more than 2 hours at room temperature, discard it.

Should I keep eggs in the fridge or on the counter?

In the US, keep eggs in the fridge. Commercially produced eggs are washed, which removes a natural protective coating, and cold storage helps keep Salmonella in check. Keep them in the carton on an inside shelf.

Is milk safe to drink after its date?

Often it is still fine for a few days if the fridge was cold the whole time, though the quality will decline. Milk that smells or tastes sour, or has a lumpy texture, should be tossed. Do not rely on the date alone, and never serve questionable milk to babies, pregnant women or older adults.

How long can cooked chicken stay in the fridge?

Three to four days, in a covered container at 40°F (4°C) or below. For meal prep, you can cook several days of chicken at once, but plan to eat it by day four or freeze half of it right away.

Can I put hot food directly into the refrigerator?

Yes, as long as it is divided into shallow containers so it cools quickly. The old advice to wait until food reaches room temperature is outdated, and waiting runs out your 2-hour clock.

Does freezing leftovers restart the clock?

No. Freezing pauses the clock, which then resumes after thawing. Freeze food while it is still fresh, and use it soon after thawing in the refrigerator.

Why does my food spoil faster in the fridge than the chart says?

The most likely reason is a fridge that runs warmer than 40°F (4°C), or food that spent too long out of refrigeration before it went in. Check your temperature with a thermometer first, then look at how you cool and store things.

A little attention goes a long way here. Set the temperature right, get food chilled within a couple of hours, write dates on containers, and freeze whatever you will not get to. Do those four things and most of the worrying goes away, along with a good deal of wasted food and money. And on the rare day when you cannot remember whether the leftovers are safe, you already know what to do. Let it go, and make something fresh.