There is no set age for this. It varies tremendously from person to person. For some, it can happen as early as puberty, when a boy can realize that he is attracted to men rather than women. For others, however, it can take longer. Intolerance and social stigma can make it difficult to admit to yourself that you are gay.