This recipe makes 24 sandwich cookies (12 assembled) in about 1 hour 15 minutes, with a 1:1 ratio of cookie to frosting. Bake the chocolate cookies at 350°F (177°C) for 10–12 minutes, then chill them completely before spreading the peanut butter cream cheese frosting.
What You Need: Ingredients and Equipment
- For the cookies:
- 1 ¾ cups (219 g) all-purpose flour
- ¾ cup (65 g) unsweetened cocoa powder (natural or Dutch-processed)
- 1 teaspoon baking soda
- ½ teaspoon salt
- 1 cup (226 g) unsalted butter, softened
- 1 cup (200 g) granulated sugar
- 1 large egg, room temperature
- 1 teaspoon vanilla extract
- 2 tablespoons milk (any kind)
- For the frosting:
- 8 oz (226 g) cream cheese, softened
- ½ cup (130 g) creamy peanut butter (no-stir kind works best)
- 1 cup (120 g) powdered sugar, sifted
- 1 teaspoon vanilla extract
- 2 tablespoons heavy cream (or milk, if needed)
- Equipment: baking sheets, parchment paper, electric mixer, cooling rack, piping bag or offset spatula
How to Make the Chocolate Cookies (Step by Step)
- Preheat oven to 350°F (177°C). Line two baking sheets with parchment paper.
- In a medium bowl, whisk together flour, cocoa powder, baking soda, and salt. Set aside.
- In a large bowl, beat butter and sugar with an electric mixer on medium speed until light and fluffy, about 2 minutes.
- Add egg and vanilla; beat until combined, scraping down the bowl as needed.
- Gradually add the dry ingredients, mixing on low until just combined. The dough will be thick and slightly sticky.
- Stir in the milk with a spatula—this softens the dough so it doesn't crack when shaping.
- Scoop dough into 1.5-tablespoon balls (about 25 g each) and place 2 inches apart on the prepared sheets.
- Bake for 10–12 minutes, until the edges are set and the tops look slightly cracked. Do not overbake—they will firm up as they cool.
- Cool on the baking sheet for 5 minutes, then transfer to a wire rack to cool completely. Important: the cookies must be completely cool before frosting, or the frosting will melt.
Making the Peanut Butter Cream Cheese Frosting
- In a large bowl, beat cream cheese and peanut butter together on medium speed until smooth, about 1 minute. Make sure both are softened to room temperature to avoid lumps.
- Add sifted powdered sugar and vanilla; beat on low until incorporated, then increase to medium and beat for 2 minutes until fluffy.
- If the frosting is too stiff, add heavy cream 1 tablespoon at a time until spreadable. If too thin, chill for 10 minutes.
- Use immediately or refrigerate in an airtight container for up to 3 days. Bring to room temperature and re-whip before using.
How to Assemble the Sandwich Cookies
- Match cookies by size—pair similar diameters so the sandwiches look even.
- Spread or pipe about 2 tablespoons (30 g) of frosting onto the flat side of one cookie.
- Top with the second cookie, flat side down, and press gently until the frosting reaches the edges.
- For a cleaner look, chill the assembled cookies for 15 minutes before serving. This firms the frosting and makes them easier to handle.
How Long Do These Cookies Last? Storage and Make-Ahead
Unfrosted chocolate cookies keep in an airtight container at room temperature for up to 5 days. Frosted sandwich cookies should be refrigerated because of the cream cheese—they last up to 4 days in the fridge. Let them sit at room temperature for 10–15 minutes before serving to soften the frosting. You can also freeze the unfrosted cookies for up to 3 months: layer between parchment in a freezer bag, thaw at room temperature, then frost. The frosting itself can be made 2 days ahead and refrigerated; re-whip before using.
Substitutions That Change the Result
| Substitution | What changes | Best for |
|---|---|---|
| Natural peanut butter (stirred) | Frosting may be grainier and oilier; may need extra powdered sugar to thicken | If you prefer less sweet, but expect a looser texture |
| Dutch-processed cocoa | Darker color, less acidic, slightly milder chocolate flavor | If you want a more intense, smooth chocolate taste |
| Gluten-free all-purpose flour blend | Cookies may spread more; add ¼ teaspoon xanthan gum if your blend lacks it | For gluten-free diets |
| Greek yogurt instead of cream cheese | Tartness increases, frosting is less rich and lighter | If you want lower fat but a tangier flavor |
Why the Cookies Spread (and How to Control It)
If your cookies turn out too flat or too puffy, the usual culprits are butter temperature and chilling time. Butter that is too soft (above 70°F/21°C) makes cookies spread more; if your kitchen is warm, chill the dough balls for 30 minutes before baking. Conversely, if cookies are too puffy, your butter was too cold—let it soften to room temperature (65–70°F/18–21°C) before creaming. Also, measure flour by spooning into the cup and leveling; too much flour makes dry, crumbly cookies that don't spread, while too little makes them flat.
How to Get a Smooth Frosting Every Time
The key is having both cream cheese and peanut butter at room temperature (about 70°F/21°C). Cold cream cheese creates lumps that are hard to beat out. If lumps persist, warm the mixing bowl slightly by running it under hot water, drying it, then beating again. Sift the powdered sugar to avoid white specks. If the frosting is too thick to spread, add cream 1 teaspoon at a time; if too thin, chill for 15 minutes and re-beat. For a fluffier texture, beat on high for 3 minutes—this incorporates air, making the frosting lighter.
Can You Make These as Drop Cookies Instead of Sandwiches?
Yes. Skip the sandwich step and simply spread a thin layer of frosting on top of each cookie. Use about 1.5 tablespoons (22 g) of frosting per cookie. The yield changes: you'll get 24 frosted cookies instead of 12 sandwiches. The baking time stays the same. If you want the frosting to set, refrigerate the frosted cookies for 20 minutes before stacking.