If you love classic carrot cake but want something a little easier to bake, slice, and share, these Carrot Cake Squares with Cream Cheese Frosting are just what you need. They have everything that makes traditional carrot cake so irresistible: tender cake, freshly grated carrots, warm cinnamon and nutmeg, and a rich cream cheese frosting that adds the perfect tangy finish.
Crushed pineapple gives the cake extra moisture, while brown sugar adds a lovely depth of sweetness. Baked in a simple 9×13-inch pan, these squares are perfect for Easter celebrations, holiday dessert tables, potlucks, or an afternoon treat with coffee. No stacking cake layers or complicated decorating required!
Why You’ll Love These Carrot Cake Squares
- Perfectly moist texture: Fresh carrots and crushed pineapple keep every bite soft and tender.
- Classic carrot cake flavor: Cinnamon, nutmeg, and ginger create a warm, comforting spice blend.
- Creamy homemade frosting: The tangy cream cheese frosting balances the sweetness of the cake beautifully.
- Easy to make and serve: Everything bakes in one rectangular pan, making slicing and sharing simple.
- Great for special occasions: These squares look lovely on a dessert platter and are easy to transport.
Ingredients You’ll Need
For the Carrot Cake
- All-purpose flour: Provides the structure and gives the cake its soft, tender crumb.
- Baking powder and baking soda: Work together to help the cake rise.
- Salt: Balances the sweetness and brings out the other flavors.
- Ground cinnamon: Adds the familiar warmth that makes carrot cake so delicious.
- Ground nutmeg: Brings a gentle, nutty spice note.
- Ground ginger: Adds a little extra warmth and depth.
- Vegetable oil: Keeps the cake moist without making it heavy.
- Granulated sugar: Provides sweetness and helps create a tender texture.
- Brown sugar: Adds a rich, molasses-like flavor that pairs beautifully with the spices.
- Large eggs: Bind the ingredients together and provide structure.
- Grated carrots: The star ingredient, adding natural sweetness, moisture, and texture.
- Crushed pineapple: Adds moisture and a subtle fruity tang. Make sure it is well drained.
- Vanilla extract: Rounds out the flavors in the cake.
- Chopped walnuts or pecans (optional): Add a pleasant crunch.
- Raisins (optional): Bring little bursts of sweetness to each bite.
For the Cream Cheese Frosting
- Cream cheese: Creates the signature tangy, creamy base.
- Unsalted butter: Adds richness and makes the frosting smooth.
- Powdered sugar: Sweetens the frosting and gives it a spreadable consistency.
- Vanilla extract: Adds a lovely finishing flavor.
- A pinch of salt: Helps balance the sweetness.
How to Make Carrot Cake Squares with Cream Cheese Frosting
Step 1: Prepare the Baking Pan and Dry Ingredients
Preheat your oven to 350°F (175°C). Grease a 9×13-inch baking pan and line it with parchment paper, leaving a little overhang on the sides to make removing the cake easier.
In a large mixing bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, nutmeg, and ground ginger. Mixing the dry ingredients first helps distribute the leavening agents and spices evenly throughout the cake.
Step 2: Mix the Wet Ingredients
In a separate large bowl, whisk the vegetable oil with the granulated sugar and brown sugar until combined. Add the eggs one at a time, mixing well after each addition. Stir in the vanilla extract.
Add the grated carrots and drained crushed pineapple, folding gently until everything is evenly distributed. If you’re using walnuts, pecans, or raisins, stir them in at this stage.
Step 3: Combine the Cake Batter
Gradually add the dry ingredients to the wet mixture. Stir gently with a spatula or wooden spoon until the flour is just incorporated.
Avoid overmixing, as this can make the cake dense instead of soft and tender. The batter should be thick and evenly combined.
Step 4: Bake the Carrot Cake
Pour the batter into your prepared baking pan and spread it evenly into the corners.
Bake for 30–35 minutes, or until a toothpick inserted into the center comes out clean or with just a few moist crumbs.
Place the pan on a wire rack and allow the cake to cool completely before adding the frosting. This step is important because warm cake can cause the cream cheese frosting to melt.
Step 5: Prepare the Cream Cheese Frosting
In a large bowl, beat the softened cream cheese and butter until smooth, creamy, and free of lumps.
Gradually add the powdered sugar, mixing on low speed at first to prevent it from flying everywhere. Add the vanilla extract and a pinch of salt, then beat until the frosting is light and smooth.
If the frosting feels too soft to spread, refrigerate it briefly until it reaches a thicker consistency.
Step 6: Frost, Slice, and Serve
Once the carrot cake has cooled completely, spread the cream cheese frosting evenly over the top.
For a pretty finishing touch, sprinkle with chopped walnuts, pecans, or a little cinnamon. Use a sharp knife to cut the cake into squares, wiping the blade between cuts for cleaner edges.
Serve and enjoy!

