Healthiir

Homemade peanut butter cups, dairy-free

Homemade peanut butter cups in a muffin tin: melting dairy-free chocolate gently, a filling that holds its shape, layering, setting and peanut butter eggs.

7 min read Updated October 29, 2026
Watercolor illustration of pistachio ice cream and chocolate chip cookies
Illustration (AI-generated), not a photograph of this recipe.
Serves
12
Prep
25 min
Cook
5 min
Chill
40 min
Total
1 hr 10 min

Makes 12 standard-size cups, 12 servings

Ingredients

  • 2 cups (335 g) dairy-free semisweet chocolate chips
  • 1 tbsp refined coconut oil
  • 1/2 cup (130 g) smooth peanut butter, well stirred
  • 1/4 cup (30 g) powdered sugar, plus up to 2 tbsp more if needed
  • 1/8 tsp fine salt, leave out if the peanut butter is salted

To serve

  • 1 pinch flaky sea salt (optional)

Equipment

  • 12-cup standard muffin tin
  • 12 paper or foil muffin liners
  • Microwave-safe bowl or a double boiler
  • Small bowl and spoon

Method

  1. Line a 12-cup standard muffin tin with paper or foil liners.

  2. Put the chocolate chips and coconut oil in a microwave-safe bowl. Heat in 30-second bursts at medium power, stirring after each, until most of the chips have melted, then stir until the last pieces disappear and the chocolate is smooth and glossy. (Or melt them in a heatproof bowl set over a pan of barely simmering water, without letting the bowl touch the water or any steam reach the chocolate.)

  3. Spoon a generous 2 teaspoons of the chocolate into each liner, using about half of it. Tap the tin on the counter and tilt it so the chocolate covers the bottom and creeps a little way up the sides.

  4. Put the tin in the freezer for 10 minutes, until the chocolate is set and no longer glossy.

  5. Meanwhile, in a small bowl, stir the peanut butter, powdered sugar and salt until smooth and thick, like soft dough. If it is too soft and sticky to roll, stir in up to 2 more tablespoons of powdered sugar, or refrigerate it for a few minutes.

  6. Divide the peanut butter mixture into 12 equal portions, roll each into a ball and flatten it into a disc slightly smaller than the bottom of a liner. Press one disc gently onto the set chocolate in each liner, leaving a small gap all around the edge.

  7. If the remaining chocolate has thickened, warm it for 10 to 15 seconds and stir. Spoon it over the peanut butter, letting it run down into the gap around the edge, and tap the tin to level the tops. If using, sprinkle a few flakes of sea salt on each cup.

  8. Refrigerate for 30 minutes, until completely firm. Peel off the liners before eating, or serve them in the liners.

Nutrition per serving

Calories220
Total fat15 g
Saturated fat7 g
Carbohydrate23 g
Fiber2 g
Total sugars19 g
Protein4 g
Sodium30 mg
Calcium10 mg
Iron1.1 mg

Per serving, calculated from USDA FoodData Central values for the ingredients and amounts listed, leaving out the optional ingredients. Calories, fat, carbohydrate, fiber, sugars, protein and sodium are rounded with the FDA Nutrition Facts label rules; calcium is shown to the nearest 10 mg and iron to the nearest 0.1 mg. Brands differ, so treat the figures as estimates.

How these numbers were calculated

Each ingredient as weighed for the calculation and the USDA FoodData Central record its nutrients come from. Where USDA has no record for an ingredient (vegan butter, nutritional yeast, coconut sugar), the closest generic record is used and named here.

IngredientGramsUSDA record
2 cups (335 g) dairy-free semisweet chocolate chips 336 g FDC 167976: Candies, semisweet chocolate (SR Legacy). Weight from: USDA portion '1 cup chips (6 oz package)'
1 tbsp refined coconut oil 13.6 g FDC 171412: Oil, coconut (SR Legacy). Weight from: USDA portion '1 tbsp'
1/2 cup (130 g) smooth peanut butter, well stirred 129 g FDC 172470: Peanut butter, smooth style, without salt (SR Legacy). Weight from: USDA portion '1 cup'
1/4 cup (30 g) powdered sugar, plus up to 2 tbsp more if needed 30 g FDC 169656: Sugars, powdered (SR Legacy). Weight from: USDA portion '1 cup unsifted'
1/8 tsp fine salt, leave out if the peanut butter is salted 0.8 g FDC 173468: Salt, table (SR Legacy). Weight from: USDA portion '1 tsp'
1 pinch flaky sea salt (optional) not counted (optional) FDC 173468: Salt, table (SR Legacy). Weight from: USDA portion '1 dash'

Homemade peanut butter cups are two thin layers of chocolate with a disc of sweetened peanut butter between them, set in muffin liners. They need no candy molds and no oven, only a muffin tin and a little patience while each layer sets. This version uses dairy-free semisweet chocolate chips and a filling of peanut butter stiffened with powdered sugar, which gives the dense, slightly crumbly center of a classic cup rather than a runny smear. The method is mostly about handling chocolate gently and building the layers in the right order.

