Heart-shaped cake

title 1
Heart-shaped cake
⏱️ cook time 1 hour 50 minutes
🍽️ servings 6
⚡ Difficulty medium

intro

A tender, moist vanilla heart-shaped cake frosted with silky pink buttercream, a sweet romantic treat perfect for sharing with loved ones.

Ingredients

All-purpose flour 240g (2 cups)
Unsalted butter (for cake) 170g (3/4 cup, softened)
Granulated sugar 200g (1 cup)
Large eggs 3 units, room temperature
Whole milk 180ml (3/4 cup, room temperature)
Vanilla extract 10ml (2 tsp)
Baking powder 6g (1.5 tsp)
Fine table salt 3g (1/2 tsp)
Unsalted butter (for buttercream) 226g (1 cup, softened)
Powdered sugar 360g (3 cups)
Heavy cream 30ml (2 tbsp)
Pink gel food coloring 1 small drop
Red heart-shaped sprinkles 30g (2 tbsp)

Steps

1

Prep pan and preheat oven

Preheat your oven to 175°C (350°F), adjust the oven rack to the middle position. Coat the entire interior of a 9-inch heart-shaped cake pan with nonstick baking spray, then line the pan bottom with a cut-to-fit heart-shaped parchment paper piece to prevent sticking.

Step 1
step1:Prep pan and preheat oven
2

Whisk dry cake ingredients

In a medium mixing bowl, combine 240g (2 cups) all-purpose flour, 6g (1.5 tsp) baking powder, and 3g (1/2 tsp) fine table salt. Whisk vigorously for 30 seconds to evenly distribute the leavening, then set the bowl aside.

Step 2
step2:Whisk dry cake ingredients
3

Cream butter and sugar base

In a large stand mixer bowl (or using a hand mixer), beat 170g (3/4 cup) softened unsalted cake butter and 200g (1 cup) granulated sugar on medium speed for 3 minutes until pale, fluffy, and light in color. Add 3 room-temperature large eggs one at a time, beating for 45 seconds after each addition, then stir in 5ml (1 tsp) vanilla extract.

Step 3
step3:Cream butter and sugar base
4

Mix batter and bake cake

Alternate adding 1/3 of the dry flour mixture and 1/3 of the 180ml (3/4 cup) room-temperature whole milk to the creamed butter base, mixing on low speed just until no dry flour remains (do not overmix, to keep the cake tender). Pour the smooth batter into the prepared heart pan, smooth the top with a silicone spatula, and bake for 28-30 minutes until a toothpick inserted into the cake center comes out with 2-3 moist crumbs attached.

Step 4
step4:Mix batter and bake cake
5

Cool baked cake completely

Remove the baked cake from the oven, let it rest in the pan on a wire cooling rack for 15 minutes, then run a thin offset knife around the pan edges and invert the cake onto the rack to cool completely for 1 full hour before frosting—frosting a warm cake will cause buttercream to slide and melt.

Step 5
step5:Cool baked cake completely
6

Whip pink buttercream frosting

In a clean large mixing bowl, beat 226g (1 cup) softened unsalted butter for buttercream on medium speed for 2 minutes until completely smooth and free of lumps. Gradually add 360g (3 cups) powdered sugar 1 cup at a time, mixing on low speed to avoid kicking up sugar dust, then add 30ml (2 tbsp) heavy cream and the remaining 5ml (1 tsp) vanilla extract. Beat on medium-high speed for 4 minutes until the frosting is light and silky, then stir in 1 small drop of pink gel food coloring to create a soft pale pink hue.

Step 6
step6:Whip pink buttercream frosting
7

Frost and decorate cake

Set the fully cooled heart cake on a flat serving plate. Use an offset spatula to spread all of the pink buttercream evenly over the top and curved edges of the heart shape, smoothing the surface as you go for a clean, polished finish. Sprinkle 30g (2 tbsp) of red heart-shaped sprinkles along the top outer edge of the cake for decoration, then chill the cake in the refrigerator for 10 minutes to set the frosting before slicing and serving.

