There are several common ways to treat infertility, depending on what is causing it, how long it has been an issue, age, and preferences for treatment. Not all causes can be treated. In men, common treatments include basic lifestyle factors such as changes in health and diet, prescription medication, and sperm retrieval.. In women, treatments include surgery, intrauterine insemination (IUI), and the use of fertility drugs to stimulate ovulation. As with any treatment, options and risks should be discussed with a doctor.