The best way to prevent gummy cupcakes is to be careful how you mix them. If possible, mix the cupcake batter by hand to make sure it doesn’t get over-mixed. In this recipe, the addition of sour cream also helps keep the cupcakes tender and moist.