Preheat the oven to 350°F and line your cupcake tray with liners.
In a large bowl, mix the flour, cocoa powder, baking powder, sugar, and salt.
In a separate bowl, whisk the oil, egg, and vanilla extract.
Pour half of the egg mixture and half of the milk into the dry ingredients, whisking gently for a few seconds.
Add the remaining wet ingredients and stir just until combined. Do not overmix.
Spoon the batter into each lined cup, filling them about 3/4 full.
Bake for 20 to 24 minutes or until a toothpick inserted into the center comes out clean.
Let the cupcakes rest in the cupcake pan for 5 minutes, then transfer them to a wire rack to cool completely.