Extended release oral dosage forms for the treatment of gastrointestinal motility disorders are described. Active agents which are small molecules, peptides, peptide analogs, and peptide mimetics are formulated for optimal release in the GI tract of subjects with GI motility dysfunction. Methods of treatment using the dosage forms are also described.