Weight Gain at 21 Weeks

Up until 19 weeks I hadn’t gained a single pound. I just weighed myself at 21 weeks and all of a sudden I’ve gained 9 pounds! Is that normal? I have not been eating well lately and think I need to cut down on the snacking 😭 I’m 5’7” and my pre pregnancy weight was 142.