Telling my partner

So today I found out I'm pregnant. I'm 19 and terrified, I don't know what to do I'm scared to tell my boyfriend because I don't know how to react. We've only been dating for 6 months how/when should I tell him?