Testicular cancer primarily affects young and middle-aged men. The most common age range for diagnosis is between 15 and 44 years old, but it can occur at any age.