When to tell your roommate and closest friends you are transferring?

I would wait as late as possible …otherwise they will psychologically distance themselves from you.

However, I would tell them when it is time to make housing arrangements. You don’t want to leave them in the lurch.