01 - Preheat oven to 350°F. Line a 12-cup muffin tin with paper liners.
02 - Process 4.25 oz pistachios in a food processor until finely ground. Reserve 1-2 tbsp for garnish.
03 - Sift flour, baking powder, and salt into a bowl. Stir in the ground pistachios until evenly distributed.
04 - Beat softened butter and granulated sugar in a large bowl until light and fluffy, approximately 3 minutes.
05 - Incorporate eggs one at a time, beating thoroughly after each addition. Mix in vanilla extract.
06 - Add dry ingredients in two alternating batches with milk, beginning and ending with the flour mixture. Mix until just combined.
07 - Distribute batter evenly among the 12 prepared cupcake liners.
08 - Bake for 18-20 minutes until a toothpick inserted into the center comes out clean. Allow to cool completely before frosting.
09 - Grind 3.5 oz pistachios in the food processor. A slightly coarse texture is acceptable for added crunch.
10 - Beat butter until smooth and creamy. Gradually incorporate powdered sugar, mixing until fully combined.
11 - Mix in ground pistachios, vanilla, salt, and 2 tbsp milk. Beat until fluffy, adding additional milk if necessary to achieve desired consistency.
12 - Pipe or spread the pistachio buttercream onto the completely cooled cupcakes. Garnish with reserved ground pistachios.