The macro-detritivore gastropod Melampus coffeus plays an important role in energy transfer in neotropical mangroves and, because it consumes tree leaves, it may be a potential ecological indicator of degraded mangrove areas. The objective of this study was to analyse the spatial-temporal distribution and population dynamics parameters of M. coffeus in mangroves and correlate environmental variables with population density, shell morphology and survival. Samples were collected monthly in two mangrove forests with different salinities, located on the north-eastern coast of Brazil. Height, width and aperture height of the animals’ shell were measured. The effects of salinity on population density and size distribution in M. coffeus were evaluated in field and laboratory experiments. The results showed that populations of M. coffeus present low density and are composed of large individuals during the dry season in both mangrove forests. These populations are denser and show predominance of small individuals during the rainy season when salinity decreases. The results obtained in the experiments confirm the observations in the field. Animals at extreme sizes (small and large) subjected to different salinity treatments over a moderate period showed higher mortality rates than individuals of intermediate size.