I told my immediate family the same day. I figure I will need there support! I miscarried a month ago and there guidance helped me through. I wait til about 14 weeks to blab to extended family and friends.
If you have no history of miscarriage I would tell parents as soon as you want then wait until past 12 weeks for everyone else!
I told my mom and dad the same day...