The trick is to get a toothpick and stick it in the middle of the cake that you’re baking. If the toothpick comes out without too much of the batter sticking to it or if it comes out clean, then your cake is baked well and can be taken out of the oven.