Your risk of miscarriage is highest in the first few weeks of pregnancy and drops to below 3% in your second trimester.
You should announce when it feels right to you, but there are considerations to think about such as work, ultrasounds, and ...