Zaid Alsalami, Shaykh Dr Zaid Alsalami is an Iraqi born scholar, raised in Australia. He obtained a BA from Al-Mustafa University, Qom, and an MA from the Islamic College in London. He also obtained a PhD from... Answered 4 months ago

Bismihi ta'ala

There are many shar'i concerns regarding a mixed gym, for both males and females.

The dressing of men and women are not within the shar'i boundaries, and any male or female will without choice see someone of the opposite gender with bare minimum clothing, or in provocative positions that for us could be considered immodest in public. This could lead to lustful gaze, and other things that entail haram.

If you are able to avoid all of this, and avoid doing things that would be against a Muslim woman's public modesty, then you can go. This means you would need to go at a time where there are no men at all.

Alternatively, you can go to a women only gym, or purchase gym equipment and use at your own discretion at home. 

And Allah knows best.