Tips for Perfect Carrot Cake Squares
- Grate fresh carrots: Finely grated fresh carrots blend beautifully into the batter and help create a moist cake. Avoid using pre-shredded carrots, which can be too dry and coarse.
- Drain the pineapple well: Too much extra liquid can affect the cake’s texture. Press out excess juice before adding the pineapple.
- Use room-temperature ingredients: Softened eggs, cream cheese, and butter mix more evenly and help create a smoother batter and frosting.
- Don’t overmix: Once the dry ingredients are added, stir only until combined to keep the cake tender.
- Let the cake cool completely: Frosting a warm cake can make the topping runny and difficult to spread.
- Chill for neat slices: Refrigerate the frosted cake briefly before cutting if you want especially tidy squares.
Equipment Needed
- 9×13-inch baking pan
- Parchment paper
- Large mixing bowls
- Whisk
- Hand mixer or stand mixer
- Measuring cups and spoons
- Box grater or food processor
- Rubber spatula
- Wire cooling rack
- Sharp knife
Recipe Variations
1. Carrot Cake Squares with Walnuts
Fold ½ cup of chopped walnuts or pecans into the batter for a delicious nutty crunch. You can also sprinkle a few over the frosting before serving.
2. Carrot Cake Squares with Raisins
Add ½ cup of raisins to the batter for extra sweetness and a chewy texture. Golden raisins work particularly well if you want a slightly different flavor.
3. Coconut Carrot Cake Squares
Add shredded coconut to the batter for a tropical twist. A little toasted coconut sprinkled over the cream cheese frosting makes a lovely finishing touch.
4. Extra-Spiced Carrot Cake
If you enjoy a stronger spice flavor, add a small pinch of ground cloves or cardamom. A little orange zest can also brighten the warm spices.
5. Gluten-Free Carrot Cake Squares
Replace the all-purpose flour with a gluten-free baking blend designed for a 1:1 flour substitution. Check that your baking powder and other ingredients are certified gluten-free, and follow the flour blend’s instructions for best results.
What to Serve with Carrot Cake Squares
These carrot cake squares are delicious on their own, but a few simple pairings can make them feel extra special.
- Coffee: A cup of freshly brewed coffee balances the sweetness of the cream cheese frosting.
- Black tea: The gentle flavor of tea complements the warm spices.
- Vanilla ice cream: Serve a square with a scoop of ice cream for a more indulgent dessert.
- Fresh fruit: Strawberries, raspberries, or sliced oranges add a refreshing contrast.
- Caramel sauce: A light drizzle makes these squares feel a little more dessert-table worthy.
For gatherings, arrange the squares on a serving platter and finish with chopped nuts or a light dusting of cinnamon.
How to Store and Freeze Carrot Cake Squares
Refrigerating: Because the cream cheese frosting contains dairy, store the frosted carrot cake squares in an airtight container in the refrigerator for up to 5 days.
Serving leftovers: Let the squares sit at room temperature briefly before serving so the cake and frosting soften slightly.
Freezing: For the best results, freeze the unfrosted cake. Allow it to cool completely, wrap it tightly in plastic wrap, and then cover it with aluminum foil. Freeze for up to 3 months.
Thawing: Thaw the cake overnight in the refrigerator. Prepare the cream cheese frosting fresh, then frost and slice before serving.
Frequently Asked Questions
Can I make carrot cake squares ahead of time?
Absolutely! You can bake the cake a day ahead, let it cool, and store it covered in the refrigerator. Prepare the frosting separately or frost the cake once it has cooled. The flavors are lovely after resting overnight.
Can I use applesauce instead of crushed pineapple?
Yes. Unsweetened applesauce can replace the crushed pineapple, although it will give the cake a slightly different flavor and texture. Start with the same amount and make sure the batter is not overly wet.
Why are my carrot cake squares dense?
Overmixing the batter is a common reason for dense carrot cake. Stir the dry ingredients into the wet ingredients just until combined. Also check that your baking powder and baking soda are fresh.
Can I make these carrot cake squares without nuts?
Of course! The walnuts and pecans are completely optional. Simply leave them out, and the cake will still be moist, flavorful, and delicious.
How do I know when the carrot cake is done?
Insert a toothpick into the center of the cake. If it comes out clean or with a few moist crumbs, the cake is ready. If you see wet batter, give it a few more minutes in the oven.
Can I make the cream cheese frosting less sweet?
Yes. You can slightly reduce the powdered sugar, keeping in mind that it also helps thicken the frosting. Add a little at a time until you reach your preferred sweetness and consistency.
What should I do if my cream cheese frosting is too runny?
First, make sure the cream cheese and butter were softened but not melted. If the frosting is still too soft, refrigerate it for 15–20 minutes, then beat it briefly before spreading.
Can I use a different frosting?
Yes! A simple vanilla glaze or whipped frosting can work if you prefer something lighter. However, cream cheese frosting is the classic pairing and gives these squares their delicious sweet-and-tangy finish.
Can I bake this recipe in a different-sized pan?
A different pan size may change the baking time and cake thickness. A smaller, deeper pan will generally need more time, while a larger, shallower pan may bake faster. Check the center regularly with a toothpick.
How should I cut the squares neatly?
Let the cake cool completely and chill it briefly after frosting. Use a sharp knife, wiping it clean between cuts to keep the frosting from smearing.
Final Thoughts
These Carrot Cake Squares with Cream Cheese Frosting bring all the cozy flavors of classic carrot cake into an easy-to-share dessert. The tender, spiced cake, sweet carrots, and creamy frosting make every bite feel special, while the simple sheet-pan preparation keeps things wonderfully fuss-free.
Whether you’re baking for a holiday, bringing dessert to a family gathering, or simply craving something homemade with your afternoon coffee, these carrot cake squares are always a lovely choice. Make a batch, cut them into generous squares, and don’t be surprised if everyone comes back for another!
Print
Carrot Cake Squares with Cream Cheese Frosting
- Total Time: 55 minutes
- Yield: Not specified
- Diet: Vegetarian
Description
Carrot Cake Squares with Cream Cheese Frosting are moist, tender, and full of warm cinnamon, nutmeg, and ginger flavors. Made with freshly grated carrots and crushed pineapple, these easy-to-serve cake squares are topped with rich, creamy homemade cream cheese frosting. Perfect for holidays, family gatherings, and everyday desserts.
Ingredients
- 2 cups all-purpose flour
- 1 1/2 teaspoons baking powder
- 1 teaspoon baking soda
- 1/2 teaspoon salt
- 1 teaspoon ground cinnamon
- 1/2 teaspoon ground nutmeg
- 1/2 teaspoon ground ginger
- 3/4 cup vegetable oil
- 1 cup granulated sugar
- 1/2 cup brown sugar
- 4 large eggs
- 2 cups grated carrots
- 1/2 cup crushed pineapple, drained
- 1 teaspoon vanilla extract
- 1/2 cup chopped walnuts or pecans (optional)
- 1/2 cup raisins (optional)
For the Cream Cheese Frosting:
- 8 ounces cream cheese, softened
- 1/2 cup unsalted butter, softened
- 2 cups powdered sugar
- 1 teaspoon vanilla extract
- Pinch of salt
Instructions
- Preheat the oven to 350°F (175°C). Grease and line a 9×13-inch baking pan with parchment paper.
- In a large bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, nutmeg, and ground ginger.
- In another bowl, beat the vegetable oil, granulated sugar, and brown sugar until smooth. Add the eggs one at a time, mixing well after each addition. Stir in the vanilla extract.
- Fold the grated carrots and drained crushed pineapple into the wet mixture. If using, add the chopped walnuts or pecans and raisins.
- Gradually add the dry ingredients to the wet ingredients, stirring gently until just combined. Do not overmix.
- Pour the batter into the prepared baking pan and spread it evenly.
- Bake for 30-35 minutes, or until a toothpick inserted into the center comes out clean or with a few moist crumbs.
- Remove the cake from the oven and let it cool completely in the pan before frosting.
- To make the frosting, beat the softened cream cheese and butter together in a large bowl until smooth and creamy.
- Gradually add the powdered sugar, beating until the frosting is smooth. Mix in the vanilla extract and a pinch of salt.
- Spread the cream cheese frosting evenly over the completely cooled cake.
- Cut into squares and serve. Garnish with chopped nuts or a light sprinkle of cinnamon if desired.
Notes
- Use fresh, firm carrots and finely grate them for the best texture and moisture.
- Drain the crushed pineapple well to prevent the cake from becoming too wet.
- Avoid overmixing the batter to keep the cake soft and tender.
- Make sure the cream cheese and butter are softened to room temperature for smooth, lump-free frosting.
- If the frosting is too soft, refrigerate it for 15-20 minutes before spreading.
- For a healthier variation, replace half of the all-purpose flour with whole wheat flour or slightly reduce the sugar.
- Add a pinch of cloves or cardamom, or a little orange or lemon zest, for extra flavor.
- Store frosted carrot cake squares in an airtight container in the refrigerator for up to 5 days. Allow them to come closer to room temperature before serving.
- To freeze, wrap the unfrosted cake tightly in plastic wrap and aluminum foil. Freeze for up to 3 months. Thaw overnight in the refrigerator and frost before serving.
- Serve with coffee, tea, or vanilla ice cream for a delicious dessert.
- Prep Time: 20 minutes
- Cook Time: 35 minutes
- Category: Dessert, Cake
- Method: Bake
- Cuisine: American