Preheat oven to 350°.
Add softened butter to a mixing bowl and mix for 1 minute.
Add sugar, egg, molasses, vanilla, salt, and spices. Mix for 2 minutes on medium speed.
Turn the mixer down to low and add the milk. Mix until incorporated.
Add flour, baking powder, baking soda, and a pinch of salt to a separate bowl and stir with a fork.
Turn the mixer on low and slowly add the flour mixture.
Once the flour mixture is all added, turn the mixer up to medium and mix until fully incorporated.
Add cupcake papers to a cupcake pan and fill them 3/4 of the way with the cupcake mixture.
Bake for 21-25 minutes.
Cool completely before frosting.