The number of cycles needed to achieve the desired sex through sex selection with IUI can vary depending on individual factors such as age, fertility status, and sperm quality. Some individuals may succeed in one cycle, while others may require multiple cycles.