Fragile X syndrome can be diagnosed with a blood test. Testing can show changes in the FMR1 gene. Prenatal testing can identify the gene that causes fragile X before birth.