Go Back

Galaxy-Inspired Chocolate Cake

This chocolate cake features a rich, moist crumb with a deep cocoa flavor, finished with shimmering galaxy-inspired frosting that incorporates edible glitter. The recipe involves mixing and baking the batter, then decorating with a swirl of cosmic frosting that creates a swirling, starry appearance reminiscent of the night sky.
Prep Time 30 minutes
Cook Time 35 minutes
Total Time 1 hour 5 minutes
Servings: 8
Course: Main Course
Cuisine: baked goods
Calories: 450

Ingredients
  

  • 1 and 3/4 cups all-purpose flour sifted
  • 2 cups granulated sugar
  • 3/4 cup unsweetened cocoa powder preferably Dutch-processed
  • 1 and 1/2 tsp baking powder
  • 1 and 1/2 tsp baking soda
  • 1 tsp salt
  • 2 large eggs room temperature
  • 1 cup whole milk warm
  • 1/2 cup vegetable oil
  • 2 tsp vanilla extract
  • 3/4 cup boiling water
  • 1 cup dark chocolate chips
  • 1 cup edible glitter preferably galaxy-colored

Equipment

  • Mixing bowls
  • Whisk
  • Cake pan
  • Cooling rack
  • Offset spatula

Method
 

  1. Preheat your oven to 350°F (175°C). Grease your chosen cake pan and set aside.
  2. In a large mixing bowl, whisk together the sifted flour, cocoa powder, baking powder, baking soda, salt, and sugar until well combined and flour is light and airy.
  3. Add eggs, milk, vegetable oil, and vanilla extract to the dry mixture. Whisk everything together until the batter is smooth and has no lumps, about 2 minutes. It’ll be quite thick but well combined.
  4. Carefully pour in boiling water while mixing on low speed or gently folding, until the batter is thin and glossy—this helps create a moist texture.
  5. Stir in the dark chocolate chips to add rich pockets of melted chocolate throughout the crumb.
  6. Pour the batter into your prepared cake pan, smoothing the surface with an offset spatula for an even layer.
  7. Bake in the preheated oven for 35-40 minutes, or until a toothpick inserted into the center comes out clean. The cake will smell rich and chocolatey and will be slightly domed on top.
  8. Remove the cake from the oven and let it cool in the pan for 15 minutes. Then transfer it to a cooling rack and allow it to cool completely before decorating.
  9. Prepare your galaxy frosting: in a bowl, mix edible glitter into a generous amount of dark frosting or ganache, creating swirling patterns that mimic a starry sky.
  10. Spread a thin layer of frosting over the cooled cake to seal crumbs, then generously coat the entire surface. Use a spatula or piping bag to swirl the shimmer across the top, creating a galaxy effect with sparkling specks.
  11. Once the decoration is complete, admire the shimmering, swirling cosmos on your cake—then slice to reveal the moist, chocolate interior flecked with glossy chocolate chips. Enjoy this celestial treat!