Melting chocolate without ruining it

Chocolate chips soften quickly and scorch just as quickly. Two things go wrong:

  • Overheating. Chocolate that gets too hot turns thick, dull and grainy, and can scorch on the bottom of the bowl. Heat it in 30-second bursts at medium power and stir after every burst, even if nothing seems to have happened yet. Stop heating while a few pieces are still visible; the warmth of the melted chocolate finishes them as you stir.
  • Water. A few drops of water or steam make melted chocolate seize into a stiff, matte paste. Dry every bowl and spoon. On the stovetop, use a heatproof bowl over barely simmering water, and keep the bowl from touching the water.

The spoonful of refined coconut oil thins the melted chocolate so it spreads into an even layer, and it makes the set chocolate a little softer and less brittle, so the cups bite cleanly instead of shattering. Refined coconut oil tastes neutral; unrefined adds a coconut flavor. Chocolate chips are made to hold their shape in baking, so melted chips are usually thicker than melted bar chocolate; the oil helps there too. At its simplest the recipe is three ingredients, chocolate, peanut butter and powdered sugar: without the oil the chocolate is thicker to spread and sets harder, and without the salt the filling tastes flatter, but the cups still work.

Why this chocolate is kept cold

Professional candy makers temper chocolate, heating and cooling it to exact temperatures so it sets glossy and snaps at room temperature. This recipe skips that. Untempered chocolate with a little oil in it sets firm in the refrigerator but softens in a warm room, and it may develop dull streaks over time. That is why the cups live in the refrigerator.

A filling that holds its shape

Peanut butter on its own is too soft and oily to sit in a neat layer; it spreads out and blends into the warm top chocolate. Stirring in powdered sugar absorbs some of the oil and turns it into a soft dough you can roll and flatten. The sugar also sweetens it to the level of the classic candy, and the pinch of salt keeps it from tasting flat.

  • Smooth peanut butter gives the classic texture. Crunchy works and gives a center with bits of peanut.
  • Natural peanut butter (peanuts only, or peanuts and salt) needs a very thorough stir. It is runnier, so chill the filling for a few minutes if it will not hold a shape.
  • No-stir peanut butter with added oils and sugar is firmer and sweeter; start with a little less powdered sugar and taste.

If the peanut butter is already salted, leave out the salt on the card.

Filling variations

  • Closer to the classic candy’s sandy texture: stir 2 tablespoons of finely ground graham cracker crumbs into the filling. Many graham crackers contain honey, so look for a vegan one, and note that they add wheat.
  • Without powdered sugar: blend granulated sugar in a dry blender until it is a fine powder and use it the same way; unground granulated sugar stays gritty in the filling.
  • With maple syrup instead: replace the powdered sugar with 2 tablespoons of maple syrup and stir in 2 to 3 tablespoons of almond flour, a spoonful at a time, until the filling holds a shape. Liquid sweetener loosens the peanut butter, and the almond flour firms it back up; the result is softer and less sweet, and it adds tree nuts.
  • Less sweet: cut the powdered sugar back to 2 tablespoons and chill the filling until firm enough to shape, or use dairy-free dark chocolate chips instead of semisweet.
  • Crunchy: use crunchy peanut butter, or press a few chopped roasted peanuts into each disc.

Layering the cups

The order is bottom chocolate, set, filling, top chocolate, set. Each step has a reason:

  1. The bottom layer goes in first and sets in the freezer for 10 minutes. A firm base stops the filling from sinking through and gives the cups a solid bottom.
  2. The filling is a flattened disc, not a dollop. A disc slightly smaller than the bottom of the liner leaves a gap around the edge for the top chocolate to run into, which seals the filling in and gives the cups their neat sides.
  3. The top layer goes over a cold filling. Warm the remaining chocolate briefly if it has thickened, spoon it on, then tap the tin on the counter to level the tops and pop any air bubbles.
  4. A final 30 minutes in the refrigerator sets everything firm.

Paper liners peel off more cleanly once the cups are completely cold. Foil liners are sturdier and hold their shape well, which helps when spreading the bottom layer.

Peanut butter eggs and other shapes

For Easter, the same filling makes peanut butter eggs. Shape it into 12 small, flat ovals, freeze them on a parchment-lined plate for 10 minutes so they hold together, then dip each one in the melted chocolate with a fork, letting the excess drip back into the bowl. Set them on the parchment and refrigerate for 30 minutes until the chocolate is firm.

Silicone molds and no liners. A silicone muffin pan or candy mold works without liners: build the layers in the same order, chill until completely firm and push each cup out from underneath. In a metal muffin tin without liners the chocolate sticks, so use liners there.

