Hands down the best chocolate layer cake you will ever bake! Two layers of moist chocolate cake with a rich and creamy chocolate buttercream that hits all the right dessert notes. Try this cake for your next birthday party – it’s a show-stopper!

For when you get a chocolate craving that simply can’t be solved by anything but cake…consider this recipe the answer to your prayers!
This is the only chocolate cake you will ever need in your life. I guarantee there is no better chocolate cake on the planet. My entire family concurs.
I’m talking layers on layers of rich chocolate both inside and out! Truly a chocolate-lovers dream right here.

If you’ve never tried your hand at baking chocolate cake at home, this is definitely the recipe for you! The batter comes together so quickly and you don’t even need a stand mixer.
There’s no messing around with cutting multiple cake layers either. Just two simple layers of chocolate cake and a whoooole lot of frosting in every space in between.
This Chocolate Cake features…
- Two layers of moist, melt-in-your-mouth chocolate cake
- Rich and creamy chocolate buttercream
- An easy recipe that any home baker can nail

Making the Chocolate Cake
(scroll down to the bottom of the post for the full recipe)
Ingredients You Will Need
- Vegetable oil
- Granulated sugar
- Brown sugar
- Eggs
- Buttermilk
- Vanilla extract
- All-purpose flour
- Cocoa powder
- Instant espresso
- Baking powder
- Baking soda
- Kosher salt
- Unsalted butter
- Powdered sugar
- Heavy whipping cream

Tips for Perfect Chocolate Cake
- Measure flour correctly – I use the spoon-and-level technique for measuring flour as this will prevent over-measuring your flour. Use a spoon to scoop flour into the measuring cup, then level with the back of a knife.
- Gently fold batter – use a light hand when mixing batter and gently fold so as not to overmix.
- Test cake with a toothpick – insert a toothpick in the center of cakes to test for doneness. The cakes are done when a toothpick comes out with moist crumbs sticking to it.
- Bring butter and heavy cream to room temperature – allow the butter and heavy cream to warm to room temperature before mixing into the frosting for a smooth and creamy texture.
- Allow cake to cool before frosting – if you try to frost the cakes while they’re still warm the frosting will melt off.
- Refrigerate cake 30 minutes after frosting – this short chill time will help the cake layers set up a bit which will make for clean slices.
Recipe Variations
Try these ideas for a different twist on this cake.
- Use another frosting – try a vanilla buttercream or cream cheese frosting
- Garnish cake – try a garnish of chocolate chips, fresh berries, or nuts.
- Add fruit – add a handful of fresh raspberries or strawberries to the filling and garnish with more on top.
Storing and Serving Cake
This cake stores well in refrigerator up to 4 days. For best results I recommend removing cake from refrigerator about 30 minutes before you plan to serve it to allow the buttercream to soften slightly.
To store leftover cut cake slices, place slices in an airtight container and store in refrigerator up to 4 days.


Literally the most perfect cake there ever was, folks. A knife slides easily through the fudgy layers for nice, clean cuts and boy, you’d better be cutting those slices thick!
The cake base is so dark and fudgy, it almost reminds me of devils food cake. A glass of milk is absolutely necessary with a large slice!
Save this recipe using the ‘save to recipe box’ button below. If you make it, please let us know! Leave a comment + star rating below, or take a photo and tag it on with #wholeandheavenlyoven.

