Several factors could contribute to spreading cookies. Ensure your butter is softened but not melted, and avoid over-mixing the dough. Chilling the dough for 30 minutes before baking can also help prevent spreading.