Preheat your oven to 350°F. Line a cupcake pan with 12 liners. Set aside.
In a large bowl, whisk together the flour, black cocoa powder, baking powder, salt, and granulated sugar. Then, add in the vegetable oil, eggs, milk, coffee, and vanilla extract. Whisk until the cupcake batter is smooth.
Fill the 12 cupcake liners equally with all of the batter. They should each be around ⅔-¾ full. Bake for 19-22 minutes. Once done baking, they should spring back to the touch and a toothpick should come out clean. Allow the cupcakes to cool in the pan for about 10 minutes, then transfer them to a cooling rack to finish cooling completely.
For the frosting, in a large bowl or mixer, beat together the softened butter and cocoa powder until smooth, about 1-2 minutes. Add in the heavy cream, vanilla extract, and pinch of salt. Mix again, adding in the powdered sugar about a cup at a time. Once everything is combined, Beat the frosting again for another 2-3 minutes until light and fluffy.
Using a knife or a piping bag, frost the cupcakes. Enjoy as is or top with sprinkles!