The karyotype is a test that provides information on the number, size and shape of chromosomes in a sample of body cells. It can be used to find out whether a fetus has some chromosome defects that could cause developmental problems, birth defects or disability. It can also be used for determining the sex of the baby.