Preheat the oven to 375 degrees.
In a large mixing bowl add your wet ingredients. Mix your milk, sugar, eggs, oil, vanilla, sourdough discard and salt. You can add your brewed coffee now, but I like to wait and add it at the end.
Whisk it all together until fully combined. You can also use a stand mixer to mix this cake batter.
Now add your dry ingredients; flour, cocoa powder, baking soda, baking powder. Mix this into your wet ingredients and mix just until combined.
Grease your pans. You can use cupcake pans, 8 or 9 inch rounds or a 9 by 13 pan.
You can also add flour to the pans after greasing them to help release the cake from the pan. Pour the mixture into your pans, distributing it evenly. The cake should reach about 1/2 to 2/3 way up the pan.
Bake in the oven for the time indicated. 9 by 13 pan 30-35 min, cupcakes 15-20 min, 8 inch round pans 20-25 min. Bake until toothpick comes out clean.
Once the cake is done, remove it from the pans, (unless you are using a 9by 13 pan, you can leave it in this pan). Let them cool on a cooling rack for at least 1 hour. You want the cake to be completely cooled before icing it.
I like to ice it with my chocolate buttercream recipe or my peanut butter frosting recipe. Both are amazing!
Assemble your cakes. Frost your cake or cupcakes with the icing of your choice.
Cut and enjoy!