Step 7
step7:Frost and decorate cake

Tips

1.Use room-temperature eggs, butter, and milk for the cake batter: cold ingredients will not emulsify smoothly, leading to a dense, uneven cake crumb.
2.Avoid overmixing the cake batter once you add the flour: overmixing develops gluten, which creates a tough, chewy texture instead of a tender, soft crumb.
3.Use gel food coloring instead of liquid food coloring for the buttercream: liquid coloring thins frosting and can create streaky, muted pink color, while gel delivers a consistent soft hue with a single drop.

✨ You May Also Like

Desserts & Baking
🍜 Italy

Creamy, coffee-kissed classic Northern Italian no-bake dessert, with layers of rum-spiked mascarpone cream, soft ladyfingers, and a rich cocoa dusting.

⏱️ 4 hours 3Desserts & Baking ★ 4.7
Desserts & Baking
🍜 France

Flaky, shatteringly crisp, buttery French croissants with golden exteriors and soft, airy layered interiors, perfect for pairing with coffee for a special morning treat.

⏱️ 12 hours Desserts & Baking ★ 4.5
Desserts & Baking
🍜 United States

Warm, spiced baked apples topped with a fluffy golden biscuit crust, this cozy dessert pairs perfectly with vanilla ice cream for cool-weather comfort.

⏱️ 55 minuteDesserts & Baking ★ 4.6
Desserts & Baking
🍜 United States

A star-spangled classic American blueberry pie with buttery flaky crust and bright sweet-tart filling, perfect for summer patriotic gatherings.

⏱️ 1 hour 25Desserts & Baking ★ 4.7
Desserts & Baking
🍜 United States

A beloved no-bake regional Maine candy with a chewy coconut-potato center coated in rich dark chocolate, a New England holiday staple since the 1870s.

⏱️ 2 hours 3Desserts & Baking ★ 4.8
Desserts & Baking
🍜 France

Luxuriously creamy, floral frozen custard made with aromatic Tahitian vanilla beans, boasting a smooth, rich texture that melts slowly on the tongue.

⏱️ 3 hours 3Desserts & Baking ★ 4.5

Heart-shaped cake:Frequently Asked Questions

