Ingredients
Method
1. Heat the Oven
Set your oven to 350°F (175°C). Lightly grease a 9-inch cake pan and place parchment paper on the base. Planning to make layers? Prepare two 8-inch pans instead.
2. Prepare the Dry Mixture
In a mixing bowl, combine flour, baking soda, baking powder, salt, cinnamon, and nutmeg. Stir well so the spices distribute evenly.
3. Mix the Wet Ingredients
In a larger bowl, whisk the white sugar, brown sugar, and oil until smooth. Add eggs individually, mixing well after each one. Stir in the sourdough discard and vanilla extract until the batter looks creamy.
4. Combine Everything
Slowly incorporate the dry mixture into the wet mixture. Stir gently until the batter comes together. Avoid overmixing—this keeps the cake tender. Fold in the carrots, walnuts, and raisins.
5. Bake
Transfer the batter to the prepared pan and level the top. Bake for 40–50 minutes until a toothpick inserted into the center comes out clean. For two pans, check around 30–35 minutes. Allow the cake to cool briefly in the pan before moving it to a rack to cool fully.
6. Make the Frosting
Beat cream cheese and butter until smooth and fluffy. Gradually add powdered sugar and mix until light. Stir in vanilla and salt.
7. Frost the Cake
Spread frosting over the cooled cake and create gentle swirls with a spatula. Sprinkle chopped walnuts on top before serving.
Notes
Variations and Easy Adjustments
This recipe adapts beautifully depending on what you’re craving.- Bake it as a loaf cake in a standard loaf pan. Reduce bake time to about 35–45 minutes.
- Add ½ cup crushed pineapple (drained) for extra moisture.
- Swap walnuts for pecans if you prefer a milder crunch.
- Skip the frosting and dust with powdered sugar for a lighter dessert.
Storage Tips
This cake stores surprisingly well.- Keep frosted cake covered in the refrigerator up to 4 days.
- Bring slices to room temperature before serving for the best flavor.
- Freeze unfrosted cake layers for up to 2 months. Wrap tightly and thaw overnight in the fridge.
