Erectile dysfunction often affects men as they get older. It is also more common in men with HIV than in the general population, although it has been difficult to estimate how many men with HIV are affected. Research suggests that around 40 to 60% of men with HIV may have some degree of erectile dysfunction.