To bake a moist cake measure your flour correctly. Stir flour then measure into a dry measuring cup. Level the top by scraping the excess flour off with a flat-edged butter knife. Too much flour in a cake can also make it dry. Make sure that your oven is at the right temperature. Use an oven thermometer to double-check the temperature. Also, avoid overcooking the cake.