According to the FDA, homemade pumpkin pie can be left at room temperature for up to 2 hours. After that it needs to be refrigerated so that it does not grow harmful bacteria.