A numerical model of salt marsh evolution shows that competition between mineral sediment deposition and organic matter accumulation determines the net impact of climate change on carbon accumulation in intertidal wetlands.