A thermos can keep pasta warm for several hours, depending on the quality of the thermos and how well it retains heat. However, it's generally recommended to consume the pasta within 4-6 hours to ensure freshness and prevent the risk of foodborne illnesses.