This chocolate cake recipe is simple, quick, and perfect for any occasion.
Preheat your oven to 350°F (175°C) and grease a cake pan.
Greasing the pan ensures the cake doesn't stick, making it easier to remove.
In a mixing bowl, combine the flour, sugar, baking powder, salt, and cocoa powder.
Sifting the dry ingredients together helps to avoid lumps and ensures an even mix.
Add the vanilla extract, warm water, and vegetable oil to the dry ingredients and mix until smooth.
Mix just until combined to avoid overworking the batter, which can make the cake dense.
Pour the batter into the prepared cake pan and smooth the top.
Tap the pan gently on the counter to release any air bubbles.
Bake in the preheated oven for 20-25 minutes, or until a toothpick inserted into the center comes out clean.
Check the cake a few minutes before the minimum baking time to prevent overbaking.
Remove the cake from the oven and let it cool in the pan for 10 minutes before transferring to a cooling rack.
Cooling the cake slightly in the pan helps it set and makes it easier to handle.
Frost or decorate the cake as desired before serving.
Let the cake cool completely before frosting to prevent the frosting from melting.