There are a few reasons why cookies may come out flat. The two most common reasons are that the butter melts too fast and or the baking soda is not fresh. Chilling the dough before baking and ensuring the baking soda is fresh will prevent getting flat cookies.