For optimal flavor and texture, sauerkraut should be fermented for at least one to two weeks. However, the fermentation time can be adjusted based on personal preference. To determine if it has reached the desired level of sourness, taste the sauerkraut after a week. Remember to store it in a cool and dark place while it ferments.