It’s good to go to the gym three to five times per week for a total of at least 75 to 150 minutes of aerobic activity. You should also strength train two to three days per week.
Frequency and intensity of workouts vary from individual to individual, based on objective, such as losing weight or gaining muscle.