The ideal time to find out the gender of your baby is usually around 18-20 weeks into your pregnancy. During this period, a detailed ultrasound scan can be performed to accurately determine the sex of your baby. However, it's important to note that the accuracy of determining gender can vary depending on various factors such as fetal position and technician expertise. It's always best to consult with your healthcare provider to schedule an appointment for an ultrasound scan at the appropriate time. They will be able to guide you further and provide you with more specific information based on your individual circumstances.