The toothpick trick for cupcakes involves inserting a toothpick into the center of a baked cupcake; if it comes out clean or with a few moist crumbs, the cupcakes are done. If wet batter sticks to the toothpick, the cupcakes need more baking time.