Salted butter should be used within six months of the production date, and unsalted butter within four months, according to Martha Stewart. Both types should be kept at room temperature for no longer than one or two days.

Megan Olsen, director of quality assurance at Cabot Creamery, provided the guidelines for refrigerator storage. Suzy Craig, a professor of food safety at Washington State University, provides guidelines for storing butter on the kitchen counter. She cites the FoodKeeper recommendations from the U.S. Department of Agriculture. Butter spends time in transit and on store shelves, so experts advise checking the date on the packaging and following the manufacturer’s instructions.

Salted butter lasts longer because salt acts as a natural preservative and slows down spoilage. Olsen advises keeping only salted butter out of the refrigerator; she believes unsalted butter should be kept refrigerated. It’s best to cover butter on the table with a butter dish and place it away from heat sources and direct sunlight.

In the refrigerator, store the butter in its original wrapper or an airtight container on a shelf, not on the door, where the temperature fluctuates. Craig also recommends keeping the refrigerator temperature no higher than 4 °C and using only a clean knife to scoop out the butter. Without airtight packaging, it absorbs odors, such as those of onions or garlic.

A sour smell, discoloration, or mold means it’s time to throw the product away. A sharp, bitter, or “soapy” aftertaste indicates that the fat has been degraded by oxygen, light, and heat. However, according to Craig, a fresh appearance and smell do not guarantee the absence of harmful bacteria, so refrigeration is especially important for children, the elderly, pregnant women, and people with weakened immune systems. “Rancidity is generally related to quality,” the professor emphasizes.

A freezer can help extend the shelf life: butter in its original packaging, placed in a labeled bag, is best used within six to nine months. Freezing stops the growth of bacteria but does not kill them.

Pastry chefs take a more lenient view

Some experts consider these restrictions too strict. Pastry chefs interviewed by The Kitchn are convinced that butter can be safely left on the counter overnight, and in a special butter dish—for up to two weeks. Donald Schaffner, a professor of food science at Rutgers University, explains that butter is made from pasteurized milk, and bacteria cannot multiply in a fatty medium that lacks moisture. The only risk, in his opinion, is a gradual deterioration in flavor, so the two-week guideline depends on the temperature in the home and how it’s stored. “[But] if it isn’t contaminated from the outside, it will be safe at room temperature indefinitely,” Schaffner notes.