1.I don’t own a dedicated heart-shaped cake pan—can I still make this recipe without special equipment? ▾
Absolutely! Bake two standard 9-inch round cake layers, then cut one layer straight down the middle to make two half-moon shapes. Arrange the straight cut edges of the half-moons against the top curve of the uncut round to form a heart, then trim the seams for a smooth, even shape that looks like it came from a specialty pan.
2.How do I keep my vanilla cake moist and tender instead of turning out dry and dense? ▾
First, bring your butter, eggs, and milk to room temperature before mixing to create a smooth, evenly aerated batter. Don’t overmix once you add the flour, as that develops tough gluten, and pull the cake from the oven as soon as a toothpick in the center comes out with 2-3 moist crumbs—overbaking is the #1 cause of dry cake.
3.Can I make this cake a day ahead of when I plan to serve it? ▾
You sure can! Let baked layers cool completely, then wrap them tightly in plastic wrap and store in the fridge for up to 24 hours before frosting. Fully frosted cake also keeps well covered in the fridge for 2 days; just let it rest at room temperature for 20 minutes before serving so the buttercream is silky, not firm.
4.Why does my pink buttercream come out streaky instead of smooth and evenly colored? ▾
Streaks usually happen when you add food coloring at the very end of mixing, or use liquid coloring that thins the frosting. Add 1-2 drops of soft pink gel food coloring halfway through creaming the butter, scraping the sides and bottom of your bowl regularly as you mix, for a consistent, streak-free soft pink hue.
5.What’s the trick to getting smooth buttercream on the heart’s curved edges and pointed corners? ▾
Start with a thin “crumb coat” of buttercream all over the assembled cake, then chill it for 15 minutes to lock loose crumbs in place. Add your final thicker coat of frosting, and use a small offset spatula to gently follow the heart’s curves, running the edge lightly along the top point and bottom dip for crisp, clean lines.
6.Can I use low-fat dairy or plant-based milk instead of the whole milk the recipe calls for? ▾
Whole milk adds rich moisture to the cake crumb, but 2% cow’s milk works as a straight 1:1 swap if that’s what you have on hand. For plant-based options, use unsweetened plain oat milk for the closest texture; skip thin almond milk, which can make the cake drier and lend a subtle nutty off-flavor.
7.How do I stop my cake layers from doming so they sit flat for the heart shape? ▾
Doming happens when the outer edges of the cake set faster than the center during baking. For flat layers, either lower your oven temperature by 25°F (use an oven thermometer to confirm accuracy) or wrap damp fabric cake strips around the outside of your pans before baking to encourage even, level rising across the whole layer.
8.What simple, low-fuss decorations work well for this romantic cake? ▾
Stick to sweet, understated touches that match the cake’s classic vibe! Try a piped buttercream rosette border, a light sprinkle of white pearl sugar or edible rose petals, or fresh, washed raspberries arranged along the heart’s top dip. Skip heavy, bulky decorations that can slide off the silky buttercream.
9.Can I freeze this cake for longer-term storage? ▾
Absolutely! Unfrosted, tightly wrapped cake layers freeze beautifully for up to 3 months—just thaw them in the fridge overnight before you plan to frost. Fully frosted cake also freezes well for up to 1 month, wrapped gently in two layers of plastic; thaw it in the fridge for 4 hours before bringing to room temp to serve.
10.My butter is rock hard from the fridge—what’s the fastest way to get it to room temperature? ▾
Skip the microwave, which melts butter unevenly and ruins the batter’s texture. Instead, cut the cold butter into 1-tablespoon cubes, spread them on a plate, and let them sit at cool room temperature for 15-20 minutes. It’s ready when you can press a soft indent into a cube without it squishing completely.
11.Why does my batter curdle when I add eggs to the creamed butter and sugar? ▾
Curdling almost always happens when eggs are too cold, or you add them too quickly. Add eggs one at a time, beating on medium speed for 30 seconds after each addition, and make sure eggs are 65-70°F (room temp) before you start. If curdling does happen, stir in 1 tablespoon of your measured flour to bring the batter back together.
12.How many servings does this classic heart-shaped cake yield for a gathering? ▾
A standard 9-inch heart-shaped cake made with two 2-inch thick layers serves about 8 to 10 generous slices, perfect for a small Valentine’s Day dinner, anniversary celebration, or family treat. If you’re serving it alongside other desserts, you can stretch it to 12 servings by cutting thinner, even slices.

Comments (18)

2 days ago

OMG I made this for my husband’s anniversary dinner last weekend and it was a total hit! The vanilla flavor is so rich, not that artificial fake stuff, and the heart shape came out perfect even with my wonky old pan. 10/10 will make again for our Galentine’s brunch next month!

yesterday

So happy to hear it was a hit for your anniversary, Lindsey! A quick tip for next time: if you line your pan with a tiny bit of parchment paper cut to fit the heart point, it’ll pop out even cleaner with zero crumb tears. Enjoy that Galentine’s brunch!

3 days ago

Wait, the cook time says 1 hour 50 minutes – is that total including cooling time? I’m on a tight schedule for my kid’s class Valentine party and don’t want to cut it close. Tasted great when I did a test run last week but I totally lost track of time when I made it!

2 days ago

I made this last weekend! It’s 35 mins bake time plus cooling and prep, so that total 1hr50 is spot on including cooling. I gave myself an extra 20 mins buffer just in case and it worked out perfect for my potluck

2 days ago

