Pin it My niece called me three weeks before graduation with a request that made me smile—she wanted a cake that looked like the universe. Not just any cake, but one that captured that swirling, infinite feeling of stepping into something bigger than yourself. I'd never attempted galaxy buttercream before, but watching her face light up as I described the idea of black and purple swirls with edible stars made me determined to get it right. This cake became my love letter to new beginnings, one brushstroke of edible glitter at a time.
The night before my niece's graduation party, I was up at midnight piping the final swirls when my partner wandered into the kitchen and just stood there, watching the galaxy take shape. They didn't say anything at first, just stood beside me while I flicked white paint across the surface with a tiny brush, creating constellations only we could see. When they finally spoke, they said, "This cake is going to make her feel like she's done something incredible," and I realized that's exactly what celebration cakes are supposed to do—remind us that we're capable of creating beauty.
What's for Dinner Tonight? 🤔
Stop stressing. Get 10 fast recipes that actually work on busy nights.
Free. No spam. Just easy meals.
Ingredients
- All-purpose flour (2 ½ cups): The foundation of a tender crumb; sifting it helps prevent dense patches that can happen when flour settles during storage.
- Granulated sugar (2 cups): This sweetness balances the vanilla perfectly and creams into the butter to create that light, fluffy texture that makes the cake dissolve on your tongue.
- Unsalted butter (1 cup plus 1 ½ cups): Use softened butter, not melted—it traps air when creamed, giving you that cloud-like crumb structure.
- Eggs (4 large): Room temperature eggs blend smoothly into the batter and create lift; cold eggs can cause lumps and a denser cake.
- Whole milk (1 cup plus ¼ cup): This keeps the cake moist without making it greasy; room temperature milk incorporates evenly without shocking the batter.
- Baking powder (2 ½ tsp): The secret to that tender rise—don't skip the sifting step with flour.
- Vanilla extract (1 tbsp plus 2 tsp): Real vanilla makes a noticeable difference here, adding warmth beneath the buttercream colors.
- Powdered sugar (5 cups): Sift before measuring so your buttercream isn't grainy; lumps will show in your final piping.
- Gel food coloring (black, navy blue, purple, pink, teal): Gel colors create saturated, jewel-toned hues that look like an actual galaxy—liquid food coloring will make the buttercream too thin.
- Edible stars and glitter: These are the finishing touch that transforms a beautiful cake into a celestial masterpiece; don't skimp on quality here.
Tired of Takeout? 🥡
Get 10 meals you can make faster than delivery arrives. Seriously.
One email. No spam. Unsubscribe anytime.
Instructions
- Prepare your pans and preheat:
- Set your oven to 350°F (175°C) and line three 8-inch round pans with parchment paper—this prevents sticking and ensures even baking. Greasing under the parchment gives you extra insurance against a stuck cake.
- Cream butter and sugar:
- Beat the softened butter with sugar for 3-4 minutes until it's pale, fluffy, and noticeably lighter in color; this creaming action incorporates air that helps your cake rise. Add eggs one at a time, letting each one fully blend before adding the next, then mix in vanilla.
- Combine dry ingredients:
- Whisk flour, baking powder, and salt together in a separate bowl; this distributes the leavening agent evenly so you don't end up with random pockets of dense cake.
- Build the batter in three steps:
- Alternate adding the dry mixture and milk to your wet mixture, starting and ending with flour—this prevents overmixing, which would develop gluten and make your cake tough. Mix until just combined; a few streaks of flour are fine.
- Bake the cake layers:
- Divide batter evenly among pans and bake for 30-35 minutes until a toothpick comes out clean; start checking at 30 minutes since oven temperatures vary. The cake should spring back slightly when you gently press the top.
- Cool with patience:
- Let cakes sit in pans for 10 minutes so they firm up, then turn them onto wire racks to cool completely; this prevents them from cracking or breaking apart when you assemble.
- Make your galaxy buttercream:
- Beat butter until creamy, then gradually add sifted powdered sugar, milk, and vanilla until you have a fluffy, spreadable consistency. The gradual addition of sugar prevents lumps and keeps the buttercream smooth.
- Create your galaxy colors:
- Divide buttercream into bowls and tint each with gel coloring—use a toothpick to add color gradually so you don't overshoot and end up with muddy brown. These jewel tones are what make the galaxy effect feel cosmic and real.
- Assemble the color log:
- Place random spoonfuls of each colored buttercream onto plastic wrap, roll it into a log, and snip one end into a piping bag fitted with a large round tip; this creates the marbled effect without needing a specialized piping tip.
- Stack and crumb coat:
- Place one cake layer on your serving plate, spread a thin layer of galaxy buttercream, and repeat with remaining layers. A crumb coat—a thin layer that seals in crumbs—is essential; chill for 20 minutes before the final frosting.
- Pipe and swirl the galaxy:
- Using your color log piping bag, pipe the buttercream across the cake in gentle, irregular swirls, then use an offset spatula to blend and create that nebula effect. The key is not being too precise—real galaxies are wonderfully chaotic.
- Paint on the stars:
- Dilute white gel coloring with a tiny bit of water and use a food-safe paintbrush or splatter tool to flick stars across the surface. Let your hand move intuitively; some stars will be large and bold, others barely visible, just like in the real sky.
- Final sparkle:
- Sprinkle edible gold and silver stars and a dusting of glitter or luster dust over the cake. This last step catches the light and makes the whole thing shimmer like you've captured actual stardust.
Pin it Watching my niece walk into her graduation party and see that cake sitting on the dessert table was worth every minute of planning and piping. She gasped—actually gasped—and then immediately took seventeen photos from different angles before anyone was even allowed to slice into it. Cake can be just cake, but sometimes it becomes a memory you carry with you forever, and this one did exactly that.
Still Scrolling? You'll Love This 👇
Our best 20-minute dinners in one free pack — tried and tested by thousands.
Trusted by 10,000+ home cooks.
Why Galaxy Colors Matter
The magic of this cake lives in the color combination—black, navy blue, purple, pink, and teal work together because they mimic an actual galaxy's color palette. I learned this the hard way on my first attempt when I picked bright primary colors and ended up with a cake that looked festive but not cosmic. Real space photography shows those deep jewel tones layered together, and once I switched to gel coloring and let the colors blend naturally on the cake, suddenly it looked like I'd captured something real. The colors don't stay separated; they merge and swirl together, which is exactly what happens when you pipe them and then smooth with a spatula.
The Edible Paint Technique
Flicking white paint across a dark galaxy backdrop feels slightly terrifying the first time you do it, but it's actually one of the most forgiving decorating techniques. I held my breath during my first splatter, convinced I'd ruin everything, but the beauty is that stars are random and irregular by nature—there's no wrong way to place them. I've since learned that a food-safe paintbrush gives you more control than a splatter tool if you're nervous, and you can even use a toothpick to make individual dots if you want constellations to tell a specific story.
Celebration Cake Foundations
The cake itself is just a simple, reliable vanilla layer cake, which is actually the smartest choice for a heavily decorated design like this. A delicate or unusual flavored cake might compete with the visual drama, but vanilla lets the galaxy buttercream be the star while still providing a delicious, moist base that people actually want to eat. If you want to add flavor depth, raspberry or blueberry jam between the layers echoes the galaxy theme while staying subtle enough not to distract from the decoration.
- Pro tip: Make your cake layers a day ahead and store them wrapped at room temperature—they're actually easier to frost when they've had time to set.
- If you're short on time, this cake can be assembled, frosted, and decorated all in one day, though the components taste fresher if you space it out.
- Keep the finished cake in a cool room away from direct sunlight so the buttercream stays firm and the colors remain vibrant.
Pin it This cake is pure joy in buttercream form, and honestly, the best part is how it makes someone feel. Make this for graduations, new beginnings, or anyone who needs a reminder that they're capable of reaching for the stars.
Recipe Questions & Answers
- → How is the galaxy effect achieved on the cake?
Multiple colors of tinted buttercream are gently swirled together using an offset spatula to create a marbled galaxy appearance.
- → What type of food coloring works best for vibrant colors?
Gel food coloring is recommended for rich, vivid hues without altering the consistency of the buttercream.
- → Can this cake be made ahead of time?
Yes, the cake layers and buttercream can be prepared a day ahead and assembled just before decorating.
- → What tools are needed to create the star decorations?
White gel coloring is painted onto the cake surface using a food-safe paintbrush or splatter tool, complemented with edible star sprinkles and glitter.
- → Are there any allergy considerations?
The cake contains gluten, eggs, and dairy. Star sprinkles may have nut traces, so check packaging if allergies are a concern.