Between 18 and 22 weeks, you'll get a detailed anatomy scan, called a level 2 ultrasound. Though sometimes called "gender ultrasounds," anatomy scans aren't solely to determine your baby's sex.