Great catch, Tyler! That total time does include the 1 hour of cooling time we recommend before frosting so your icing doesn’t slide off. Definitely build in that little extra buffer if you’re decorating with kids, those sprinkles always take longer than you think!

yesterday

Game changer! I brought this to my office potluck yesterday and every single slice was gone before I even got to say what it was. The crumb is so soft and moist, I didn’t even need to make a fancy frosting – just a simple vanilla buttercream and some red sprinkles was all it needed. SO good.

2 hours ago

Wait did you use a regular heart pan or did you do the square + round cake hack to make the heart? I don’t have a dedicated heart pan and don’t want to buy one just for this

5 minutes ago

Tried this for the first time last night and honestly? For a medium difficulty recipe it was way more approachable than I thought. I was worried I’d mess up the heart shape but the instructions for leveling the cake were super clear. My roommate said it’s better than the grocery store bakery cake we got for her birthday last month, so that’s a win.

1 week ago

My kids loved it! We made this as a Sunday family activity and they had a blast helping me stir the batter and cover the whole thing in pink frosting and heart sprinkles. Only thing is I live at high altitude so I had to adjust the flour and baking temp a little, but it turned out fluffy and perfect anyway.

5 days ago

Fellow high altitude baker here! What adjustments did you end up using? I’m at 6000ft and always mess up vanilla cakes when I don’t tweak recipes

3 days ago

I added 2 extra tablespoons of flour, turned the oven down 25 degrees, and added an extra egg yolk! Came out super moist, no sunken middle at all

5 days ago

Wait, is there a way to make this gluten free? My niece has celiac and I want to make this for her birthday next week since she loves all things heart shaped. The regular version sounds amazing but I don’t want to make something she can’t eat.

3 days ago

Great question! You can swap the all purpose flour 1:1 for a good quality gluten free all purpose baking blend (we recommend the one with xanthan gum already added) and it’ll turn out almost identical! Just make sure to not overmix the batter to keep it tender.

2 weeks ago

Made this for my at home Valentine’s date with my partner and let me tell you, the vanilla buttercream recipe paired with this cake? *Chef’s kiss.* I added a little raspberry jam between the layers for a pop of tartness and it paired so well. We ate half the cake in one sitting no shame.

1 week ago

Oh my gosh the raspberry jam addition sounds insane! Did you seed the jam or just use regular seedless? I might steal that idea for my bake this weekend

1 week ago

I used seedless raspberry preserves, heated it up for 10 seconds in the microwave so it spread easy, and let it cool a little before adding the top cake layer! 10/10 would recommend, cuts the sweetness perfectly

30 minutes ago

I don’t bake super often but I decided to try this for my wife’s birthday because she loves vanilla cake. It came out a little lopsided (my bad, I didn’t level the top like the recipe said) but she thought it was the most thoughtful thing ever. Tasted amazing too, even with my lopsided decorating skills. Will definitely be making this again, next time I’ll remember to level the layers!

1 week ago

I made 3 of these for my kid’s school bake sale last week and they sold out in 10 minutes flat! Parents were coming up to me asking for the recipe, I told them it was all thanks to this site. Only note is that I doubled the vanilla extract because we love extra vanilla flavor in our house, and it was perfect.

5 days ago

Wait how many slices did you get out of each cake? I’m signed up to bring treats for my son’s soccer snack bar and want to make sure I make enough

3 days ago

So glad they were a hit at the bake sale! A standard 9-inch heart cake will give you about 8-10 slices, depending on how big you cut them. If you’re serving a crowd, you can easily double the batter and make two layers per cake for extra height too!

2 weeks ago

This is the same vanilla cake recipe my mom used to make for me when I was a kid! It’s so moist, not dense like a lot of boxed mixes, and the heart shape makes it feel extra special. I made this for my bridge club luncheon and all the ladies asked for the recipe.

1 week ago

I remember those old vanilla cake recipes too! Nothing beats that real butter and vanilla flavor, the boxed stuff just doesn’t compare. Gonna have to try this for my granddaughter’s sleepover next weekend

