Emerging evidence implicate the gut microbiota as a potential susceptibility factor in attention-deficit hyperactivity disorder (ADHD), a common multifactorial neurodevelopmental condition. However, little is known about the biochemical signature of ADHD, including the metabolic contribution of the microbiota via the gut-brain axis, and the relative contribution of genetics and environmental factors. Here, we perform unbiased metabolomic profiling of urine and fecal samples collected from a well-characterized Swedish twin cohort enriched for ADHD (33 ADHD, 79 non-ADHD), using 1H nuclear magnetic resonance spectroscopy and liquid chromatography-mass spectrometry. Our results highlight sex-specific patterns in the metabolic phenotype of individuals with ADHD. Specifically, the urine profile of males, but not females, with ADHD was characterized by greater excretion of hippurate, a product of microbial-host co-metabolism that can cross the blood-brain-barrier with bioactivity of potential relevance to ADHD. This trans-genomic metabolite was also negatively correlated with IQ in males and was significantly correlated with fecal metabolites associated with gut microbial metabolism. The fecal profile of ADHD individuals was characterized by increased excretion of stearoyl-linoleoyl-glycerol, 3,7-dimethylurate, and FAD and lower amounts of glycerol 3-phosphate, thymine, 2(1H)-quinolinone, aspartate, xanthine, hypoxanthine, and orotate. These changes were independent of ADHD medication, age, and BMI. Furthermore, our specific twins’ models revealed that many of these gut metabolites had a stronger genetic influence than environmental. These findings suggest that metabolic disturbances in ADHD, involving combined gut microbial and host metabolic processes, may largely derive from gene variants previously linked to behavioral symptoms in this disorder.This article is part of the Special Issue on “Microbiome & the Brain: Mechanisms & Maladies”.