A gastroretentive composition comprises a mixture comprising an active ingredient component and an excipient component. The excipient component comprises a first water-soluble reaction product produced from a precursor comprising a vinyl group, and a copolymer of a polyalkylene glycol and a second water-soluble reaction product produced from a precursor comprising a vinyl group. A method of forming the gastroretentive composition comprises the steps of providing the active ingredient component and the excipient component, and mixing the active ingredient component and the excipient component to form a mixture. The mixture is aggregated to form an aggregation that is dry granulated to form a plurality of granules. The plurality of granules is processed to form the gastroretentive composition.