More keeper cake recipes to bake next!
Chocolate Layer Cake
This recipe may included paid links. As an Amazon Associate, I earn a commission from qualifying purchases.
Ingredients
Chocolate Cake
- 3/4 cup vegetable oil
- 1-1/2 cups granulated sugar
- 1/2 cup packed light brown sugar
- 3 large eggs plus 2 egg yolks
- 1/2 cup buttermilk
- 2 teaspoons vanilla extract
- 2 cups all-purpose flour (spooned and leveled)
- 1 cup unsweetened cocoa powder
- 2 teaspoons instant espresso powder
- 2 teaspoons baking powder
- 1-1/2 teaspoons baking soda
- 3/4 teaspoon kosher salt
Chocolate Buttercream
- 1-1/2 cups unsalted butter, softened
- 4 cups powdered sugar
- 1 cup unsweetened cocoa powder
- 2 teaspoons vanilla extract
- 8-12 tablespoons heavy whipping cream, room temperature
Instructions
Chocolate Cake
- Preheat oven to 350F. Grease two round 9-inch cake pans and place a circle of parchment paper in the bottom of each. Set aside.
- In a large bowl, whisk vegetable oil, sugars, eggs, yolks, buttermilk, and vanilla. In a separate medium bowl, combine flour, cocoa, espresso, baking powder, baking soda, and salt. Fold flour mixture into liquid until batter is just combined.
- Divide batter between prepared pans and smooth tops. Bake cakes at 350F 25-30 minutes until a toothpick inserted in center of cakes comes out with a few moist crumbs sticking to it. Allow cakes to cool cool completely on a wire cooling rack.
Chocolate Buttercream
- Place butter in a large bowl (or a stand mixer fitted with paddle attachment) and use an electric mixer to beat on medium speed 2-3 minutes until creamy.
- Add powdered sugar and cocoa to butter mixture and beat an additional 2-3 minutes until frosting is smooth. With mixer running, add vanilla and just enough heavy cream until frosting is spreadable and creamy.
- Run a knife around cakes and carefully invert and remove from pans. Place one cake round on a serving plate. Spread about 1 cup chocolate frosting in an even layer on cake layer and place remaining cake layer on top. Frost top and sides of cake. Refrigerate cake 30 minutes before slicing to allow the cake layers to set slightly or store in refrigerator up to 4 days. Enjoy!
Notes
Nutrition
This post was updated with new recipe adjustments and photos on 8/28/25.


Norma | Allspice and Nutmeg says
I love me some chocolate cake.
Sarah says
Then you’re definitely going to love this chocolate cake, Norma! 😉
Natalie @ Tastes Lovely says
Welp, I’m busting out my stretchy pants, getting an entire gallon of milk, then making this cake and eating it until my tummy hurts. This is seriously beautiful Sarah! It looks so moist. I’m drooling over here!
Sarah says
Your comment totally made me giggle out loud, Natalie. I’m thinking I like this plan—Can I join you? My family polished off the rest of this cake and I’m already craving it again! LOL 😉
Tina @ Tina's Chic Corner says
This is one of THE prettiest cakes I’ve ever seen! No kidding. And now I’m craving chocolate. I don’t think it’s a good idea to make this cake for just me and my husband though…must have an excuse soon though! Love your photos. 🙂
Sarah says
I would totally agree with you on that one, Tina—It’s definitely not a good idea to make this cake if there are only a few people in the house. Self-control kind of goes out the window, ya know? 😉 Thanks so much for the sweet compliments and have a lovely weekend!
dina says
i’d like a slice of it right now!
Erin {Delightful E Made} says
Hi Sarah! Your chocolate cake looks so amazingly delicious! My grandma’s chocolate cake recipe also uses buttermilk like yours. It looks like that may be a key ingredient for a really moist, delicious cake. Have pinned your cake and hope to try it soon! Have a wonderful week, Sarah! ~Erin
Sarah says
Buttermilk really is a key ingredient to the success of a chocolate cake—It’s amazing the difference it makes! Thanks so much for the pin, Erin! You have a wonderful week too!
Ashley | Spoonful of Flavor says
Double the chocolate, double the deliciousness! I would die for a piece of this cake right now 🙂
Sarah says
So true, Ashley! This cake is a chocoholic’s dream. 😉
Joybee says
CHOCOLATE! This looks delicious definitely pinning with the hopes of trying it soon. Seen on Show Stopper. Oh yeah your frosting looks gorgeous and the pictures are drool-worthy.
Sarah says
Thanks for stopping by, Joy! You’re too kind—Thanks for the sweet words. Have a wonderful week!
Bernadette says
HI! Sarah,
Can I make this with plain flour and sugar…??? my boys are really fussy….
Thx
Sarah says
Yes, that would work fine, Bernadette! You may need to add a little additional flour though. Just make sure the batter is smooth and just slightly thin!
B says
What, pray tell, is XYLITOL???? I’ve Never even heard of it?!!
Sarah says
Hi there! Xylitol is a sugar-free sweetener that can be used as a sugar substitute. If you don’t have xylitol on hand, you can use regular powdered sugar for the frosting.