The polymer concentration in a gel layer is not homogenous and a procedure for determining the concentration of polymer in gel was developed. A series of model samples - homogenous gels with known concentration - were prepared. T1 and T2 for each of them were measured at the same temperature and frequency conditions. The theoretical MRI signal was calculated for each of them for the actual imaging parameters, allowing to determine the water concentration for each pixel from the image brightness. In this way we obtained the polymer concentration profile through the whole swelling tablet as a function of time. Better prediction about drug release from hydrated polymer tablets is provided if, in addition to the thickness of a gel layer around the tablet, its hydration structure could be determined.