Flat cookies can be the result of various factors, such as using too much butter or margarine, not chilling the dough adequately, or using expired leavening agents. Adjusting ingredient ratios, chilling the dough before baking, or using fresh leavening agents may help prevent flat cookies.