How long does butter last?

Unopened butter stored in the refrigerator at 32-38º F keeps for 4 months, while opened butter or butter stored in the refrigerator door keeps only a couple of weeks.

FormWhereOfficial window
unopenedrefrigerator4 months
openedrefrigeratora couple of weeks
salted butter in a covered dish or butter crockroom temperatureup to one to two days
unsalted butterrefrigeratorremoved only briefly to soften before use
The official discard rule

If you are not going to use the butter within a couple of weeks of purchasing it, the butter should be stored in the freezer.

These are the official windows; when in doubt, follow the source linked below.
Grounded in: extension.oregonstate.edu, extension.umaine.edu. Every window above appears verbatim in the linked sources.
Our other tools
checkthetemp.com USDA safe cooking temperatures
freezeornot.com what freezes well and how long it keeps
getthestainout.com gentle stain removal, step by step
readthetag.com laundry care symbols, decoded
feedornot.com can dogs, cats and chickens eat that?
substitute.kitchen ingredient substitutions that scale
whichbug.com identify a bug from what you can see
ismyplantdying.com diagnose a struggling plant
aquariumstudio.ai aquarium care and tank help