Bake until a cake tester inserted into the center of the cupcakes comes out clean, 18 to 20 minutes for standard cupcakes or 10 to 12 minutes for minis, rotating the tin halfway through baking time. Cool the cupcakes in the tin for 10 minutes on a rack, then remove from the tin and cool completely on the rack.