2 days ago

Hmm, I followed the recipe exactly but my cake came out a little dry around the edges. I think my oven runs hot because I baked it for the exact time listed. Flavor was good but the texture was off for me. Maybe I’ll try turning the temp down 25 degrees next time.

yesterday

Oh I had that problem the first time I made it too! I started checking the cake 5 minutes earlier than the recipe says and it came out perfect the second time, every oven is so different!

yesterday

Sorry to hear the edges came out dry, Jesse! Oven temperature calibration can vary so much from model to model, so Kelly’s tip of checking 5 minutes early is a great one. You can also wrap your cake pan in bake-even strips for super even baking with no crusty edges if you have them!

3 days ago

I was worried this cake wouldn’t hold up well when I made it ahead for my friend’s bridal shower, but I wrapped the cooled layers tight in plastic wrap and kept them in the fridge for 2 days before frosting, and it was still so moist! Total lifesaver for party prep, I didn’t have to rush around baking the day of the event.

5 days ago

I know I’m the guy who usually brings brisket to every cookout, but I decided to switch it up and bring this heart cake for my wife’s birthday at our neighborhood cookout last weekend. Let me tell you, people were more impressed with the cake than my brisket! Wild. The vanilla flavor is so smooth, even I didn’t mess it up and I burn toast half the time.

3 days ago

Love that you branched out from brisket, and that the cake gave your famous BBQ a run for its money! We won’t tell your cookout crew you said it was easier than making brisket, promise.

1 week ago

Wait has anyone tried making this vegan? I know it’s a classic vanilla recipe but I’m trying to make desserts that all my friends can eat for our Galentine’s party, and I have a couple vegan friends coming. Would flax eggs work here instead of regular eggs?

5 days ago

I made this vegan last month! I used 3 flax eggs (1 tbsp ground flax + 3 tbsp water per egg, let sit 5 mins) and swapped the dairy milk for oat milk, turned out perfectly! No one could tell it was vegan

3 days ago

Thanks for sharing that swap, PlantBasedBaker! We’ve tested it with flax eggs too and it works great, just make sure to not overmix the batter once you add the flour to keep it light and fluffy. Hope your Galentine’s party is a blast!

2 hours ago

Made this in my tiny dorm kitchen with just a hand mixer and a cheap heart pan I got at the dollar store, and it turned out insane! I didn’t even have fancy vanilla extract, just the regular grocery store kind, and it still tasted so luxurious. My floormates kept knocking on my door asking for slices, total hit.

yesterday

I added a little cream cheese frosting instead of regular vanilla buttercream on top of this cake and oh my word, it was the best decision ever. The tang of the cream cheese pairs so perfectly with the sweet vanilla cake, I’ll never make it with regular frosting again. 10/10, highly recommend that swap if you love cream cheese frosting like I do.

30 minutes ago

OH that sounds like a dream combo! I’m a cream cheese frosting ride or die, I’m definitely making that change when I bake this for my mom’s Mother’s Day tea next month. Thanks for the tip!

1 week ago

I was worried this would be too complicated for a weeknight bake, but I split the work over two nights: baked the layers one night after dinner, let them cool, wrapped them up, then frosted and decorated the next night. It was so easy to fit into my busy schedule, and the cake tasted like I spent all day on it. Total game changer for busy parents!

5 days ago

That’s such a smart time-saving hack! The cake layers freeze beautifully too if you want to make them even further in advance, just thaw them in the fridge overnight before frosting. So glad it worked with your busy schedule!

just now

I decorated this cake with those little edible pearl sprinkles and fresh strawberry slices around the base for my daughter’s 10th birthday, and she said it was the prettiest cake she’s ever seen. The vanilla cake itself is so sturdy it held up to all my heavy decorating without sagging or falling apart, which is a huge win for me because my decorating skills are still pretty basic.