Preheat oven to 350 degrees. Line the cupcake pan with paper liners.
Using a medium bowl, whisk flour, baking powder, salt, and baking soda.
In a separate mixing bowl, beat butter with an electric mixer on medium high for 30 seconds.
Add sugar and the pistachio extract to the butter and beat until combined.
Add eggs one at a time, beating well after each addition.
Alternate the flour mixture and almond milk to butter mixture, beating on low speed until everything is well mixed together.
Fill the cupcake liners 3/4 full with cake batter.
Bake at 350 degrees for 20–25 minutes.
Allow to cool in the cupcake pan for 10 minutes.
Remove cupcakes from pan and allow to cool completely on wire rack.