The diagnosis of Congenital Adrenal Hyperplasia mainly depends on the demonstration of the inadequate production of aldosterone, cortisol or both in the presence of the accumulation of excess concentrations of parent hormones. A baby can be diagnosed with congenital adrenal hyperplasia during pregnancy and sex of the baby after birth. A series of tests and thorough physical examinations are performed. Sometimes, congenital adrenal hyperplasia can be diagnosed and detected during pregnancy with the help of various prenatal tests. In some cases, the treatment can be started when the baby is still in the womb if there is a family history of congenital adrenal hyperplasia. This helps in preventing the masculinizing effects on the female.