• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
I Scream for Buttercream
  • Blog
    • Subscribe for Free
    • Exclusive Content for VIPs
  • Visit the Shop!
    • The Cake Blueprint
  • Recipes
    • Cakes
    • Frostings/Fillings
    • Cupcakes
    • Cake Pops
    • Other Sweets
  • Cake Decorating
  • Cake Baking Tips
  • About Kara
  • FAQs
    • Contact Me
    • Terms and Conditions
      • Privacy Policy
      • Advertising Disclosures
      • Cookie Policy
      • Food Safety, Allergy & Nutrition Disclaimers
    • Accessibility Statement
menu icon
go to homepage
subscribe
search icon
Homepage link
  • Blog
    • Subscribe for Free!
    • Exclusive Content for VIPs
  • Visit the Shop!
    • The Cake Blueprint
  • Recipes
    • Cakes
    • Frostings/Fillings
    • Cupcakes
    • Cake Pops
    • Other Sweets
  • Cake Decorating
  • Cake Baking Tips
  • About Kara
  • FAQs
    • Contact Me
    • Terms and Conditions
      • Privacy Policy
      • Advertising Disclosures
      • Cookie Policy
      • Food Safety, Allergy & Nutrition Disclaimers
    • Accessibility Statement
×
Home » Blog » Recipes

Key Lime Cake from Scratch

Updated: Aug 8, 2025 · Published: Jul 31, 2025 by Kara · This post may contain affiliate links · This blog generates income via ads

  • Email
  • Facebook

Homemade key lime cake that's easy to make, is moist and made from scratch, all topped off with a tangy lime cream cheese frosting.

Jump to Recipe

If you're a key lime pie fan, but you want it in cake form, this one's for you. And that cream cheese frosting is THE perfect topping.

Slice of key lime cake with pale green frosting on a white plate, with a fresh lime in the background.
Jump to:
  • Why You’ll Love This Frosting!
  • Pro Tip
  • Recipe
  • Steps to make this cake with step-by-step photos
  • Tips & FAQs:
  • Supplies used
  • Tried This?
  • Other posts you might like

I LOVE key lime pie. My grown son and I are known to grab a whole pie and literally split it in half. He gets one side and I get the other. Yeah, I know it's not healthy, but we don't do it often, and it's an epic treat when we do.

My point is that I thought it would be a good idea to make a cake version of this and here we are.

This key lime cake is made completely from scratch and it's got a moist and buttery crumb. So delicious!

Fork cutting into a fluffy slice of key lime cake topped with creamy green frosting on a white plate.
Slice of light green cake with fluffy green frosting on a white plate, served with a fork.

Why You’ll Love This Frosting!

  • The tangy-sweet flavor of key lime pie, but in soft, fluffy cake form
  • Made completely from scratch
  • The lime cream cheese frosting is insanely good

Pro Tip

Make sure not to mix the batter too long. Stop mixing when ingredients are just combined to keep it moist and light.

Recipe

Slice of key lime cake with pale green frosting on a white plate, with a fresh lime in the background.

Key Lime Cake from Scratch

Homemade key lime cake that's easy to make, is moist and made from scratch, all topped off with a tangy lime cream cheese frosting.
5 from 1 vote
Print Pin SaveSaved! Rate
Course: Dessert
Cuisine: American
Keyword: key lime cake
Difficulty Level: Beginner
Prep Time: 20 minutes minutes
Cook Time: 35 minutes minutes
Total Time: 55 minutes minutes
Servings: 15 slices
Calories: 444kcal
Author: Kara @I Scream for Buttercream

Ingredients

