Ingredients
    For the cake:
    • 1   cup canola, corn, or vegetable oil; more for the pans
    • 2   cups unbleached all-purpose flour; more for the pans (9 ounces)
    • 2   teaspoons ground cinnamon
    • 1 3/4  teaspoons baking soda
    • 3/4  teaspoon ground nutmeg
    • 3/4  teaspoon ground ginger
    • 3/4  teaspoon table salt
    • 4   large eggs
    • 2 1/2  cups lightly packed, finely grated carrots (8-3/4 ounces)
    • 2   cups packed light brown sugar
    • 3/4  cup chopped walnuts, toasted
    • 1/2  cup raisins
    • 1 1/2  teaspoons pure vanilla extract
    For the frosting:
    • 1   pound cream cheese, softened
    • 12   ounces unsalted butter, softened (1-1/2 cups)
    • 1   pound confectioners' sugar (4 cups)
    • 4   teaspoons pure vanilla extract
    • 3/4  teaspoon table salt
    Related Video
    How to Bake a Cake from Scratch

    Toss the boxed cake mix and learn how to bake a cake from scratch. Nothing tastes better than homemade!

    Directions
    Make the cake
    1. 
    Position a rack in the center of the oven and heat the oven to 350 degrees F. Lightly oil and flour the sides of two 9x2-inch round cake pans, tapping out any excess flour. Line the bottoms of the pans with parchment.
    2. 
    In a medium bowl, whisk the flour, cinnamon, baking soda, nutmeg, ginger, and salt. In a large bowl with a hand mixer or in a stand mixer fitted with the paddle attachment, mix the oil, eggs, carrots, brown sugar, walnuts, raisins, and vanilla on medium speed until well blended, about 1 minute. Add the dry ingredients and mix on low speed until just blended, about 30 seconds. Divide the batter evenly between the prepared pans.
    3. 
    Bake until the tops of the cakes spring back when lightly pressed and a cake tester inserted into the centers comes out clean, 28 to 30 minutes.
    4. 
    Let cool in the pans on a rack for 15 minutes. Run a knife around the inside edge of the pans to loosen the cakes, invert them onto the rack, remove the pans, and carefully peel away the parchment. Set the cakes aside to cool completely before frosting.
    Make the frosting:
    1. 
    In a large bowl, beat the cream cheese and butter with the mixer on medium speed until very smooth and creamy, about 1 minute. Add the confectioners' sugar, vanilla, and salt and beat on medium high until blended and fluffy, about 2 minutes. Cover the frosting and set aside at room temperature until the layers are completely cool.
    Assemble the cake:
    1. 
    Carefully set one cake upside down on a large, flat serving plate. Using a metal spatula, evenly spread about 1-1/2 cups of the frosting over the top of the cake. Top with the remaining cake layer, upside down. Spread a thin layer (about 1/3 cup) of frosting over the entire cake to seal in any crumbs and fill in any gaps between layers. Refrigerate until the frosting is cold and firm, about 20 minutes. Spread the entire cake with the remaining frosting.
    2. 
    Refrigerate the cake for at least 4 hours or up to 2 days. The cake is best served slightly chilled or at room temperature.
    Make Ahead Tip:
    1. 
    The flavors of this moist cake only improve with time, so feel free to bake and frost the cake up to a few days ahead.
    Comments
    Back to Top