So I will only focus on how a person can know what gender they are. If that's not it, you'll have to write again and be more clear.
Kids born male or female who gravitate to things relating to the opposite sex from an early age, like toddler and preschool are very likely to be trans-gender. Since this has nothing to do with sex, you don't have to wait until puberty to know. Most kids know long before puberty and actually dread having their body morph into the gender they don't feel they are, like being trapped in the wrong body. SO to be clear, this does not have anything to do with being gay, bi or some other sexual preference.
There are plenty of you tube videos on transgender kids. There are also chat groups specifically for that. The most popular is Jazz Jennings born in a male body but she is female. She has a you tube show called 'I am Jazz" I loved the one video of how her Mom noticed it early on and knew before Jazz even did and was supportive. So look for that.
You can also do a search online for 'transgender support groups" however many states or cities have ones specific for that area, so you may want to add your city or state to get one local.
I am going to guess that you are young or a teen. This is the time that some non transgender kids start to question things like sexual preferance and if not knowing any better may assume they are also transgender.
It is possible to be transgender and also be gay or bi. It does not mean that it you are gay or bi that you are automatically transgender.
So lets cover quickly the sexual preferences:
Gay: this means if you are female, you are sexually attracted to females. Males do not incite desire and passion in you. The same goes the other way, with Males attracted to males.
Bi sexual: This is where the person is correctly in a male or female assigned body but instead of attracted to only the same sex, they are also attracted sexually to the opposite sex. I am not bi but have met quite a few bi women. Some will be married and attracted only to one male, their husband and not attracted to any other males but attracted to one specific female or many females. It can be where a woman likes many men and many women but the most common I've met is a one man only but many females bi sexual woman. I can't speak for the males as I hadn't met any.
I hope this clarifies things a bit and you know what to go looking for in support online. Good luck [ Dragonflymagic's advice column | Ask Dragonflymagic A Question ]
Attention: NOTHING on this site may be reproduced in any fashion whatsoever without explicit consent (in writing) of the owner of said material, unless otherwise stated on the page where the content originated. Search engines are free to index and cache our content. Users who post their account names or personal information in their questions have no expectation of privacy beyond that point for anything they disclose. Questions are otherwise considered anonymous to the general public.