Desserts
This 8-inch square yellow cake recipe delivers a perfect balance of tender crumb, crispy topped edges, and those signature vanilla bean swirls that make every slice feel like a treat. 💛 The secret lies in precise mixing techniques and a high-heat bake that creates that coveted caramelized crust while keeping the interior moist. I've baked this exact recipe for countless birthdays and celebrations—it's the one people always ask for seconds on.
The recipe starts with a simple yet foolproof batter that uses buttermilk for moisture and vanilla extract for depth. A thin layer of vanilla bean frosting gets swirled into the batter before baking, creating those beautiful marbled patterns that disappear into luscious cake. The crispy edges come from a quick broil at the end, which gives it that bakery-style finish without drying out the center.
What you'll end up with is a cake that's perfectly portioned for individual servings, with a tender crumb that melts in your mouth and a slightly crispy top that adds texture contrast. The vanilla bean swirls peek through the frosting, offering bursts of authentic vanilla flavor in every bite. This is the kind of cake that makes you look like a pro—even if you've never baked before.
Serve it with whipped cream, fresh berries, or a dusting of powdered sugar for a classic presentation. The recipe also includes tips for adjusting the frosting consistency and troubleshooting common baking issues. Let's get started on creating this crowd-pleasing dessert!
Ingredients for 8 inch square yellow cake
Eight simple ingredients, one showstopping cake with crispy edges and vanilla swirls you'll want seconds of.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 2 ¼ cups | Sifted for light texture |
| Granulated Sugar 🍚 | 1 ½ cups | White or light brown |
| Unsalted Butter 🧈 | 1 cup | Room temperature, full-fat |
| Large Eggs 🥚 | 3 whole | Room temperature, separated |
| Buttermilk 🥛 | 1 cup | Cold, not cultured |
| Pure Vanilla Extract 🌿 | 2 tsp | Bottled, not imitation |
| Baking Powder 🧂 | 2 tsp | Diamond Crystal preferred |
| Salt 🧂 | ½ tsp | Fine sea salt |
| Vanilla Bean Frosting 🍰 | 1 ½ cups | Homemade or quality store-bought |
| Powdered Sugar 🍚 | 1 cup | Sifted for smooth frosting |
| Heavy Whipping Cream 🥛 | ½ cup | Cold for whipped topping |
| Vanilla Bean Seeds 🌿 | 1 whole | Scraped from 1 vanilla bean |
The butter and eggs are non-negotiable for that tender crumb. Use European-style butter if you can find it—higher fat content means richer flavor and better texture. For the vanilla bean frosting, Trader Joe's or Williams Sonoma carry pre-made ones that save time, but homemade (just powdered sugar, cream, and scraped vanilla seeds) tastes 100x better. The buttermilk should be cold—room temperature makes the cake gummy. Sift the flour and baking powder together to avoid lumps, which is why I always keep a fine-mesh sieve handy.
No buttermilk? Mix 1 cup milk + 1 tbsp vinegar or lemon juice and let sit 5 minutes. Short on vanilla extract? 1 vanilla bean scraped + 1 tsp alcohol works just as well. The frosting can be made ahead—it actually tastes better after resting overnight. For the crispy edges, don't skip the broil step, but watch it like a hawk—2-3 minutes max or it'll burn. The cake cuts beautifully into 16 perfect squares, which is why this is my go-to for parties.
Store the cake in an airtight container with parchment between layers for up to 3 days. Freeze for up to 3 months if you're prepping ahead. The frosting keeps for 1 week in the fridge—just whip it back up before using. I always make a double batch of frosting because it disappears fast. Leftovers? Toast them lightly—they make amazing French toast the next morning.
Why You'll Love This Recipe
- No Mixer Needed: I swear by this recipe when I’m in a rush—just cream the butter and sugar by hand (or use a fork if you’re really lazy), then fold in the buttermilk and eggs. The cake turns out tender and moist without a single whisk stroke.
- Buttermilk Magic: That tangy buttermilk is the secret weapon here—it keeps the cake ultra-moist without being dense. Honestly? The first time I skipped it, I regretted it instantly. Now it’s non-negotiable.
- Leftovers That Last: An 8-inch pan is perfect for portions—slice it for breakfast the next morning, or stash pieces in the freezer for a quick snack. (Yes, even on a Tuesday night.) It reheats beautifully, too.
- Budget-Friendly Staples: Flour, sugar, butter—these are pantry basics you already own. No fancy ingredients, no markup. I’ve made this cake for birthdays, potlucks, and even just because I wanted dessert, and it never lets me down.
Step-by-step instructions for vanilla bean frosting swirls and crispy topped cake
Here's how to bake a showstopping yellow cake with that perfect crispy edge and luscious frosting swirls.
👨🍳 Step 1: Mix Dry Ingredients and Cream Butter and Sugar
First, sift together the 2.25 cups all-purpose flour, 2 tsp baking powder, and 0.5 tsp salt in a medium bowl. Set aside. In a separate large bowl, beat the 1 cup unsalted butter and 1.5 cups granulated sugar on medium speed with an electric mixer until light and fluffy—about 3-4 minutes. You'll see it nearly double in volume and turn pale. This step is crucial for that tender cake texture we're after.
I like to scrape down the sides of the bowl every 30 seconds to make sure everything gets evenly incorporated. The butter should be completely smooth with no visible lumps. If you're using room-temperature butter, this process will be easier—just don't rush it. The mixture should look like thick, pale ribbon when you lift the beaters.
🍳 Step 2: Add Eggs, Vanilla, and Buttermilk
Add the 3 whole large eggs one at a time, mixing well after each addition. Then stir in the 2 tsp pure vanilla extract and 1 cup cold buttermilk. Mix on low speed just until combined—about 20 seconds. You want to avoid overmixing here, or the cake will turn out dense instead of light and airy.
Here's where it gets fun: gradually add the dry ingredients to the wet mixture, mixing on low speed just until the flour disappears. The batter will be thick and slightly lumpy, and that's exactly what we want. Don't overmix—stop as soon as the flour is incorporated. The cake will still rise properly with that slightly uneven texture.
🔥 Step 3: Bake for Perfect Rise and Crispy Edge
Preheat your oven to 350°F and grease an 8-inch square baking pan thoroughly with butter or baking spray. Pour the batter into the prepared pan and smooth the top with a spatula. For that crispy edge you're after, sprinkle 1 tablespoon granulated sugar evenly over the top of the batter—this creates a caramelized crust during baking.
Bake for 30-35 minutes until a toothpick inserted in the center comes out clean and the edges are deep golden brown. The cake should spring back slightly when you press the center gently. Real talk: your oven might run hot, so start checking at the 25-minute mark. If the top browns too quickly, tent it loosely with foil after 20 minutes to prevent over-browning.
🥘 Step 4: Cool and Prepare Frosting Swirls
Let the cake cool in the pan for 10 minutes, then transfer it to a wire rack to cool completely. While it cools, prepare the frosting swirls by whipping together the 1 cup powdered sugar, 0.5 cup heavy whipping cream, and 1 whole vanilla bean seeds (scraped from the bean) until soft peaks form. This should take about 2-3 minutes with an electric mixer.
Spread about 1 cup of the vanilla bean frosting evenly over the completely cooled cake layer. Then use a knife to create swirls through the frosting, spreading it to the edges. The remaining 0.5 cup frosting can be used for decorating or as extra topping if desired. This step is what gives the cake its signature professional look—those elegant swirls make all the difference!
🍽️ Step 5: Add Final Frosting and Serve
Once the cake has fully cooled, spread the remaining 1.5 cups vanilla bean frosting over the top and sides using an offset spatula. For that perfect finish, pipe a decorative border around the edges using a piping bag fitted with a star tip. The contrast between the crispy sugar-topped edge and the smooth frosting will be stunning.
Slice and serve immediately. Each piece should have that perfect balance of tender crumb, crispy edge, and rich vanilla frosting. The cake keeps well at room temperature for 2 days, but it's best enjoyed fresh when the frosting is at its peak texture. Trust me, this crispy-topped, swirled cake will be the star of any dessert table!
Pro Tips For Making 8 Inch Square Yellow Cake
- Use Room-Temp Ingredients: Cold butter and eggs are the silent cake killers. Take your butter out 1 hour before baking and let those eggs sit in warm water for 5 minutes—this ensures smooth mixing and even baking. (Yes, I’ve made the mistake of skipping this when rushed, and the crumb suffers.)
- Mix Just Until Combined: Overmixing turns your tender yellow cake into a dense brick. Stop as soon as the flour disappears—about 30 seconds after the last addition. The batter should look slightly lumpy, not like pancake batter. (Trust me, your cake will thank you.)
- Test Doneness with a Toothpick: A clean toothpick isn’t the only sign—pull it out and check for slight crumbs clinging to it. If it comes out dry, your cake’s overdone and will be crumbly. For this size pan, aim for 30–35 minutes at 350°F, but always verify. (I learned this after one batch turned out like a sponge.)
- Grease the Pan Well: Butter the pan and then dust with flour—but don’t skip the flour. Tap out the excess so it’s lightly coated, not floured-up. This prevents sticking and ensures clean slices. (I used to rush this, and the cake would tear when unmolded.)
Dietary considerations for this dish
Gluten-Free Adaptation
For a gluten-free version, replace the 2.25 cups all-purpose flour with a 1:1 gluten-free baking blend like Bob's Red Mill 1-to-1 or King Arthur Measure for Measure. Add 1 extra teaspoon of xanthan gum to improve texture. Since gluten-free flours absorb more moisture, reduce the buttermilk to ¾ cup and increase the powdered sugar in the frosting to 1.25 cups for better stability. Bake at 325°F instead of 350°F to prevent over-browning. 💛
Dairy-Free Options
Swap the 1 cup unsalted butter for 1 cup dairy-free butter (like Miyoko's or Earth Balance) or coconut oil. Replace the 1 cup buttermilk with 1 cup unsweetened almond milk mixed with 1 tablespoon white vinegar or lemon juice. For the frosting, use ½ cup coconut cream instead of heavy whipping cream. Chill all dairy-free ingredients for 30 minutes before mixing to mimic the texture of traditional butter and cream. ✨
Egg-Free Substitutions
Replace the 3 whole eggs with 3 tablespoons ground flaxseed mixed with 9 tablespoons water, rested for 5 minutes to thicken. For the frosting, use ½ cup aquafaba (chickpea brine) whipped to stiff peaks instead of cream. Add 1 teaspoon cream of tartar to stabilize the aquafaba. Bake the cake at 350°F for 35-40 minutes—egg-free cakes often need extra time to set. 🌱
Lower Sugar Version
Reduce the 1.5 cups granulated sugar to 1 cup and replace ½ cup with ½ cup unsweetened applesauce or mashed banana. For the frosting, use ½ cup powdered erythritol or monk fruit sweetener blended with 1 cup powdered sugar (50/50 mix). Add 1 teaspoon vanilla bean paste to intensify flavor. The cake will be slightly denser but still moist—perfect for those watching sugar intake. 💡
Nut-Free Allergy Safety
Check all packaged ingredients (like vanilla extract and baking powder) for nut cross-contamination warnings. Use a dedicated nut-free kitchen space if needed. For the frosting, opt for coconut-free whipped topping (like Reddi-wip) if coconut allergies are a concern. Store all ingredients in sealed containers to prevent accidental contamination. Always label the cake clearly for guests with allergies. 🛡️
Nutrition facts
Frequently asked questions
Why does this recipe use an 8-inch square pan instead of a round one?
The square pan creates perfectly portioned individual slices (16 total) with clean edges, making it ideal for parties or buffets. The crispy edges develop more evenly in a square shape, and the frosting swirls look especially elegant when sliced into neat rectangles. Plus, it's easier to transport than a round cake!
Can I make this cake without a vanilla bean?
Use 2 teaspoons vanilla extract instead, or scrape seeds from 1 vanilla bean and mix them into the frosting. For extra flavor, add ½ teaspoon vanilla bean paste to the batter. The frosting will still have that signature vanilla aroma without the whole bean.
How do I prevent the cake from cracking or sinking in the middle?
Don't overmix the batter—stop as soon as the flour disappears. Also, ensure your butter and eggs are room temperature, and measure flour accurately (spoon and level). Bake until a toothpick comes out clean but not before 30 minutes. If your oven runs hot, tent the cake with foil after 20 minutes.
Can I bake this cake ahead of time?
Yes! Bake it 1 day ahead and store it in an airtight container at room temperature. Re-whip the frosting before serving. For longer storage (3 months), wrap the unfrosted cake tightly in plastic and freeze. Thaw overnight in the fridge before frosting and serving.
What's the best way to serve this cake?
Slice into 16 perfect squares and serve with whipped cream, fresh berries, or a dusting of powdered sugar. For a festive touch, add edible gold leaf or chocolate shavings. The crispy edges make it perfect for cutting with a serrated knife—no crumbly mess!
