Use an electric hand mixer to cream the butter and sugars together until fluffy.
Add the eggs and milk to the creamed sugar - mix.
Whisk flour and baking powder together. Add the wet batter - whisk the ingredients together until the flour is fully incorporated into the batter.
Gently fold the shredded carrots into the batter with a spatula or large spoon.
Fill a cupcake tin with liners and distribute the batter evenly between all the liners. Bake the cupcakes for 20 minutes or until centers are cooked through. Allow to cool for 20 minutes before frosting.