Almost everyone has opened the refrigerator and discovered a container of leftovers they completely forgot about. Was it made yesterday? Three days ago? Or has it been sitting there since last weekend?Rather than guessing whether the food is still safe to eat, it's worth knowing a few simple food storage rules. They can help you avoid foodborne illness, reduce waste, and make better use of the meals you've already prepared.How Long Can Cooked Food Stay in the Refrigerator?As a general rule, most cooked leftovers can be safely stored in the refrigerator for 3–4 days, provided they were refrigerated promptly and stored at a temperature of 40°F (4°C) or below.This applies to many common foods, including cooked chicken, meat, soups, casseroles, and other prepared dishes.If you know you won't eat the leftovers within that time, it's better to freeze them sooner rather than wait until they're nearing the end of their recommended storage period.Freezing food while it's still fresh helps preserve its quality and means you'll have a ready-made meal waiting for another day.Don't Leave Cooked Food on the Counter for HoursHow quickly you refrigerate food is just as important as how long you store it.Perishable foods and cooked leftovers should be refrigerated within two hours of cooking or serving. On particularly hot days, when the temperature is above 90°F (32°C), that window drops to just one hour.A common mistake is leaving a large pot of food on the counter until it has cooled completely. However, food doesn't need to reach room temperature before going into the refrigerator.Instead, divide large quantities into smaller, shallow containers so they can cool more quickly and evenly.This simple step helps prevent food from spending too long at temperatures where harmful bacteria can multiply.If It Smells Fine, Is It Still Safe?Many of us rely on the smell test when deciding whether to keep or throw away leftovers.We open the container, take a quick sniff, and assume that if nothing smells unusual, the food must still be good.Unfortunately, it isn't that simple.Bacteria that cause foodborne illness don't always change the smell, taste, or appearance of food. Something can look perfectly normal and still be unsafe to eat.That's why tasting old leftovers to check whether they're still good isn't a reliable or safe method either.If you can't remember when a dish was prepared, or you know it was left unrefrigerated for too long, the safest choice is to throw it away.One Simple Habit That Makes Food Storage EasierThere's an easy way to avoid the guessing game: label your leftovers with the date they were prepared.Before putting a container in the refrigerator, write the date on a small label or piece of tape.That way, you'll know exactly how long the food has been stored without having to rely on your memory.It's also helpful to keep older containers toward the front of the refrigerator, where you'll see them first. This encourages you to use what you already have before preparing something new.These small organizational habits can help reduce unnecessary food waste while making it easier to keep track of what needs to be eaten.Ultimately, safe food storage doesn't have to be complicated. Refrigerating leftovers promptly, keeping your refrigerator at the right temperature, and labeling containers can make a real difference.And the next time you discover a forgotten container at the back of the fridge, you won't have to wonder how long it's been there.