Most species aggregate in local patches. High host density in patches increases contact rate between hosts and parasites, increasing parasite transmission success. At the same time, for environmentally-transmitted parasites, high host density can decrease infection risk to individual hosts, because infective stages are divided among all hosts in a patch, leading to safety in numbers. We tested these predictions using the California horn snail, Cerithideopsis californica (=Cerithidea californica), which is the first intermediate host for at least 19 digenean trematode species in California estuaries. Snails become infected by ingesting trematode eggs or through penetration by free-swimming miracidia that hatch from trematode eggs deposited with final-host (bird or mammal) feces. This complex life cycle decouples infective-stage production from transmission, raising the possibility of an inverse relationship between host density and infection risk. In a field survey, higher snail density was associated with increased trematode (infected snail) density, but decreased trematode prevalence, consistent with either safety in numbers, parasitic castration, or both. To determine the extent to which safety in numbers drove the negative snail density-trematode prevalence association, we manipulated uninfected snail density in 83 cages at eight sites within Carpinteria Salt Marsh (CA, USA). At each site, we quantified snail density and used data on final-host (bird and raccoon) distributions to control for between-site variation in infective-stage supply. After three months, overall trematode infections per cage increased with snail-biomass density. For egg-transmitted trematodes, per-snail infection risk decreased with snail-biomass density in the cage and surrounding area, whereas per-snail infection risk did not decrease for miracidium-transmitted trematodes. Furthermore, both trematode recruitment and infection risk increased with infective-stage input, but this was significant only for miracidium-transmitted species. A model parameterized with our experimental results and snail densities from 524 field transects estimated that safety in numbers, when combined with host aggregation, halved per-capita infection risk in this snail population. We conclude that, depending on transmission mode, host density can enhance parasite recruitment and reduce per-capita infection risk. This article is protected by copyright. All rights reserved.