Properly stored, cooked macaroni and cheese will last for 3 to 5 days in the refrigerator.
To maximize the shelf life of cooked macaroni and cheese for safety and quality, refrigerate the macaroni and cheese in shallow airtight containers. How long does cooked macaroni and cheese last in the fridge or freezer? The precise answer to that question depends to a large extent on storage conditions - refrigerate macaroni and cheese within two hours of cooking.