Mini cups in a mini muffin tin with mini liners take the same method; use about a teaspoon of chocolate for each layer and a smaller disc of filling. A loaf pan lined with parchment makes a slab of layered peanut butter chocolate that can be cut into bars once it is cold.

Mistakes and how to fix them

  • The filling shows at the sides: the disc was as wide as the liner. Make it a little smaller so the top chocolate can run around it.
  • The bottom layer cracked when the filling went in: it was too thin in the middle. Tilt the tin more so the chocolate covers the bottom evenly, and press the filling down gently.
  • The tops are lumpy: the chocolate had cooled and thickened. Warm it for 10 to 15 seconds and stir before spooning it on, then tap the tin firmly.
  • The cups stick to the paper: they are not cold enough. Chill them longer and peel the liners slowly.

For another dairy-free chocolate candy from the same pantry, vegan chocolate truffles need only chocolate and coconut milk, and a chopped peanut butter cup is a good topping for banana nice cream.

Storing and freezing

Keep the cups in a covered container in the refrigerator at 40°F or below and eat them within 3 to 4 days, the window USDA gives for refrigerated leftovers. Do not leave them at room temperature for more than 2 hours (1 hour above 90°F); on a warm day they soften well before that. To freeze, pack them in an airtight container with parchment between layers; USDA gives 3 to 4 months for frozen leftovers, and FoodSafety.gov notes that freezer times are for quality only. They can be eaten straight from the freezer after a few minutes on the counter.

Allergy and ingredient notes

This recipe contains peanuts, and the coconut oil is a coconut ingredient. For anyone with a peanut allergy, use sunflower seed butter instead, with the same amounts and method; almond or cashew butter also work but contain tree nuts. A neutral vegetable oil can replace the coconut oil, with slightly softer chocolate. For what peanuts themselves contain, see peanut nutrition on DataFood. If you are thinking about how everyday nutrients support women’s health, this guide to magnesium for women through menopause explains the different forms and typical doses.

Check two labels. Many semisweet chocolate chips contain no milk, but some do, many contain soy lecithin, and many are made on equipment shared with milk, tree nuts or peanuts, so read the ingredient list and allergen statement. Some cane sugar, including powdered sugar, is filtered through bone char during refining; if that matters to you, choose sugar labeled vegan. The recipe as written is made with gluten-free ingredients; check the chocolate chip and powdered sugar labels for cross-contact if you need to avoid gluten, as the NIDDK advises for people with celiac disease. The graham cracker variation is not gluten-free.

Common questions

Why did my chocolate get thick and grainy when I melted it?

It either got too hot or a little water reached it. Overheated chocolate turns thick and dull, and even a few drops of water or steam can make it seize into a stiff paste. Heat it in short bursts at medium power and stop while a few pieces are still unmelted; stirring finishes the job. Keep bowls, spoons and spatulas completely dry.

Can I use natural peanut butter?

Yes. The card is calculated from USDA's generic unsalted smooth peanut butter, but a natural one made from just peanuts works the same way. Stir it very well first, so the oil on top is mixed back in. Natural peanut butter is runnier than the no-stir kind, so if the filling is too soft to shape after adding the powdered sugar, chill it for a few minutes or add another tablespoon of sugar.

Can I make peanut butter cups without powdered sugar?

Yes. Blend granulated sugar into a fine powder in a dry blender and use the same amount, since plain granulated sugar stays gritty. Or use 2 tablespoons of maple syrup and firm the filling with 2 to 3 tablespoons of almond flour; it will be softer and less sweet, and it adds tree nuts.

Do homemade peanut butter cups need to be refrigerated?

Yes. The chocolate in this recipe is melted, not tempered, and has coconut oil in it, so it softens at warm room temperature. Keep the cups covered in the refrigerator at 40°F or below and eat them within 3 to 4 days, the window USDA gives for refrigerated leftovers, or freeze them.

How do I make peanut butter eggs for Easter?

Shape the filling into small flat eggs, freeze them on a parchment-lined plate for 10 minutes, then dip each one in the melted chocolate with a fork, tap off the excess and set it back on the parchment. Refrigerate for 30 minutes until set. The same amounts make about 12 eggs.

Can I make them without peanuts?

Sunflower seed butter works with the same method and amounts and gives a similar texture. Almond or cashew butter also work but contain tree nuts. Check the label of any seed butter for processing alongside peanuts if the allergy is serious.

Sources

  1. USDA FoodData Central
  2. USDA FSIS: Leftovers and Food Safety
  3. FoodSafety.gov: Cold Food Storage Chart
  4. NIDDK: Eating, Diet, and Nutrition for Celiac Disease

Read next

Desserts

Caramelized pears

Pan-caramelized pears in vegan butter, brown sugar and vanilla: which pears hold their shape, ripeness, pan heat, when to add sugar and how to serve them.

7 min read