If you're curious about the sex of your baby, you can get an ultrasound, which is usually done between weeks 18-20 of pregnancy. Provided that your ultrasound technician gets a good view between your baby's legs, the imaging procedure should be able to tell you the baby's sex with about 80% to 90% accuracy.