How long you can leave dough at room temperature, in the fridge, or in the freezer depends on the dough and the ingredients. In general, plain yeasted dough or sourdough can be left at room temperature for up to four hours, in the fridge for a few days, and in the freezer for three months. Avoid leaving any rich dough containing eggs or dairy products at room temperature as it may spoil.