Preheat your oven to 350°F. Line a cupcake tin with paper liners.
In a medium bowl, whisk together the flour, baking powder, baking soda, salt, and cinnamon.
In a large bowl, combine the vegetable oil, sugar, brown sugar, eggs, and vanilla. Mix until slightly creamy.
Gradually add the dry flour mixture to the wet mixture, stirring until just combined. Be careful not to overmix.
Fold in the carrots and chopped nuts (if adding them).
Fill each cupcake liner about ¾ full of the batter.
Bake in the preheated oven for 20-25 minutes, or until a toothpick inserted into the center of a cupcake comes out clean.
Remove the cupcakes from the oven and allow them to cool. Transfer them to a wire rack so that they cool completely.
Once the cupcakes are completely cooled, you can frost them. (Here’s our homemade cream cheese frosting recipe that we use but you can use store-bought if you wish).