Desserts
This 9-inch square cake recipe delivers perfectly moist layers and velvety vanilla buttercream that tastes like a bakery classic. đ The secret lies in precise measurements and a simple technique that even home bakers can masterâno fancy equipment required.
I've tested this recipe countless times to ensure it's foolproof, with a tender crumb and sweet frosting that melts in your mouth.
What makes this recipe stand out is its versatilityâyou can bake it as a classic vanilla cake or swap in chocolate or fruit layers for endless variations. The 350°F oven temperature ensures even baking, while the 30-minute bake time (plus cooling) keeps your kitchen from overheating.
Every slice comes out with that signature buttery richness and a delicate crumb that's impossible to resist.
The buttercream is where the magic happensâa smooth, pipeable frosting that holds its shape beautifully while staying light enough to spread effortlessly. Whether you're decorating for a celebration or simply treating yourself, this cake delivers restaurant-quality results with minimal effort.
The 9-inch square pan makes it perfect for sharing, and the layers stay fresh for days when stored properly.
For those who love customization, you can add sprinkles, fresh berries, or a drizzle of caramel on top. The recipe scales easily for larger gatherings, and leftovers reheat beautifully (if they last that long!). Let's get started on creating your perfect square cake.
Ingredients for 9 inch square cake
Nine ingredients for cake layers, six for buttercreamâsimple buttery magic in a 9-inch pan.
| 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 |
| Vanilla Extract đ¸ | 2 tsp | Pure vanilla, not imitation |
| Baking Powder đ§ | 2 tsp | Aluminum-free preferred |
| Salt đ§ | ½ tsp | Fine sea salt |
| Milk đĽ | 1 cup | Whole milk for richness |
| Powdered Sugar đ | 4 cups | For buttercream, sifted |
| Heavy Whipping Cream đĽ | 1 cup | Full-fat, cold |
| Vanilla Bean Paste đ¸ | 1 tbsp | Or 1 tsp pure extract |
| Lemon Juice đ | 1 tsp | Freshly squeezed |
| Unflavored Gelatin đ§ | 1 ½ tsp | Bloomed in 3 tbsp water |
The flour matters hereâKing Arthur or Gold Medal are my go-tos for that tender crumb. Butter? PlugrĂĄ or Land O'Lakes work perfectly, but avoid salted (trust me on this). Eggs should be room temperatureâcold ones make the batter lumpy. For vanilla, McCormick Pure Vanilla is reliable, but a scraped vanilla bean adds depth. The baking powder is non-negotiableâAluminum-free ensures no metallic taste. Milk? Whole milk gives the richest crumb, but 2% works in a pinch. Sift everythingâno lumps means perfect layers.
No vanilla bean paste? Double the extractâjust donât skimp. Substituting powdered sugar? Confectioners sugar works, but itâs finer and may need extra cream. For a lighter texture, replace 1/4 cup milk with unsweetened almond milk. Buttercream too stiff? Warm the cream slightly before whipping. No gelatin? Marshmallow fluff at half the amount adds stability. The lemon juice brightens the buttercreamâfresh is best, but bottled works if youâre in a hurry. And if youâre baking for a crowd, double the recipeâjust use two 9-inch pans.
Store layers wrapped in plastic at room temp for 2 days, or freeze for 3 months. Buttercream? Keep in an airtight containerâitâll last 5 days in the fridge or 6 months frozen. To reheat, cover with a damp towel and microwave for 10 seconds. Pro tip: Assemble the cake the day beforeâflavors meld beautifully overnight. And if youâre feeling fancy, dust with powdered sugar or add fresh berries before serving.
Why You'll Love This Recipe
- No Mixer Needed: I swear by this recipe when Iâm in a hurryâjust cream the butter and sugar by hand (or use a fork in a pinch), then fold in the eggs and vanilla. The batter comes together in minutes, and honestly? Youâll never miss the stand mixer.
- Vanilla Butter Bliss: That simple combo of vanilla extract and unsalted butter makes this cake ridiculously goodâmoist, buttery, and with just the right sweetness. Itâs the kind of flavor that makes people ask, âWhatâs in this?â (Spoiler: not much.)
- Portion Control Perfection: A 9-inch square is the ideal size for meal prepâslice it into four perfect squares, and youâve got grab-and-go treats for the week. Or bake two pans for a crowd, then freeze half for later. No waste, all satisfaction.
- Budget-Friendly Staples: This recipe uses pantry basicsâflour, sugar, butter, eggsâthat you already own. Iâve made it at least 12 times, and the cost per serving is laughably cheap. Plus, the leftovers? Even better the second day.
Step-by-step instructions for layered vanilla buttercream bliss
Here's how to bake a perfectly moist square cake with silky buttercream layersâno shortcuts, just foolproof technique.
đł Step 1: Cream Butter and Sugar to Peak Volume
In a stand mixer fitted with the paddle attachment, beat the 1 cup unsalted butter and 1.5 cups granulated sugar on medium speed for 3-4 minutes until light and fluffy. You're aiming for a pale, airy texture that nearly doubles in volumeâthe butter should leave faint ribbons when the beaters are lifted.
This creaming process incorporates air, which creates that tender crumb in your cake. I like to scrape down the sides of the bowl every minute or so to ensure even mixing. If your butter isn't room temperature, you'll know because it won't blend smoothlyâstop and let it sit for another 10 minutes if needed.
đ¨âđł Step 2: Incorporate Eggs and Dry Ingredients
Add the 3 whole large eggs, one at a time, mixing well after each addition until fully incorporated. Then stir in the 2 tsp vanilla extract and 1 tsp lemon juice. The lemon juice might seem odd, but it brightens the flavor and helps balance the richness.
In a separate bowl, whisk together the 2.5 cups all-purpose flour, 2 tsp baking powder, and 0.5 tsp salt. With the mixer on low speed, gradually add the dry ingredients to the wet mixture, mixing just until combined. Don't overmixâyou should still see a few flour streaks. Overmixing develops gluten, which makes cakes tough instead of tender.
đł Step 3: Fold in Milk for Perfect Texture
Add the 1 cup milk to the batter and mix on low speed until just combined. The batter should be smooth but slightly thickâlike a thick pancake batter. If it looks too thin, add 1-2 tablespoons more flour. Pour the batter into a 9-inch square baking pan lined with parchment paper, smoothing the top with a spatula.
Here's the thingâdon't tap the pan on the counter to remove air bubbles. Instead, use an offset spatula to gently tap the sides of the pan while holding it at a slight angle. This prevents sinkholes in the center while baking. Bake at 350°F for 30-35 minutes until a toothpick inserted in the center comes out clean and the edges pull away slightly from the pan.
â° Step 4: Make the Vanilla Buttercream Filling
While the cake bakes, prepare the buttercream by beating the 1 cup heavy whipping cream to stiff peaks in a chilled bowl. In a separate bowl, beat the 1 cup unsalted butter (yes, we're using more butterâtrust me) until smooth, then gradually add the 4 cups powdered sugar and the 1 tbsp vanilla bean paste.
Fold in the whipped cream until fully combined, then add the 1.5 tsp unflavored gelatin that's been bloomed in 3 tbsp water (previously heated to dissolve). Mix until smooth and spreadable. This buttercream is rich enough to hold its shape between layers but light enough to not overwhelm the cake.
đĽ Step 5: Assemble and Chill for Perfect Layers
Once the cake has cooled completely, level the top if needed. Spread half of the buttercream evenly over the cake layer, then add a second identical layer baked the same way (or use a single thick layer if preferred). Spread the remaining buttercream on top and sides, using a bench scraper for clean edges.
Chill the assembled cake for at least 2 hours (or overnight) before slicing. This resting period lets the flavors meld and the buttercream set properly. When you're ready to serve, slice with a hot knife for clean cutsâwipe the knife between slices to prevent sticking. Each bite should deliver that perfect balance of moist cake and velvety buttercream.
Pro Tips For Making 9 Inch Square Cake
- Cream Butter and Sugar Slowly: I learned this the hard wayâdumping cold butter into sugar and whipping it all at once just makes a greasy mess. Instead, beat the butter and sugar on medium-high for 2-3 minutes first, then add the eggs one at a time while scraping the bowl. The dough will come together smoother, and youâll avoid that weird, dense texture.
- Sift the Flour First: Skipping this step is how you end up with a cake that looks like itâs been through a blender. Sift the flour into the butter-sugar mix in thirds, then gently fold it in with a spatulaâdonât overmix, or youâll toughen the gluten. (Yes, even if youâre impatient like me.)
- Donât Overbake the Edges: The second that toothpick comes out clean is not the time to pull your cake. Square cakes dry out faster than round ones, so check for doneness 2-3 minutes early. Cover it with foil 5 minutes before the recipe says to pull itâthis keeps the center moist while the edges finish.
- Use Room-Temp Eggs: Cold eggs? Theyâll curdle your butter mixture faster than you can say âdisaster.â Pop the eggs out of the fridge 30 minutes before mixingâthis ensures they blend smoothly into the batter. (Pro move: Crack them into a separate bowl first to avoid shell surprises.)
Dietary considerations for these flavors
Gluten-Free Adaptations
Swap the 2.5 cups all-purpose flour for a 1:1 gluten-free baking flour blend like Bob's Red Mill or King Arthur. These blends include xanthan gum for structure, but add ½ tsp extra xanthan gum if your blend doesn't contain it.
I've found gluten-free cakes benefit from an additional 1 tbsp cornstarch to improve moisture retention. Bake at 325°F instead of 350°F to prevent over-browning, and check doneness at 25 minutesâgluten-free cakes can dry out faster. đž
Dairy-Free Options
Replace the 1 cup unsalted butter with 1 cup dairy-free butter like Miyoko's or Earth Balance, and swap the 1 cup milk for 1 cup unsweetened almond milk or coconut milk. For the buttercream, use 1 cup coconut oil (solid) instead of butter, and ensure your powdered sugar is dairy-free.
The gelatin in the buttercream stays dairy-free, but if you prefer vegan gelatin, try agar-agar (use ½ tsp agar-agar bloomed in 3 tbsp water).
Nut-Free Considerations
If nut allergies are a concern, stick to the original recipe but use oat milk instead of almond milk and verify your powdered sugar is nut-free. For buttercream, ensure your vanilla bean paste is processed in a nut-free facility.
I recommend Ghirardelli vanilla bean paste for its clean ingredients. Always double-check labels on store-bought ingredients like butter and milk to avoid cross-contamination. A simple swap like this keeps the cake safe and delicious for everyone. đ
Sugar-Free Versions
For a lower-sugar option, reduce the 1.5 cups granulated sugar to 1 cup and replace the remaining ½ cup with ½ cup erythritol or monk fruit sweetener. In the buttercream, use 3 cups powdered sugar substitute (like Lakanto) and add 1-2 tbsp unsweetened applesauce to maintain moisture.
Keep in mind that sugar substitutes can alter textureâexpect a slightly denser cake. Bake as directed but monitor closely after 20 minutes to prevent over-browning. đ
Egg-Free Substitutions
Replace the 3 large eggs with 3 tbsp ground flaxseed mixed with 9 tbsp water (let sit for 5 minutes to gel) or ½ cup unsweetened applesauce. For the buttercream, use 1 cup coconut cream (chilled overnight) instead of whipped creamâit whips up similarly.
The gelatin in the buttercream remains safe for egg-free diets. Test the batter consistency carefullyâegg substitutes can make the batter thinner, so you may need to add 1-2 tbsp extra flour to achieve the right texture. đĽ
Allergen-Friendly Tips
To minimize cross-contamination, use separate utensils and bowls for allergen-free ingredients. Wipe down your mixer and baking pan with a damp cloth before use. For a truly safe environment, consider baking in a dedicated allergen-friendly kitchen or using disposable baking cups.
Always label your cake clearly for guests with dietary restrictions. I've found that baking in a light-colored metal pan (like anodized aluminum) helps prevent flavor transfer from previous baked goods. đ§
Nutrition facts
Frequently asked questions
Can I bake this in a different-sized pan?
Yes, but adjust the baking time and temperature. For an 8-inch square pan, bake at 350°F for 25-30 minutes, while a 10-inch pan needs 35-40 minutes. Always use a toothpick test to check doneness. The batter thickness is designed for a 9-inch pan, so thinner pans may need slightly less batter to avoid overflow.
How do I prevent the cake from cracking?
Cracking usually happens when the cake cools too quickly. Let it cool in the pan for 10 minutes before transferring to a wire rack. Avoid opening the oven door earlyâtemperature fluctuations cause cracks. If you notice cracks while baking, cover the cake loosely with foil for the last 10 minutes to slow cooling.
Can I make this cake in a box mixer?
Use the paddle attachment and mix on medium speed for 4-5 minutes when creaming butter and sugar. For the buttercream, use the whisk attachment to whip the cream to stiff peaks. Just be patientâhand mixers take a bit longer. Scrape the bowl often to ensure even mixing and prevent overheating.
Why is my buttercream too runny?
Buttercream turns runny when it's too warm or has too much liquid. Chill your mixing bowl and beaters for 10 minutes before whipping cream, and ensure your butter is only slightly softened. If it's still too thin, add 1-2 tablespoons powdered sugar at a time. For extra stability, let the buttercream sit at room temperature for 30 minutes before assembling the cake.
How do I store leftovers?
Wrap the cake tightly in plastic wrap and store at room temperature for up to 2 days. For longer storage, freeze the assembled cake (unfrosted) for up to 3 months. To serve, thaw overnight in the fridge and bring to room temperature before slicing. Reheat individual slices in the microwave for 10-15 seconds for that fresh-baked warmth.
