For men attending a bar mitzvah or bat mitzvah in a synagogue you should wear long pants trousers and a shirt or top with a sleeve.
What to wear to a bar mitzvah party. The reason I specify Canada and the US is because dress expectations are different in different countries. Guests at a barbat mitzvah celebration generally wear dressy clothes for men either a suit or slacks tie and jacket and for women a dress or formal pantsuit. Dressy Respectful is a Good Bet.
What happens to a boy at a bar mitzvah. Women should wear a modest dress or formal pantsuit. You could also choose to wear a formal suit.
As a rule dressy but somewhat conservative clothing will make for a good choice when going to a bar mitzvah. It may have dress suggestions. After the service there will usually be a party to celebrate the Bar Mitzvah.
Men will be expected to wear a suit or slacks a tie and a jacket. Avoid anything that shows a lot cleavage or leg. It really depends on where the party is and if the party includes adults which might make it a little more formal than an all-teen party.
For the ceremony most times male guests are given yarmulkes to wear. Complement the suit with a pressed button down shirt and tie. Men are typically expected to wear a suit or slacks and a tie.
If youre not sure of the dress level you can always call the hosts to confirm. Even if you are choosing short dresses cover yourself up with a shawl or a jacket and at the party take it off. Women should wear a modest dress or formal pantsuit.