Opened coconut milk lasts about five days in the refrigerator and up to two months in the freezer. The best method depends on how soon you plan to use it and whether you’re working with canned, carton, or homemade coconut milk. Here’s how to store it properly at every stage.
Refrigerating Opened Coconut Milk
Once you crack open a can or carton, transfer the leftover coconut milk into a glass jar or airtight container and refrigerate it. You have roughly five days before it starts to turn. Leaving it in the original metal can is a common mistake. Even with a lid or plastic wrap over the top, the exposed metal can leach a noticeable metallic taste into the milk. Glass or BPA-free plastic containers solve this completely.
Give refrigerated coconut milk a good stir before each use. The fat naturally rises to the top and solidifies in the cold, forming a thick white layer over thinner liquid underneath. This separation is normal and doesn’t mean the milk has gone bad. A quick shake or whisk brings it back together.
Freezing for Longer Storage
Coconut milk freezes well for one to two months, whether it came from a can or a carton. After that window it’s still safe to consume, but the texture degrades noticeably while the flavor stays mostly intact.
The most practical approach is freezing it in an ice cube tray. Pour the leftover milk into the tray, freeze until solid, then pop the cubes out and transfer them to a freezer bag. Each cube is roughly one to two tablespoons, which makes it easy to grab exactly what a recipe calls for without thawing an entire batch. If you need larger portions, small freezer-safe containers or silicone muffin molds work just as well.
Expect some texture changes after thawing. The fat separates from the watery base, and the milk can look grainy or slightly curdled. This is cosmetic, not a safety issue. A quick whisk or a few seconds in a blender smooths it back out. Frozen and thawed coconut milk works best in cooked dishes like curries, soups, smoothies, and baked goods where the slight texture difference disappears. It’s less ideal for recipes where coconut milk is served uncooked or used as a creamy topping.
Unopened Shelf Life by Type
How long coconut milk lasts before you open it depends entirely on how it was processed and packaged. Canned coconut milk is sterilized at high heat inside the sealed can. This gives it a shelf life of about two years stored at room temperature. UHT (ultra-high temperature) coconut milk in aseptic cartons, the kind you find in the refrigerator or shelf-stable aisle, typically lasts six to eight months unopened. The carton packaging is lighter but doesn’t protect as long as a metal can.
In both cases, check the best-by date printed on the package. Store unopened cans and cartons in a cool, dry spot away from direct sunlight or heat sources like the stove. Once opened, both types follow the same rules: refrigerate and use within five days, or freeze.
Homemade Coconut Milk Needs Faster Use
Fresh coconut milk made at home from blended coconut meat and water contains no preservatives or stabilizers. It spoils significantly faster than commercial versions. Plan to use homemade coconut milk within two to three days of making it, keeping it refrigerated the entire time in a sealed container. Freezing works the same way, in ice cube trays or small containers, but separation after thawing tends to be more pronounced since there’s no guar gum or other emulsifier holding the fat and water together.
Commercial coconut milk typically contains stabilizers like guar gum or xanthan gum. These ingredients create a stronger bond between the fat and water phases, which is why store-bought milk stays smoother longer in the fridge and recovers better after freezing. Homemade milk will always separate more dramatically, so blending after thawing is especially important.
How to Tell if Coconut Milk Has Spoiled
Fresh coconut milk is creamy white with a mild, slightly sweet coconut smell. When it goes bad, several things change at once. The most reliable indicators:
- Color shifts: A grayish or beige tone instead of bright white, or a yellowish tint, both signal bacterial growth. Any dark or greenish spots mean mold has taken hold.
- Smell: Spoiled coconut milk develops a sour or otherwise off-putting odor that’s clearly different from its usual mild scent. If it smells wrong, don’t taste it to confirm.
- Texture: Curdled, chunky, or unusually thick coconut milk has gone bad. Some separation is normal (especially after refrigeration or freezing), but clumpy, lumpy consistency paired with discoloration or odor means it should be discarded.
When in doubt, look at all three together. Mild separation on its own is fine. Separation combined with a color change or sour smell is not.
Quick Reference by Storage Method
- Unopened can: Up to 2 years at room temperature
- Unopened carton (UHT): 6 to 8 months at room temperature
- Opened (any type): 5 days refrigerated in an airtight container
- Frozen: 1 to 2 months for best quality
- Homemade: 2 to 3 days refrigerated
Always transfer opened canned coconut milk out of the can before storing. Label frozen portions with the date so you can track how long they’ve been in the freezer. And for any coconut milk you plan to freeze, do it while it’s still fresh rather than waiting until day four or five in the fridge.

