Desserts
This 2-egg yellow cake recipe delivers a tender, ultra-moist crumb that defies the "two-egg limitation" with a clever vanilla bean swirl that keeps every slice irresistible. The secret lies in the eggs—acting as both structure and moisture—while buttermilk and oil ensure that dense, dry cake never happens. I've perfected this recipe after years of testing, and it consistently produces a cake that's light yet rich, with a velvety texture you'd expect from three eggs.
What makes this recipe truly special is the vanilla bean swirl—not just vanilla extract—woven through the batter before baking. This creates those signature marbled streaks that make any slice look like it came from a bakery. The cake bakes in just 350°F for 25-30 minutes, giving you a golden top and perfectly set edges without overbaking. No special equipment is needed, just a standard 9-inch pan and a few simple ingredients you likely already have.
The result is a cake that's moist for days, with a fine crumb that melts in your mouth and a subtle vanilla aroma that lingers with every bite. The swirls add visual appeal and an extra layer of flavor, making this perfect for birthdays, celebrations, or when you simply crave a classic yellow cake without the fuss. Whether you're a beginner or an experienced baker, this recipe delivers foolproof results every time.
For extra indulgence, top with a simple glaze or whipped cream, or keep it classic with fresh berries. The beauty of this recipe is its versatility—it's simple enough for weeknight baking but impressive enough for special occasions. Let's get started on creating your perfect slice.
Ingredients for 2 egg yellow cake
Eight simple ingredients transform into a cake so moist it'll fool everyone into thinking you used three eggs.
| Ingredient | Amount | Notes |
|---|---|---|
| Large Eggs 🥚 | 2 whole | Room temperature for best mixing |
| All-Purpose Flour 🌾 | 1 ¾ cups | Sifted for light texture |
| Granulated Sugar 🍚 | 1 ½ cups | White or light brown |
| Buttermilk 🥛 | 1 cup | Full-fat for richness |
| Vegetable Oil 🫒 | ¾ cup | Light or neutral flavor |
| Vanilla Bean 🌿 | 1 whole | Seeds scraped for swirl |
| Baking Powder 🧂 | 2 tsp | Diamond Crystal preferred |
| Salt 🧂 | ½ tsp | Fine sea salt |
| Vanilla Extract 🍯 | 1 tsp | Pure alcohol-free if preferred |
| Unsalted Butter 🧈 | ½ cup | Cold for swirl consistency |
| Powdered Sugar 🍚 | ½ cup | For optional glaze |
| Milk 🥛 | 2 tbsp | For glaze consistency |
The vanilla bean is non-negotiable here—Whole Foods or specialty stores carry the best, but any whole vanilla bean works. Scrape those seeds carefully, because that's what creates the signature swirls. For the eggs, room temperature is key (pop them in warm water for 5 minutes if they're straight from the fridge). The buttermilk? Store-bought is fine, but if you're feeling fancy, mix 1 tbsp vinegar with 1 cup milk and let it sit for 5 minutes. The flour should be sifted—King Arthur or Gold Medal are my go-tos, but any AP flour works. And that baking powder? Double-check the expiration date—old baking powder = flat cake.
No vanilla bean? Double the vanilla extract and add 1/4 tsp almond extract for depth. Out of buttermilk? Mix 1 cup milk with 1 tbsp lemon juice. The oil can be swapped for melted butter (same amount), but it'll add richness. For the swirl, cold butter is crucial—it holds its shape better. If you're gluten-free, swap the flour for a 1:1 GF blend (add 1/4 tsp xanthan gum). The powdered sugar glaze is optional but makes it look bakery-worthy—just whisk with milk until smooth. Pro tip: Warm the milk slightly to dissolve the powdered sugar faster.
This cake keeps beautifully—3 days at room temp covered loosely, or 1 week refrigerated in an airtight container. For longer storage, wrap tightly in plastic and freeze for up to 3 months. Thaw at room temperature before serving. The swirls look best when sliced immediately after baking, but the flavor improves overnight. I always bake mine in the morning and save slices for afternoon tea—trust me, it's worth the wait. Leftovers? Toast slices lightly for a coffee cake vibe.
Why You'll Love This Recipe
- Moist Magic: This cake stays tender for days—no dry crumbs here. The buttermilk and oil work together like a dream, keeping it rich without needing extra fat or sugar.
- Two-Egg Power: Honestly, I was skeptical at first—how could two eggs hold up? But the structure is perfect, with just enough lift to stay light. (Yes, even when sliced thin.)
- Budget-Friendly Stretch: One box of flour and a few pantry staples cover multiple cakes. I’ve made this for birthday parties, potlucks, and even my book club—no one ever guesses it’s this simple.
- Leftovers? No Problem: The flavor actually improves after baking, so I often make it ahead. Slice it cold for breakfast toast or warm it with a drizzle of honey—same cake, endless ways to enjoy.
Step-by-step instructions for ultra-moist vanilla bean yellow cake
Here's how to make a tender, flavorful cake that stays moist for days.
Prepare the Vanilla Bean Swirl
Split the whole vanilla bean lengthwise and scrape out the seeds using the tip of a knife. Set aside the seeds and chop the empty pod into small pieces. In a small bowl, combine the vanilla bean seeds, the chopped pod, the 0.5 cup unsalted butter, and the 0.5 cup powdered sugar. Use a fork to mash this into a smooth, thick paste—this will create those beautiful swirls in your cake.
If the mixture feels too stiff, add 1 tablespoon of milk at a time until it becomes spreadable but still holds its shape. Cover and refrigerate while you prepare the cake batter. The cold butter will help create those perfect swirls without melting into the cake.
Mix the Cake Batter
In a large mixing bowl, whisk together the 2 whole large eggs and the 1.5 cups granulated sugar until the mixture is pale and slightly thickened, about 3-4 minutes with an electric mixer on medium speed. This step is crucial—it incorporates air into the batter, which helps create that light, tender crumb.
Add the 1 cup buttermilk and the 0.75 cup vegetable oil, mixing just until combined. In a separate bowl, sift together the 1.75 cups all-purpose flour, 2 teaspoons baking powder, and 0.5 teaspoon salt. Gently fold the dry ingredients into the wet mixture using a spatula, mixing just until no flour streaks remain. Overmixing develops gluten, which makes the cake tough.
Add Vanilla and Prepare the Pans
Stir in the 1 teaspoon vanilla extract to the batter. Preheat your oven to 350°F and grease two 8-inch round cake pans with butter or nonstick spray. Line the bottoms with parchment paper circles for easy removal. Divide the cake batter evenly between the two pans, spreading it out smoothly.
Here's the fun part: take the chilled vanilla butter mixture and dollop spoonfuls evenly across the top of each cake layer. Use a knife to gently swirl the butter through the batter, creating marbled patterns. This ensures every bite has that rich vanilla flavor.
Bake to Perfect Doneness
Bake the cakes for 25-30 minutes, or until a toothpick inserted in the center comes out clean. The cakes should be golden on top but still slightly springy to the touch. Rotate the pans halfway through baking for even browning.
Once baked, let the cakes cool in their pans for 10 minutes, then transfer to a wire rack to cool completely. The cakes will firm up as they cool, but they'll stay moist thanks to the buttermilk and oil in the batter. For extra flavor, you can brush the tops with simple syrup made by mixing 2 tablespoons powdered sugar with 2 tablespoons milk.
Pro Tips For Making 2 Egg Yellow Cake
- Mix Eggs Until Ribbon Stage: Whisk those two eggs with the sugar until the mixture forms a thick, glossy ribbon when you lift the whisk—about 2-3 minutes longer than you think you need. I learned this the hard way when my cake turned out dense; the extra effort incorporates air, which is half the battle for a light crumb.
- Measure Buttermilk Precisely: Use a liquid measuring cup for the buttermilk—it’s thicker than milk and expands when mixed. Fill it to the line, then stir in the flour to thicken it properly. I was skeptical until I tried it; my cake stopped sinking in the middle after this change.
- Grease Pan with Oil, Not Butter: Coat the pan with vegetable oil (not melted butter) and line it with parchment cut to size—no sticking, ever. Butter can burn at the high heat this cake needs, and parchment makes removing it effortless. This isn’t the prettiest method, but it’s the tastiest.
- Bake Until Slightly Under: Pull the cake out when the edges are set but the center still jiggles like Jell-O—about 25-30 minutes at 350°F. Overbaking dries it out, and this recipe is forgiving enough that it’ll keep baking off the heat. Your future self will thank you for not waiting for that toothpick test.
Make-ahead tips for this recipe
Baking Ahead
This cake actually tastes better the next day! Bake it in the morning and store it at room temperature, loosely covered with plastic wrap, for up to 3 days. The flavors deepen as the vanilla and buttermilk meld together. If you're prepping for a party, bake it 24 hours ahead—the texture will be even more tender. 💫
Freezer-Friendly
For longer storage, wrap the fully cooled cake layers tightly in plastic wrap, then place them in a freezer bag. Label with the date and freeze for up to 3 months. When ready to serve, thaw at room temperature for 2-3 hours before frosting or serving. The cold butter swirls stay intact, ensuring every slice looks bakery-fresh.
Layer Prep
If you're making a layered cake, bake both layers at the same time. Once cooled, level the tops with a serrated knife if needed. Place parchment paper between layers to prevent sticking, and store them stacked in an airtight container. This keeps them moist and ready for assembly whenever you're ready to frost. 🍰
Glaze Prep
Make your powdered sugar glaze a day ahead and store it in a small airtight container in the fridge. Stir in 1 teaspoon milk before using to adjust consistency. This saves time on the day of serving—just warm the glaze slightly to make it easier to drizzle over the cake layers.
Serving Suggestions
For a make-ahead dessert table, slice the cake and arrange on a platter with fresh berries or whipped cream. Cover with a dome or plastic wrap and refrigerate until serving. The cake stays moist and delicious even after 2 days in the fridge. Add a sprinkle of powdered sugar just before serving for a bakery finish. ✨
Portion Control
Cut the cake into 8 equal slices (about 1-inch thick) and wrap each slice individually in plastic wrap. Store in a single layer in an airtight container for up to 5 days in the fridge. Reheat slices briefly in the microwave (10-15 seconds) to restore warmth and softness before serving.
Nutrition facts
Frequently asked questions
Why does this recipe use only 2 eggs?
This recipe uses just 2 eggs to create a tender, moist crumb without compromising structure. The buttermilk and oil compensate for the reduced egg count, ensuring that the cake remains light and fluffy. The secret lies in the proper mixing technique—whisking the eggs and sugar until pale and thick incorporates air, which helps achieve that perfect texture.
Can I substitute buttermilk in this recipe?
Yes, you can! Mix 1 tablespoon lemon juice or vinegar with 1 cup milk and let it sit for 5 minutes to create a buttermilk substitute. This works perfectly and won't alter the cake's flavor or texture. The acidity helps activate the baking powder for a lighter rise.
What’s the best way to store leftover cake?
Store the cake at room temperature in an airtight container for up to 3 days, or refrigerate for 1 week to keep it moist. For longer storage, wrap tightly in plastic and freeze for up to 3 months. Thaw overnight in the fridge before serving. The vanilla swirls stay intact, making it look as fresh as the day it was baked!
Can I make this cake in a different pan size?
Yes, but adjust the baking time. For a 9-inch round pan, bake for 25-30 minutes. If using an 8-inch pan, reduce the batter by about 20% and bake for 20-25 minutes. Always check for doneness with a toothpick—it should come out clean. The cake’s texture will be slightly denser in a smaller pan, but still delicious!
How do I fix a cake that’s cracked on top?
Cracking often happens if the cake bakes too quickly. To prevent it, ensure your oven is fully preheated and avoid opening the oven door during the first 20 minutes of baking. If it happens, don’t worry—just cover the cracks with frosting or a simple glaze. The cake’s flavor and texture will still be perfect!
