Generally, hard-boiled eggs can last a week in the refrigerator. Even with its natural (but easily cracked) calcium-carbonate container, a hard-cooked egg is a perishable food, so it shouldn't be kept at room temperature for more than two hours.