Anal Sex

This is a pretty embarrassing to talk about but why not? I've had anal sex a few times but then it started to hurt. I've heard it's all about comfort and I guess I've been pretty tense. I have a new boyfriend now and I want to do it but I don't know exactly how to calm down during sex. Any suggestions on how to make it easier?