Ocean acidification is a growing threat to coral growth and the accretion of coral reef ecosystems. Corals inhabiting environments that already endure extreme diel pCO
2
fluctuations, however, may represent acidification-resilient populations capable of persisting on future reefs. Here, we examined the impact of pCO
2
variability on the reef-building coral
Pocillopora damicornis
originating from reefs with contrasting environmental histories (variable reef flat versus stable reef slope) following reciprocal exposure to stable (218 ± 9) or variable (911 ± 31) diel pCO
2
amplitude (μtam) in aquaria over eight weeks. Endosymbiont density, photosynthesis and net calcification rates differed between origins but not treatment, whereas primary calcification (extension) was affected by both origin and acclimatization to novel pCO
2
conditions. At the cellular level, corals from the variable reef flat exhibited less intracellular pH (pHi) acidosis and faster pHi recovery rates in response to experimental acidification stress (pH 7.40) than corals originating from the stable reef slope, suggesting environmental memory gained from lifelong exposure to pCO
2
variability led to an improved ability to regulate acid–base homeostasis. These results highlight the role of cellular processes in maintaining acidification resilience and suggest that prior exposure to pCO
2
variability may promote more acidification-resilient coral populations in a changing climate.