How Long Ham Lasts in the Refrigerator and How to Store It Safely
How Long Ham Stays Fresh in Your Refrigerator
Cooked ham lasts 3 to 5 days in the refrigerator when stored properly in an airtight container or wrapped tightly in plastic wrap or foil. The exact length depends on how fresh it was when you bought it and how cold your refrigerator runs. If you bought it pre-sliced from the deli counter, use it within 3 days. A whole cooked ham or large section keeps closer to 5 days. Once you open the package, the clock starts—even if the original date on the label says it's good for longer.
Unopened packaged ham (the kind in vacuum-sealed plastic) lasts longer—usually until the date printed on the package, which is often 1 to 2 weeks out. But the moment you open it, treat it like fresh deli ham and use it within 3 to 5 days. The vacuum seal protects it from bacteria and drying out; once broken, that protection is gone.
Raw ham (which is rare in most home kitchens) should be used within 3 to 5 days as well. If you're unsure whether your ham is cooked or raw, check the label or ask the butcher—it matters for both storage time and food safety.
Key Takeaways
- Cooked ham keeps for 3 to 5 days in the refrigerator when wrapped tightly or stored in an airtight container.
- Unopened vacuum-sealed ham lasts until the package date, but once opened, use it within 3 to 5 days.
- Store ham on a shelf, not in the door, because door temperatures fluctuate and shorten shelf life.
- Freeze ham if you won't use it within 5 days—cooked ham freezes well for 1 to 2 months.
- Discard ham that smells sour, feels slimy, or shows mold, even if the date hasn't passed.
Why Storage Method Matters for Ham Shelf Life
How you wrap or contain ham directly affects how long it lasts. Airtight containers are the gold standard because they prevent air exposure, which dries out the meat and allows bacteria to grow faster. If you don't have a container, wrap the ham tightly in plastic wrap, then add a layer of foil on top. The foil blocks light and provides extra protection. Loose wrapping or leaving ham uncovered cuts the shelf life in half.
The reason wrapping matters is moisture and oxidation. Ham is cured meat with salt and nitrates that slow bacterial growth, but only if the surface stays sealed. Exposed ham loses moisture, becomes dry and tough, and develops a grayish color as the outer layer oxidizes. That's not necessarily unsafe, but it signals the ham is past its prime. A tight seal keeps the surface moist and the interior protected.
If you buy deli ham sliced to order, ask the butcher to wrap it in butcher paper, then place it in a container or wrap it again at home. Pre-packaged sliced ham from the shelf already has some protection, but once opened, transfer it to a container or wrap it—don't leave it in the original package with the opening exposed.
Where to Store Ham in Your Refrigerator
Store ham on a middle or lower shelf, never in the door. Refrigerator doors are the warmest part of the fridge because they're opened frequently and don't have the insulation of the walls. Temperature fluctuates in the door by 5 to 10 degrees each time you open it, which shortens ham's shelf life and creates conditions for bacteria to multiply. The back of a middle shelf is ideal—it's consistently cold and away from the door's temperature swings.
Keep ham away from raw meat and poultry. If raw chicken or beef is on a shelf below ham, any drips could contaminate it. If you must store them together, put ham on a higher shelf so nothing drips onto it. This is especially important if you're storing ham for the full 5 days, because any cross-contamination will speed spoilage.
Don't store ham next to foods with strong odors like onions or fish. Ham is porous and absorbs smells easily. A tight wrap helps, but separation is better. If your refrigerator has a dedicated deli drawer, that's an excellent spot—it's usually slightly warmer than the coldest shelves but colder than the door, and it keeps ham separate from raw proteins.
Signs Ham Has Gone Bad
Discard ham immediately if it shows any of these signs, regardless of how many days have passed. A sour or off smell is the clearest signal—if it doesn't smell like ham anymore, don't taste it to confirm. Trust your nose. Sliminess on the surface means bacteria have multiplied to unsafe levels; the slime is a bacterial biofilm. Mold of any color—green, white, or black—means the ham is unsafe. You cannot cut mold off ham the way you might off hard cheese; ham is too moist and the mold has likely spread into the meat.
A grayish or brownish color on the surface is usually oxidation, not spoilage, and is safe to eat if the ham smells normal and has no slime. But if the color change is accompanied by any smell or texture change, throw it out. Cured ham naturally fades in color over time, especially if exposed to light, but a sudden color shift combined with other signs means it's time to discard it.
If you're uncertain, err on the side of caution. Ham is inexpensive compared to the risk of foodborne illness. When in doubt, throw it out.
Freezing Ham to Extend Storage
If you won't use ham within 5 days, freeze it. Cooked ham freezes well for 1 to 2 months without significant quality loss. Wrap it tightly in plastic wrap, then place it in a freezer bag or airtight container to prevent freezer burn. Freezer burn doesn't make ham unsafe, but it dries it out and affects texture and flavor.
Slice ham before freezing if you think you'll want to thaw only part of it. Frozen slices thaw faster and are easier to portion. Label the container with the date so you know when you froze it. Thaw ham in the refrigerator overnight, never at room temperature—room-temperature thawing allows bacteria to multiply on the surface while the inside is still frozen.
Once thawed, use ham within 3 to 4 days. Do not refreeze thawed ham unless you've cooked it first. If you thaw more than you need, cook the extra (add it to soup, dice it for fried rice, or bake it into a casserole) and then refrigerate or freeze the cooked dish.
Storing Different Types of Ham
Whole cooked hams and large sections (like a half ham) follow the same 3 to 5 day rule as sliced ham, but they last slightly longer because there's less surface area exposed. Wrap the cut side tightly and store it on a shelf. A whole ham can sit for up to 5 days; a cut section is closer to 4 days because the exposed interior is more vulnerable to bacteria.
Spiral-cut hams are pre-sliced but still sold as one piece. Store them wrapped tightly, and they'll last about 4 days. The spiral cuts increase surface area, so they dry out faster than a whole ham but last longer than individually sliced ham because the pieces are still connected and the interior is mostly protected.
Canned ham is shelf-stable until opened and lasts much longer—check the label for the specific date. Once opened, canned ham follows the same 3 to 5 day rule as fresh cooked ham. Country ham and prosciutto are dry-cured and last longer (up to 2 weeks unwrapped in the refrigerator), but once sliced, treat them like regular ham and use within 3 to 5 days.
Frequently Asked Questions
Can I eat ham that's been in the refrigerator for 7 days?
No. After 5 days, the risk of bacterial growth is too high, even if it looks and smells normal. Bacteria can multiply without obvious signs until they reach unsafe levels. If you didn't use it by day 5, freeze it or discard it.
Does ham go bad faster if I slice it myself?
Yes. Every cut exposes new surface area to air and bacteria. A whole ham lasts closer to 5 days; sliced ham lasts closer to 3 days. If you buy a whole ham and slice it at home, use the slices within 3 days and freeze any you won't use immediately.
What if my ham smells a little off but not completely bad?
Don't eat it. A sour or unusual smell means bacteria are producing acids or other compounds. "A little off" is your nose telling you something is wrong. Throw it out. It's not worth the risk of food poisoning.
Can I store ham in the freezer instead of the refrigerator from the start?
Yes. If you know you won't use ham within a few days, freeze it immediately. This stops bacterial growth completely and gives you 1 to 2 months to use it. Thaw it in the refrigerator when you're ready to eat it.
Does the type of refrigerator affect how long ham lasts?
Slightly. Refrigerators that maintain a steady 40°F or below preserve ham longer than those that fluctuate. If your fridge tends to warm up (you'll notice frost buildup or ice crystals forming unevenly), ham may not last the full 5 days. Store it on the coldest shelf and use it sooner.