How do you get rid of a bad attitude ?

My family and friends can no longer deal with my bad attitude. I want to change but I just don't know how. Can you help? I always get an attitude about everything and get mad easily could it be hormones or what ? I believe it’s ruining my relationships with people ....