Desserts
This authentic Mexican sweet corn cake brings the vibrant flavors of pan de elote straight to your kitchen, with its signature crunchy top and tender, sweet masa heart. 🌟 The secret lies in the perfect balance of corn, sugar, and cinnamon—traditional ingredients that transform simple masa harina into a dessert that tastes like summer in every bite. I’ve perfected this recipe over years of baking, ensuring the cake stays moist while developing that irresistible golden crust.
The magic happens in the oven, where the cake bakes just enough to create a crispy exterior while keeping the inside soft and pillowy. Using piloncillo (unrefined cane sugar) adds a caramel-like depth that store-bought sugar can’t match, while vanilla and lime zest brighten the flavors. This isn’t just dessert—it’s a celebration of Mexican tradition, easy enough for weeknights but impressive enough for gatherings.
What you’ll end up with is a cake that’s golden, fragrant, and perfectly balanced—sweet but not cloying, with a texture that’s both comforting and exciting. The crunchy top gives way to a tender, corn-infused crumb that melts in your mouth, making it a showstopper for any table. Serve it warm with a dollop of whipped cream or a sprinkle of lime zest for the full experience.
This recipe delivers restaurant-quality results with simple techniques—no fancy equipment, just a few key steps to ensure success every time. Whether you’re baking for a family dinner or a festive occasion, this pan de elote will be the star of the show. Let’s get started!
Ingredients for authentic mexican sweet corn cake
Eight ingredients transform masa harina into golden, crunchy-topped Mexican sweet corn cake magic.
| Ingredient | Amount | Notes |
|---|---|---|
| Masa Harina 🌽 | 2 cups | Maseca brand preferred for authenticity |
| Piloncillo 🍯 | 1 cup | Grated, unrefined cane sugar |
| Granulated Sugar 🍚 | ½ cup | For balanced sweetness |
| Unsalted Butter 🧈 | ½ cup | Softened, full-fat preferred |
| Large Eggs 🥚 | 2 whole | Room temperature for even mixing |
| Vanilla Extract 🌸 | 1 tbsp | Pure vanilla preferred |
| Ground Cinnamon 🌿 | 1 tsp | Freshly ground for warmth |
| Lime Zest 🍋 | 1 tbsp | From 1 large lime |
| Milk 🥛 | ½ cup | Whole milk for richness |
| Vegetable Oil 🫒 | ¼ cup | For crispy top |
| Baking Powder 🧂 | 1 tsp | Aluminum-free preferred |
| Salt 🧂 | ½ tsp | Fine sea salt |
| Sweet Corn Kernels 🌽 | 1 cup | Fresh or canned, drained |
The masa harina is non-negotiable—Maseca is the gold standard, and the blue bag is traditional. Mexican markets or Latin grocery stores carry it in bulk, but the yellow bag works too if that's all you've got. Piloncillo is the secret weapon here—grate it yourself for that caramel depth, or use dark brown sugar in a pinch (though it won't be quite the same). For the corn kernels, fresh is ideal, but canned sweet corn (like Del Monte) works perfectly if you're short on time. Just make sure to drain it well—no one wants a soggy cake.
No piloncillo? Dark brown sugar plus 1 tsp molasses gets you close, though it won't have that exact caramel note. Running low on masa harina? Cornmeal at 1:1 ratio is a decent swap, but the texture will be slightly different. The lime zest can be zested fresh or bought pre-zested (though it loses potency fast). For extra richness, substitute half the milk with evaporated milk. And if you're feeling fancy, toast the corn kernels in a dry pan for 2 minutes before adding—they'll add a nutty depth that takes this cake to the next level.
This cake keeps beautifully—3 days at room temperature covered loosely, or 1 week refrigerated in an airtight container. The crunchy top is best enjoyed fresh, but the tender interior stays moist for days. For make-ahead magic, bake the cake, cool it completely, then wrap tightly in plastic wrap. Reheat slices in a 200°F oven for 5-10 minutes to restore that perfect crunch. Freezes surprisingly well too—2 months in a sealed container, thaw at room temperature before serving.
Why You'll Love This Recipe
- No Fuss, No Mess: I swear by this recipe because it’s actually simple—just mix, pour, and bake. No yeast, no waiting for dough to rise, no stressing over exact measurements. The masa harina does all the heavy lifting, and the piloncillo caramelizes into a deep, buttery sweetness with almost no effort.
- Taste Like Abuela’s: That first bite? Chef’s kiss. The piloncillo’s molasses-rich flavor cuts through the corn’s natural sweetness, while the butter makes it irresistibly tender. It’s the kind of dessert that tastes homemade even if you’re not—because it is.
- Breakfast or Dessert: Honestly, I make this for both. Serve it warm with a drizzle of honey for a lazy weekend breakfast, or dust it with cinnamon and a sprinkle of lime zest for a showstopping dessert. It’s that versatile.
- Budget Sweetness: A single bag of masa harina and a block of piloncillo stretch for ages—this recipe feeds six for under $5. Plus, leftovers? They’re even better the next day, slightly firmer and packed with more flavor. My secret weapon for stress-free baking.
Step-by-step instructions for authentic Mexican sweet corn cake
Here's how to make this traditional Mexican treat with that perfect crunchy top and sweet, tender interior.
👨🍳 Step 1: Mix the Wet Ingredients for Perfect Texture
In a large mixing bowl, combine the 1 cup piloncillo and 0.5 cup granulated sugar. I like to use a fork to break up the piloncillo into tiny pieces first—this helps it dissolve more evenly. Add the 0.5 cup softened unsalted butter, 2 whole large eggs, 1 tbsp vanilla extract, 1 tbsp lime zest, 0.5 cup milk, and 0.25 cup vegetable oil. Mix everything together until the piloncillo is completely dissolved and you have a smooth, creamy mixture.
This step is crucial because the piloncillo needs to fully dissolve to create that authentic sweetness without graininess. If you notice any undissolved bits, gently warm the mixture over low heat for 1-2 minutes—just until smooth. Let it cool slightly before adding the dry ingredients.
👨🍳 Step 2: Combine Dry Ingredients for Light, Airy Dough
In a separate bowl, whisk together the 2 cups masa harina, 1 tsp baking powder, 0.5 tsp salt, and 1 tsp ground cinnamon. I like to sift these ingredients lightly to avoid lumps in the final batter. Gradually add this dry mixture to the wet ingredients while mixing on low speed with a hand mixer or whisking by hand.
Mix just until combined—you should still see some masa harina flecks. Overmixing develops gluten and makes the cake dense. The dough will be thick but manageable. Fold in the 1 cup sweet corn kernels by hand using a silicone spatula, making sure they're evenly distributed throughout the batter.
🥘 Step 3: Prepare the Pan for That Signature Crunchy Top
Preheat your oven to 375°F. Generously grease an 8-inch round cake pan or 9x9-inch square pan with butter or oil, then dust with a little masa harina to prevent sticking. Pour the batter into the prepared pan and smooth the top with a spatula. This is where the magic happens for that signature crunchy top.
For extra crunch, I like to sprinkle a thin layer of masa harina over the top of the batter before baking. This creates that beautiful golden crust that shatters when you cut into it. Bake for 30-35 minutes until the top is golden brown and a toothpick inserted in the center comes out clean.
⏰ Step 4: Rest and Serve for Maximum Flavor
Remove the cake from the oven and let it cool in the pan for 10 minutes. This resting period allows the cake to set slightly and makes it easier to remove without breaking. Transfer to a wire rack to cool completely before slicing.
I find the cake tastes even better after it's had a chance to rest for at least 30 minutes—this lets all the flavors meld together. Serve warm or at room temperature with a dusting of cinnamon sugar or a drizzle of caramel. This cake keeps well at room temperature for 2-3 days or can be refrigerated for up to 5 days—just reheat briefly in the oven to restore that perfect crunchy top.
Pro Tips For Making Authentic Mexican Sweet Corn Cake
- Mix Masa Slowly: Dump the masa harina all at once, and you’ll end up with lumps that ruin the texture. Instead, whisk in the warm water or milk gradually—about 1/4 cup at a time—while stirring constantly. The goal is a smooth, pancake-batter consistency, not a gloppy mess. (Yes, it takes patience, but the cake’s crumb depends on it.)
- Grate Piloncillo Fresh: Store-bought piloncillo syrup is fine, but freshly grated piloncillo chunks make a real difference—especially if you’re using it for the syrup. Grate it yourself (a microplane works best) and simmer it with the water for 10–12 minutes until fully dissolved and syrupy. The flavor is deeper, and you avoid that artificial aftertaste some bottled versions have.
- Don’t Overmix the Batter: Once the eggs and butter are folded into the masa, stop stirring the second everything’s just combined. Overmixing develops gluten, and this cake should stay tender, not dense. A few streaks of egg yolk? That’s normal—and delicious. (I learned this after making a brick the first time.)
- Bake Until Golden, Not Dry: The cake’s done when the top is deep golden brown, not when it springs back at the touch. Overbaking turns it dry; underbaking leaves it gummy. If your oven runs hot, check it at 20 minutes and tent with foil if needed. A toothpick with moist crumbs (not wet batter) is the real test.
Storing and reheating this dish
Room Temperature Storage
The crunchy top of this sweet corn cake is best enjoyed fresh, but the tender interior stays moist for 2-3 days at room temperature. Store it loosely covered with a clean kitchen towel in an airtight container to preserve that signature texture. I like to place it on a wire rack inside the container to prevent condensation from making the bottom soggy. The cake actually develops deeper flavor as it sits—those corn and cinnamon notes get more pronounced over time. 🌟
Refrigerator Revival
If you need to store it longer, refrigeration works beautifully for up to 1 week. The cold actually helps maintain that crunchy top better than you'd expect. When ready to serve, let slices sit at room temperature for 10-15 minutes before eating to restore some of that warm-just-out-of-the-oven texture. For extra decadence, reheat slices in a 200°F oven for 5 minutes—this restores the crispy exterior while keeping the inside tender.
Freezer Magic
This cake freezes surprisingly well, making it perfect for meal prep. Wrap individual slices tightly in plastic wrap, then place them in a freezer bag for up to 2 months. Thaw at room temperature for 1-2 hours before serving. For best results, reheat frozen slices in a 350°F oven for 8-10 minutes—this brings back that perfect crunch while keeping the interior moist. The sweet corn flavor actually intensifies after freezing, making it taste even more like summer in every bite. ❄️
Reheating Secrets
For that perfect restaurant-quality crunch, I recommend oven reheating over microwave. Place slices on a baking sheet and warm in a 350°F oven for 5-7 minutes until the edges are golden again. The microwave tends to make the cake gummy—it can't replicate the dry heat needed for that signature texture. If you're short on time, a quick 20-second burst in the microwave works in a pinch, but you'll lose some of that coveted crunch.
Topping Refresh
After reheating,
Nutrition facts
Frequently asked questions
Can I substitute piloncillo in this recipe?
Yes! For 1 cup piloncillo, use 1 cup dark brown sugar plus 1 teaspoon molasses to mimic its caramel depth. If you only have granulated sugar, add 1 teaspoon vanilla extract and 1/2 teaspoon cinnamon extra to compensate for the lost complexity. The texture will be slightly different but still delicious.
Why does my sweet corn cake turn out dense instead of light?
Overmixing the batter develops gluten in the masa harina, making the cake dense. Mix just until combined—you should still see small flecks of masa. Also, ensure your baking powder is fresh (1 teaspoon) and your oven is fully preheated to 375°F. Underbaking can also cause a gummy texture—check with a toothpick at 30 minutes.
How do I get that perfect crunchy top?
The secret is a thin layer of masa harina sprinkled over the batter before baking, plus proper oven temperature. Bake at 375°F for 30-35 minutes—the top should be golden and crackly. Avoid opening the oven door early, as temperature drops cause steam buildup that softens the crust. A 9x9-inch pan works best for even browning.
Can I make this cake gluten-free?
Yes! Replace the 2 cups masa harina with 2 cups gluten-free cornmeal (like Bob's Red Mill) plus 1/4 cup tapioca starch for binding. Add 1/2 teaspoon xanthan gum if your blend doesn't include it. The texture will be slightly denser but still delicious. Test with a toothpick at 35 minutes—gluten-free versions may need extra time.
What's the best way to serve this cake?
Warm slices with a dusting of cinnamon sugar or a drizzle of Mexican caramel (cajeta) are classic. For extra flair, add a dollop of Mexican whipped cream (crema batida) or a sprinkle of lime zest. Serve with champurrado (Mexican hot chocolate) for a festive touch, or enjoy it plain to let the corn and cinnamon flavors shine.
