Gynecomastia can sometimes be caused by certain medications. These medications include:  AIDS medications. Anti-anxiety medications and antidepressants. Certain cancer treatments, including chemotherapy. Some antibiotics.