Chocolate cookies from scratch depend on the ratio of butter to sugar to flour, which sets their texture: more butter and brown sugar give a chewy cookie, more flour and white sugar give a crisper one. The cocoa powder adds deep chocolate flavor while baking soda provides lift and spread. This recipe yields a soft, chewy cookie with crisp edges and a rich, dark chocolate taste, perfect for an afternoon snack or a lunchbox treat.
Ingredients
- 1 cup (2 sticks, 226 g) unsalted butter, softened
- 1 cup (200 g) granulated sugar
- 1 cup (220 g) packed light brown sugar
- 2 large eggs (100 g), room temperature
- 1 teaspoon vanilla extract
- 2 cups (250 g) all-purpose flour
- 3/4 cup (75 g) unsweetened cocoa powder (natural or Dutch-processed)
- 1 teaspoon baking soda
- 1/2 teaspoon salt
- 1 cup (170 g) semisweet chocolate chips (optional)
Instructions
- Preheat the oven to 375°F (190°C). Line two baking sheets with parchment paper.
- In a large bowl, beat the butter, granulated sugar, and brown sugar with an electric mixer on medium speed until light and fluffy, about 2 minutes. Scrape down the bowl.
- Add the eggs one at a time, beating well after each addition, then beat in the vanilla.
- In a separate bowl, whisk together the flour, cocoa powder, baking soda, and salt. Gradually add the dry ingredients to the butter mixture, mixing on low speed just until combined. Stir in the chocolate chips if using.
- Chill the dough in the refrigerator for at least 30 minutes (up to 48 hours). This prevents excessive spreading and deepens the flavor.
- Scoop rounded tablespoons (about 1.5 tablespoons / 22 g) of dough onto the prepared baking sheets, spacing them 2 inches (5 cm) apart.
- Bake for 10–12 minutes, until the edges are set and the tops look slightly cracked. The centers will look soft. For a chewier cookie, bake 10 minutes; for a crisper one, bake 12.
- Let the cookies cool on the baking sheet for 5 minutes, then transfer to a wire rack to cool completely.
Why Cookies Turn Out Dry, Runny, or Dense—and the Fix
Dry, crumbly cookies usually come from too much flour or overbaking. Measure flour by spooning it into the cup and leveling off, not scooping directly. Bake only until the edges are set; the centers will firm up as they cool.
Runny, flat cookies happen when the butter is too soft or the dough is too warm. If your kitchen is warm, chill the dough for a full hour. Also check that your baking soda is fresh—test by dropping a pinch into vinegar; it should bubble vigorously.
Dense, tough cookies result from overmixing the flour, which develops gluten. Mix just until no streaks of flour remain. Also, use cake flour or reduce the flour by 2 tablespoons (16 g) if you prefer a more tender crumb.
Substitutions That Change the Result
- Butter → margarine or coconut oil: Use equal amounts. Margarine makes a slightly softer cookie; coconut oil makes them spread more and adds a subtle coconut flavor.
- Brown sugar → white sugar: Use all granulated sugar for a crisper, less chewy cookie. For a deeper flavor, use all brown sugar.
- All-purpose flour → whole wheat flour: Replace up to half the flour with whole wheat; the cookies will be denser and slightly nutty.
- Cocoa powder → Dutch-processed: Use the same amount; Dutch-processed gives a milder, less acidic chocolate flavor and a darker color.
- Chocolate chips → chopped nuts or dried fruit: Use 1 cup (120 g) of chopped walnuts, pecans, or dried cherries. Nuts add crunch; dried fruit adds sweetness.
Storage and Make-Ahead
Baked chocolate cookies keep in an airtight container at room temperature for up to 5 days. For longer storage, freeze baked cookies in a single layer in a freezer bag for up to 3 months; thaw at room temperature for 30 minutes. Unbaked dough can be shaped into balls and frozen for up to 3 months; bake directly from frozen, adding 2–3 minutes to the baking time.
If you have leftover dough, refrigerate it for up to 48 hours before baking—this actually improves the flavor and texture. Always let the dough sit at room temperature for 10 minutes before scooping if it gets too firm.
Can I Use a Different Size Cookie?
Yes. For smaller cookies, use 1 tablespoon (15 g) of dough and bake for 8–10 minutes. For larger cookies, use 3 tablespoons (45 g) and bake for 14–16 minutes. Adjust the baking time based on the size, and always check for the same doneness cues: edges set, tops slightly cracked.
Why Is My Dough Sticky or Too Soft?
If the dough is too sticky to scoop, it likely needs more chilling—refrigerate for another 30 minutes. If it is too dry, add 1–2 tablespoons (15–30 ml) of milk. Humidity can also affect dough consistency; in humid weather, you may need to add an extra tablespoon of flour.
Related
- Chocolate Muffin Mix Recipe (From Scratch)
- Turtle Cake Recipe From Scratch, Step by Step
- Coconut Cream Pie From Scratch Recipe
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).