Don't know what to do

I had a miscarriaged a month ago. I was 3 months in.. I still haven't told my boyfriend.. Im scared he is going to be heart broken.. How do I go about telling him?