For the cake:

  • 2 ⅔ cups all-purpose flour (Measured correctly: Spooned into the measuring cup and leveled off - don't scoop and pack the flour into the cup, that will add too much flour.)
  • 2 ½ teaspoons baking powder
  • ½ teaspoon baking soda
  • ½ teaspoon salt
  • 1 cup sour cream, close to room temperature
  • ¼ cup vegetable oil
  • 1 ½ tablespoons lime zest (from about two limes)
  • ¼ cup lime juice
  • ¼ cup milk
  • 1 teaspoon vanilla extract
  • 2 ½ teaspoons lime extract
  • green gel food coloring (optional)
  • 3 large eggs, close to room temperature
  • ¾ cup unsalted butter, room temperature
  • 1 ⅔ cups sugar

For the frosting:

  • ½ cup unsalted butter, room temperature (1 stick)
  • 1 (8 ounce) package cream cheese, almost room temperature
  • 1 small pinch of salt
  • ½ teaspoon lime extract
  • 3 cups confectioner’s sugar
  • 1 teaspoon lime juice (can use more if needed to reach the desired consistency)
  • green gel food coloring (optional)
US Customary – Metric
Have questions?Check out the Tips & FAQ section or the video in the post!
Prevent your screen from going dark

Instructions

For the cake:

  • Preheat the oven to 350 degrees F.
  • Spray a 13×9 inch pan with non-stick baking spray. (I use a glass pan.)
  • In a medium-sized bowl, whisk together the dry ingredients: flour, baking powder, baking soda, and salt. Set aside.
  • In another bowl, add the liquid ingredients: sour cream, oil, lime zest, lime juice, milk, vanilla extract, lime extract and gel food coloring. Set aside.
  • In a separate large bowl, add the butter and sugar and mix with an electric mixer on high for about 2 minutes until light and fluffy.
  • Add the eggs, one at a time, mixing on medium for about 20 seconds after each egg is added.
  • Scrape down the sides and bottom of the bowl.
  • Alternately add in the dry mixture and the liquid mixture to the butter/sugar mixture, starting and ending with the dry mixture as follows:
  • Add in a third of the dry mixture and mix on medium speed only until just combined (about 10-15 seconds only).
  • Add in half of the liquid mixture, mixing on medium speed only until just combined (about 10-15 seconds only).
  • Add in another third of the dry mixture, mixing on medium speed only until just combined (about 10-15 seconds only).
  • Add in the last half of the liquid mixture, mixing on medium speed only until just combined (about 10-15 seconds only).
  • Add the last third of the flour mixture and mix on medium speed only until just combined (about 15 seconds only).
  • Scrape down the sides of the bowl and mix again on medium speed only for about 10 seconds or feel free to mix by hand at this point just using a large spoon or silicone spatula.
  • IMPORTANT NOTE ABOUT SCRATCH CAKES: Be very careful only to mix until well combined. Once the batter is well combined, stop mixing. The batter does not have to be silky smooth. Mixing scratch cake batter too long and/or at too high of a speed can cause the gluten in the flour to over-develop and that will cause the cake to come out dense, rubbery or it may fall in the middle.
  • Pour the batter into the prepared pan and smooth the top with a spatula.
  • Bake for approximately 35-40 minutes, or until a toothpick inserted into the center comes out either with a few moist crumbs on it or clean.
  • Set the baked cake on a cooling rack and allow to cool completely before adding frosting.

For the frosting:

  • In a large bowl, add the room temperature cream cheese and butter and mix with an electric mixer on medium-high speed until smooth.
  • Add the lime extract and salt and mix again until well mixed.
  • Add ½ the confectioner’s sugar, mix well on medium-high speed, then add the second half and mix again on medium-high until smooth.
  • Check the consistency. If it’s too thick, add a teaspoon of lime juice, mix again and check the consistency.
  • Add a drop or two of green gel food coloring if desired and mix again for a couple minutes until light and fluffy.
  • Spread onto the cooled cake.

Notes

How to Store: Because this cake is topped with a cream cheese buttercream, it should be stored in an airtight container or covered well in the refrigerator and can last up to 6 days. Let it set out for at least 20 minutes to come closer to room temperature for serving, so that the cake texture is at its best and not so firm because it's chilled. Always return the cake back to the fridge as it's topped with perishable frosting.
How to serve: Most cakes are best served closer to room temperature, especially when made with butter like this one. If the cake is cold, set it out to come closer to room temperature for about 20 minutes before serving. You can also pop a slice in the microwave to warm up a bit. If you prefer to eat the cake cold, just know that cakes made with butter will be firmer when cold.
For other questions: Make sure to check out the TIPS & FAQs section in this post, which should answer other questions you may have about ingredients, substitutions, other pan sizes, etc.
Nutritional values are an estimate. Nutritional values do not include frosting.
*This recipe card may contain affiliate links. As an Amazon Associate, I earn from qualifying purchases.

Nutrition

Calories: 444kcal | Carbohydrates: 65g | Protein: 4g | Fat: 20g | Saturated Fat: 12g | Polyunsaturated Fat: 1g | Monounsaturated Fat: 5g | Trans Fat: 1g | Cholesterol: 83mg | Sodium: 137mg | Potassium: 140mg | Fiber: 1g | Sugar: 47g | Vitamin A: 626IU | Vitamin C: 2mg | Calcium: 64mg | Iron: 1mg
Some recipes have difficulty levels.Check out what they mean here: Difficulty Levels Explained
Baking at higher elevation?Adjustments will need to be made for that. This website does not specialize in higher elevation baking. Please take time to do your research on what adjustments should be made.
DisclaimersTo see food safety, allergy & nutrition disclaimers, go here: Disclaimers

How to Share

I’d love for you to share this recipe link or tag it, but please do not share screenshots or copy/paste the recipe to social media as the content and photographs are copyright protected and we (bloggers) work really hard on our content. Sharing the link, tagging us on socials and pinning it is super appreciated though!

Steps to make this cake with step-by-step photos

(The full printable instructions are in the recipe card above.)

Step 1:

Prep the dry and wet ingredients separately and set aside.

Dry cake ingredients being whisked in a white mixing bowl.
Smooth, light green key lime cake batter in a white bowl with a whisk.

Step 2:

Cream the butter & sugar for a couple minutes, then add eggs one at a time.

Creamed butter and sugar mixture in a white mixing bowl with a paddle attachment.

Step 3:

Alternately, add the dry and wet mixtures without overmixing.

Fluffy, light green key lime cake batter swirled in a white mixing bowl.

Step 4:

Bake 35-40 mins at 350 °F until a toothpick inserted into the cake comes out with either a few moist crumbs or clean.

Key lime cake batter spread evenly in a glass baking dish, ready to bake.

Step 5:

Cool the cake completely.

Freshly baked key lime cake in a glass pan with a golden top and hints of green peeking through.

Step 6:

Make the frosting by adding all of the ingredients into a bowl and mixing well. Spread onto the cooled cake.

A slice of fluffy key lime cake with pale green frosting on a white plate, next to a fork.

Tips & FAQs:

Can I omit the lime zest?

You can, but the cake probably would not have enough lime flavor.

Should I use fresh lime juice or bottled lime juice?

Either will work just fine.

Can I omit the lime extract?

You can, however the cake may not have enough lime flavor.

Can I substitute the sour cream?

Sour cream is best in this recipe as it helps make a very moist cake and gives a little flavor. If you don’t have access to it, you can use plain yogurt, but use the full-fat yogurt instead of the low-fat or fat-free type.

How can I tell when this cake is finished baking?

This cake is finished baking when a toothpick inserted into the center comes out with a few moist crumbs on it or clean, but no raw batter.

How do I store this cake and how long does it last?

Because this cake is topped with a cream cheese buttercream, it should be stored in an airtight container or covered well in the refrigerator and can last up to 6 days. Let it set out for at least 20 minutes to come closer to room temperature for serving, so that the cake texture is at its best and not so firm because it's chilled. Always return the cake back to the fridge as it's topped with perishable frosting.

Can this cake be made into a layer cake?

Yes, probably although I have not tried that. If you do try it, pour the batter into two, 8-inch round baking pans and bake at 350 degrees F and start checking at around 25 minutes or so, however it will probably take a bit longer to finish baking.

What’s the best way to serve/eat this cake?

Most cakes are best served closer to room temperature, especially when made with butter like this one. If the cake is cold, set it out to come closer to room temperature for about 20 minutes before serving. You can also pop a slice in the microwave to warm up a bit. If you prefer to eat the cake cold, just know that cakes made with butter will be firmer when cold.

As an Amazon Associate, I earn from qualifying purchases.

Supplies used

  • Mixing bowls- similar
  • Measuring cups and spoons
  • Silicone spatulas
  • Electric hand mixer
  • Electric stand mixer
  • Flex edge beater attachment for electric stand mixer
  • 13×9 inch pan
  • Lime extract

Tried This?

Let me know how it turned out for you, I always love hearing from you!

Other posts you might like

  • Key Lime Pie Cake Bars
  • Lemon Cream Cheese Cake
  • Lemon Sour Cream Cake
  • Lemon Velvet Cake
  • Lemon Raspberry Bundt Cake
  • Lemon Sour Cream Cupcakes
Two close-up shots of vibrant green key lime cake slices with fluffy green frosting and a fork.
« Chocolate Fudge Buttercream Frosting
10 Ways to Make a Cake Look Fancy (without piping anything) »
  • Email
  • Facebook

Filed Under: Cakes, Frostings/Fillings, Recipes Tagged With: lime

Reader Interactions

Comments

  1. Arlette

    August 05, 2025 at 11:48 am

    Hi Kara!
    I’m going to make this cake for my husband’s birthday this week, however, I can’t find lime extract anywhere. I found a recipe to make my own, but that takes time. Do you have any suggestions to “lime it up” a bit more? Add more zest? We have a lime cordial here in Canada, or just add more lime juice? Thanks dear!
    God bless you, Arlette

    Reply
    • Kara

      August 05, 2025 at 6:29 pm

      Hi Arlette! Good questions! I wouldn’t add any additional liquid, like lime juice. That will throw off the liquid to dry and fat ingredients and could cause the texture to be off. Also, too much liquid can cause the cake to fall or be too dense. It needs something much more condensed, like the extract. If you can’t get it, I would try adding a bit more lime zest and then you could potentially add in a tablespoon or so of lime jello mix. I wouldn’t add an entire box of it though as that has always caused my cakes to fall and it makes the texture weird, but it should be okay with a tablespoon or two. That can pump up the flavor a bit without adding in extra liquid. Another idea would be to add in a tablespoon or so of limeade concentrate – it’s the type of juice that’s concentrated in the can in the frozen section – similar to the concentrated orange juice. Don’t add much as that will throw the ratios off, but that might help to bump up the lime flavor. Let me know how it goes!

      Reply
      • Arlette

        August 07, 2025 at 3:29 pm

        Hi Dear, thanks for the reply, all great ideas that I didn’t think of, but that’s why you’re the expert 🙂 However, it’s baking right now. I did add a bit more zest. The batter tasted nice when I tried it. I was also going to do a lime curd for filling to lime it up. I’m trying eight inch rounds.
        Also, just fyi, I noticed that you had the eggs added in the liquid mixture, then again with the butter/sugar mixture. I had already put the eggs with the liquid ingredients when I realized. Probably adding them to the butter mix is more standard procedure? Oh well…I added a bit of the liquid to start, then the rest of the alternating. The batter seemed fluffy, so maybe either way works? You probably want to change that though…lol Ok, I’ll let you know how it turns out 🙂
        Hug, Arlette

        Reply
        • Kara

          August 08, 2025 at 11:48 am

          Hi Arlette, thanks for pointing out the egg typo. I had someone else just let me know as well and I’ve fixed it on the recipe card. Sometimes I think my mind just goes on autopilot while typing. LOL! It’s okay the way you did it though. They’re meant to be added to the butter and sugar mixture after the creaming step, but adding to the liquid ingredients won’t destroy the cake. Let me know how it turns out!

          Reply
          • Arlette

            August 09, 2025 at 11:54 pm

            5 stars
            Thanks Kara, I sent you an email with a couple photos. The cake turned our a bit dense, but still good. I think the change in chemistry probably messed with it a bit. I mean I have to say I only skimmed your closer instructions, so I should have caught it myself…lol. Everyone really enjoyed the cake though. I did add lime curd and made a layer cake. Thank you as always. God bless, Arlette

            Reply
  2. Cindie Rosenkilde

    August 07, 2025 at 10:14 pm

    Hej du kommer æg sammen med det våde i punkt 4, er det ikke en fejl
    Men det skal jo piskes sammen med smørret i punkt 6
    🥰😉🇩🇰

    Reply
    • Kara

      August 08, 2025 at 11:46 am

      Hi Cindie, Oh I actually did make a typo! Thank you for telling me! So, you’ll add the eggs one at a time after you cream the butter and sugar together. I’ve fixed it on the recipe card. Thanks again!

      Reply
5 from 1 vote

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recipe Rating




Primary Sidebar

  • Facebook
  • Instagram
  • Pinterest
  • YouTube

Hey there, I’m Kara!

Hi, I'm so glad you're here! Cake shows up at our most important and happiest moments in life, like birthdays, weddings, baby showers and holidays. It's also for those everyday moments...it makes them even better. Put simply, cake just makes us happy! I love trying out new cake flavor combinations and decorating ideas. Have a look around and I bet you can find a cake recipe or tutorial for any of life's big moments and those everyday moments too. Click here if you want to learn more about me!

  • Let’s Make a Cake!
  • Blog
  • Privacy Policy
  • Cookie Policy
  • Terms and Conditions
  • Advertising Disclosures

Copyright © 2025 ·

Rate This Recipe

Your vote:




A rating is required
A name is required
An email is required

Recipe Ratings without Comment

Something went wrong. Please try again.