At room temperature, you can keep it out for about two hours before you risk food poisoning. However, it can stay out much longer when kept warm on the stove or in a slow cooker.