Butter is one of those kitchen staples that seems to always have a home in the fridge—whether you're spreading it on toast, melting it into a pan of scrambled eggs, or using it to bake your favorite pastries. But if you've had the same stick for a while, you may find yourself wondering: How long does butter actually last?

The good news is that butter has a relatively long shelf life compared with many other dairy products. But how long it lasts depends on the type of butter, how you store it and whether you keep it refrigerated.

How long does butter last in the fridge?

Because butter is primarily made up of fat and has relatively little available water, it’s less prone to bacterial growth than dairy products with higher moisture levels, according to Dr. Darin Detwiler, a food safety expert, author, and professor emeritus of food policy. However, that doesn’t make it immune to spoilage.

“For commercially produced butter kept continuously refrigerated at 40°F or below, I would generally think in terms of months rather than days,” he says. “For an unopened package, the manufacturer’s date and storage directions are the best starting point. Once opened, protect it carefully from air, light, odors, and contamination.”

Salted butter tends to last longer than unsalted butter since salt inhibits some microbial activity and contributes to preservation. However, Dr. Detwiler avoids giving a specific timeline for when butter will spoil since butter has another vulnerability people often overlook: “Fat readily picks up flavors and odors,” he says.

“Leave poorly wrapped butter beside onions, garlic, fish, or strongly aromatic leftovers and you may discover that the butter tastes like the refrigerator long before it presents a conventional food-safety problem.”

He recommends keeping butter tightly wrapped or in a covered butter container. Store larger quantities toward the back of the refrigerator, where temperatures are more stable, rather than repeatedly exposing them to warmer air near the door.

How do you know if butter has gone bad?

Your senses can give you some clues. Discard your butter immediately if you spot visible mold and pay attention to the smell.

“Look for an abnormal or rancid odor, significant discoloration, unusual flavor, or visible mold,” says Dr. Detwiler. “Rancid butter can develop odors or flavors people describe as stale, sour, cheesy, metallic, paint-like, or otherwise distinctly ‘off.’ Oxidation may also produce darker yellow areas, particularly on exposed surfaces.”

The FDA notes that harmful bacteria aren't always detectable by sight, smell, or taste. So, while it may be tempting to taste a tiny piece to determine whether it's still good, that's not the best way to assess potentially spoiled food.

Does butter need to be refrigerated?

For long-term storage, Dr. Detwiler recommends keeping butter in the refrigerator. Still, salted butter is less prone to microbial growth than many other dairy products, so you can generally keep a small amount covered at room temperature for short-term use.

You can also freeze butter to extend its shelf life.

“Butter freezes very well,” Dr. Detwiler says. “Think roughly 6–9 months for best quality, with salted butter often maintaining quality particularly well. Manufacturer guidance should take precedence when provided.”

While it doesn’t sterilize food, freezing at 0°F or below dramatically slows deterioration. For longer-term storage, keep butter in its original packaging, add a freezer bag or other moisture-resistant layer, and label it with the date. Portioning butter before freezing can also help you thaw only what you need. When ready to use, thaw it in the refrigerator.

The bottom line

Ultimately, proper storage is key. Butter can last for months when stored properly, but its quality can decline long before it becomes an obvious food-safety concern. Keep it well wrapped, refrigerate it for long-term storage, and freeze it to extend its shelf life. And when in doubt, check for signs of spoilage and toss it if something seems off.