Cheese can be “bad” in two distinct ways: it can spoil and become unsafe to eat, or it can cause health problems for people with certain conditions. Soft cheeses go bad within about a week of opening, while hard cheeses last three to four weeks in the fridge. Beyond spoilage, cheese can also be problematic during pregnancy, for people prone to migraines, and for those with kidney disease or lactose intolerance.
How Long Cheese Lasts After Opening
The type of cheese determines how quickly it spoils. Hard block cheeses like cheddar, Parmesan, and Gouda stay safe for three to four weeks after opening when refrigerated. Shredded hard cheese has more surface area exposed to air and bacteria, so it lasts about one month. Soft cheeses like brie and fresh mozzarella have a much shorter window of roughly one week. Cream cheese gets about two weeks.
Unopened hard cheese in its original packaging can last up to six months in the refrigerator. Once you break that seal, the clock starts ticking faster because you’re introducing moisture and airborne bacteria.
Signs Your Cheese Has Spoiled
Your nose is your best tool. Cheese that has gone bad often develops a sharp, acidic smell or unpleasant fermented odors that are clearly different from its normal scent. Some spoiled cheeses produce sulfur or putrid smells. A slimy or sticky film on the surface is another reliable indicator, as is any pink or unusual discoloration that wasn’t there before. Certain bacteria can cause a visible pink tint, which is a clear sign the cheese should be thrown out.
Mold is trickier because some cheeses are supposed to have it. Roquefort, blue cheese, Gorgonzola, Stilton, Camembert, and Brie all use mold as part of their production, and those molds are safe to eat. But mold that shows up uninvited on other cheeses needs to be handled differently depending on the cheese type.
When to Cut Off Mold vs. Toss the Whole Block
If you spot mold on a hard cheese like cheddar, you can salvage it. Cut at least one inch around and below the mold spot, keeping the knife out of the mold itself so you don’t spread spores into the clean portion. Wrap the trimmed cheese in fresh plastic wrap and return it to the fridge.
Soft cheeses with unexpected mold should be discarded entirely. Their higher moisture content means mold threads can penetrate far deeper than what you see on the surface. There’s no safe way to cut around it. This applies to cottage cheese, cream cheese, ricotta, and any crumbled or shredded cheese.
Cheese and Pregnancy Risk
Pregnant women face a serious risk from Listeria, a bacterium that can cause miscarriage, stillbirth, or severe illness in newborns. The FDA recommends avoiding all cheese made with unpasteurized (raw) milk during pregnancy. This includes many artisanal and imported varieties.
Queso fresco, queso blanco, and requesón carry extra risk and should be avoided even when made from pasteurized milk. These fresh, high-moisture cheeses have been linked to Listeria outbreaks regardless of pasteurization status. Most other cheeses made from pasteurized milk are considered safe during pregnancy.
Cheese as a Migraine Trigger
Aged cheeses are one of the most commonly reported dietary migraine triggers, and the culprit is tyramine, a compound that builds up naturally as cheese ages. Tyramine causes nerve cells in the brain to release norepinephrine, which at elevated levels can trigger headaches and raise blood pressure.
The cheeses highest in tyramine include aged cheddar, Stilton, blue cheese, Camembert, Swiss, feta, Muenster, and Parmesan. If you’re prone to migraines, you may notice a pattern after eating these varieties. The connection is especially strong for people taking a class of antidepressants called MAO inhibitors, which block the enzyme your body uses to break down tyramine. Without that enzyme working normally, tyramine accumulates quickly and can cause severe headaches and dangerous blood pressure spikes.
Lactose Intolerance and Cheese
Not all cheese is equally problematic for people who don’t digest lactose well. The aging process breaks down most of the lactose in cheese, so harder, longer-aged varieties contain almost none. Parmesan, Emmentaler, Gouda, Edam, and Tilsit all contain effectively zero grams of lactose per serving. Most people with lactose intolerance can eat these without any symptoms.
Fresh and soft cheeses are a different story. Mozzarella contains about 3.3 grams of lactose per 100-gram serving. Cottage cheese has about 1 gram per 30-gram portion, and cream cheese and mascarpone fall in the same range. These amounts are relatively small compared to milk (which has roughly 12 grams per cup), so many lactose-intolerant people can still tolerate moderate portions. Research suggests most people with the condition can handle up to 24 grams of lactose spread across a full day without significant discomfort.
Cheese and Kidney Disease
For people with chronic kidney disease, cheese presents a problem that has nothing to do with spoilage. Damaged kidneys struggle to filter phosphorus from the blood, and most cheeses are high in this mineral. Excess phosphorus pulls calcium from bones over time and can cause dangerous deposits in blood vessels and organs.
The National Kidney Foundation lists cheese broadly among high-phosphorus foods to limit or avoid on a kidney-friendly diet. If you have kidney disease and want a substitute, cottage cheese is considered a lower-phosphorus option compared to most other varieties. Vegan cheese, rice milk, and almond milk are also recommended alternatives. Your specific restrictions depend on your kidney function and lab results, so the degree to which you need to limit cheese varies.

