Whisk or sift the flour, baking powder, baking soda, and salt in a bowl and set aside.
In a separate bowl, add the sugar, oil, eggs, buttermilk, and vanilla extract, and beat well.
Add the flour mixture to the beaten egg mixture
Beat until well combined and until the batter is smooth.
Pour the batter into 2 greased and lined 9 inches (23cm) round cake pans.
Bake at 350°F (180°C) for about 25 to 30 minutes until a skewer inserted into the middle of the cake comes out clean.
Remove from the oven and allow the cakes to cool in the pans for about 5 minutes before turning out onto a cooling rack.
Frost or decorate as you prefer.