Step 1: Preheat & Prep
Preheat oven to 350°F (175°C).
Line a muffin tin with cupcake liners.
Finely grate carrots and set aside.
Step 2: Mix Dry Ingredients
In a bowl, whisk together flour, baking soda, baking powder, salt, cinnamon, and nutmeg.
Step 3: Mix Wet Ingredients
In a separate bowl, mix oil, granulated sugar, and brown sugar.
Add eggs one at a time, mixing well after each addition.
Stir in vanilla extract.
Fold in grated carrots.
Step 4: Combine
Gradually add dry ingredients to wet mixture.
Mix gently until just combined (do not overmix).
Fold in nuts or raisins if using.
Step 5: Bake
Fill cupcake liners about ¾ full.
Bake for 18–22 minutes, rotating pan halfway through.
Check with a toothpick — it should come out clean.
Cool completely before frosting.
Step 6: Make Frosting
Beat cream cheese and butter until smooth.
Gradually add powdered sugar.
Mix in vanilla extract.
Beat until fluffy and smooth.
Step 7: Frost
Pipe or spread frosting onto cooled cupcakes.
Garnish with chopped nuts or decorations if desired.