Dinners

How to Make Dairy Free Cookies That Hold Their Shape

Updated · By Patriot Kitchen

Save

Most dairy-free cookie recipes replace butter with a plant-based stick margarine or coconut oil, and that swap works for drop cookies, slice-and-bake logs, and bar cookies. The method differs for cookies that rely on butter for structure, like shortbread or sandies, where you need a firmer fat and a longer chill. Use the steps below for any standard cookie dough, then adjust the fat and chill time based on the cookie you are making.

Choose the Right Dairy-Free Fat for the Cookie

The fat you pick changes texture more than anything else. For chewy drop cookies (chocolate chip, oatmeal, peanut butter), use a dairy-free stick margarine that contains at least 60% fat, not a tub spread. For crisp, tender cookies like shortbread or spritz, use refined coconut oil (solid at room temperature) or a solid palm-oil shortening. For soft, cakey cookies (pumpkin, banana, or cake-mix style), use neutral oil like canola or sunflower, but reduce the liquid in the recipe by 2 tablespoons per 1 cup of oil because oil is 100% fat while butter is about 80% fat and 20% water.

How to Substitute Butter in a Dairy-Free Cookie Recipe

  1. Measure the dairy-free fat by weight if possible: 1 cup (2 sticks) of butter equals 226 g. If using coconut oil, measure it solid and packed, then melt only if the recipe says so.
  2. If the recipe calls for softened butter, soften the dairy-free stick margarine at room temperature for 30–45 minutes, but do not let it melt. Coconut oil should be softened but still solid; if it is liquid, chill it for 15 minutes.
  3. Add 1–2 tablespoons of cold water or dairy-free milk per 1 cup of fat if the dough seems dry or crumbly, because plant fats lack the water in butter.
  4. If the recipe calls for melted butter, use melted coconut oil or dairy-free margarine, but let it cool to lukewarm before adding eggs.
  5. Chill the dough for at least 30 minutes (drop cookies) or 1 hour (cut-out or slice-and-bake) before baking, because dairy-free fats soften faster than butter.

Baking the Cookies: Temperature, Time, and Doneness

Bake most dairy-free drop cookies at 375°F (190°C) for 10–12 minutes, until the edges are golden and the center still looks slightly underdone. For cut-out cookies, bake at 350°F (175°C) for 8–10 minutes, until the edges are just set and the bottoms are lightly browned. For bar cookies, use the temperature in the original recipe (usually 350°F/175°C) and check 2–3 minutes early because dairy-free batters often bake faster.

To tell if they are done: press the center lightly with a finger – it should leave a slight dent that springs back slowly. If it sinks and stays, bake 1–2 minutes more. If the edges are dark brown, they are overdone; pull them out now because they continue to set on the hot pan.

The One Failure People Hit: Dough Spreads Too Thin

Dairy-free cookies spread excessively because plant fats melt at lower temperatures than butter. Fix it by chilling the dough for at least 1 hour (or 30 minutes in the freezer) before baking, and do not place dough on a hot or warm baking sheet. Also, reduce the oven temperature by 25°F (about 15°C) if your cookies spread more than 1 inch (2.5 cm) beyond the raw dough ball. If they still spread, add 2–3 tablespoons of all-purpose flour or almond flour to the dough, but note that almond flour will make them more tender and slightly crumbly.

Worked Example: Dairy-Free Chocolate Chip Cookies

This makes about 24 cookies. You need 2 1/4 cups (280 g) all-purpose flour, 1 teaspoon baking soda, 1/2 teaspoon salt, 1 cup (226 g) dairy-free stick margarine (softened), 3/4 cup (150 g) granulated sugar, 3/4 cup (160 g) packed brown sugar, 2 large eggs (room temperature), 2 teaspoons vanilla extract, and 1 1/2 cups (270 g) dairy-free chocolate chips.

  1. Whisk the flour, baking soda, and salt in a medium bowl.
  2. Beat the margarine, granulated sugar, and brown sugar on medium speed for 2–3 minutes until light and fluffy. Scrape the bowl.
  3. Add the eggs one at a time, beating after each, then the vanilla.
  4. Stir in the flour mixture until just combined, then fold in the chocolate chips.
  5. Cover the dough and chill for at least 1 hour.
  6. Preheat oven to 375°F (190°C). Line two baking sheets with parchment paper.
  7. Scoop 1.5-tablespoon (about 30 g) balls of dough, spacing them 2 inches (5 cm) apart.
  8. Bake for 10–12 minutes, until edges are golden and centers are still slightly soft. Cool on the pan for 5 minutes, then transfer to a wire rack.

These cookies are crisp at the edges and chewy in the middle. If you want them flatter, press the dough balls down slightly before baking; if you want them thicker, chill the dough for 2 hours instead of 1.

Dairy-Free Cookies for Cut-Outs and Shortbread

For cut-out sugar cookies, use a recipe that calls for cold butter, and replace it with cold dairy-free stick margarine or a 50/50 mix of coconut oil and dairy-free margarine. Roll the dough between two sheets of parchment paper to 1/4 inch (6 mm) thick, then chill the rolled dough for 30 minutes before cutting. Bake at 350°F (175°C) for 8–10 minutes, until the edges are barely golden. For shortbread, use cold coconut oil (solid) instead of butter, and chill the formed dough for 1 hour before baking; bake at 325°F (165°C) for 15–18 minutes, until the edges are light golden. Shortbread will be more crumbly than butter versions, so handle it gently.

Checking Labels and Avoiding Hidden Dairy

Dairy hides in many packaged ingredients. Check the labels of chocolate chips, vanilla extract (some contain milk), baking powder (rarely, but check), and even some brands of margarine that contain whey or casein. Look for “dairy-free” or “vegan” on the package, and avoid any ingredient list that includes milk, cream, butter, whey, casein, or lactose. If a product says “may contain milk,” it is not safe for a dairy allergy, but it is fine for a dairy-free diet. For a vegan version, also use a flax egg (1 tablespoon ground flaxseed mixed with 3 tablespoons water per egg) or a commercial egg replacer, but note that the texture will be slightly denser.

Storing Dairy-Free Cookies and Dough

Perishable food should go into the refrigerator within 2 hours; discard anything left out longer. They tend to dry out faster than butter cookies, so add a slice of bread to the container to keep them soft. Refrigerate the dough for up to 3 days, or freeze it for up to 3 months. To freeze, shape the dough into balls, freeze them on a baking sheet until solid, then transfer to a zip-top bag. Bake from frozen, adding 2-3 minutes to the baking time. Do not leave dairy-free cookie dough at room temperature for more than 2 hours, because it contains eggs and the plant fats can soften too much.

Dairy-Free Cookies for Large Batches and Kids

If you are baking a large batch, work in smaller rounds: chill the dough, scoop half the cookies, and keep the rest in the refrigerator between batches. For kids, use a cookie scoop to make uniform sizes, and let them press in dairy-free chocolate chips or sprinkles before baking. If you need a nut-free version, use sunflower seed butter or soy butter instead of peanut butter, and check that your dairy-free margarine is also soy-free if needed. For a school-safe treat, use sunflower seed butter and oat milk, and check the labels of all ingredients for allergens.

Related

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).