Diatom cell-size composition is an indicator of aquatic environmental changes but has been rarely investigated, especially in semi-terrestrial peatlands. In this study, both taxonomic composition and cell-size composition of diatoms were analysed in 41 samples from two montane peatlands, northeastern China. Redundancy analyses revealed that diatom taxonomic composition was significantly related to the depth to the water table (DWT) and Ca
2+
, while cell-size composition was significantly associated with DWT and Si. DWT was the most important factor and its sole effect explained 26.2% and 17.9% of the total variance in taxonomic composition and cell-size composition, respectively. Accordingly, diatom-based water-table transfer functions were developed based on taxonomic composition and cell-size composition, respectively. The maximum-likelihood (ML) model based on diatom taxonomic composition had the best performance, with a correlation coefficient value (
R
2
) of 0.78 and the root mean squared error of prediction (RMSEP) of 6.66 cm. The ML model based on cell-size composition had similar performance, with an
R
2
of 0.78 and the RMSEP of 6.87 cm, suggesting that diatom cell-size composition can be a new quantitative means to track past water-table changes. This method requires further appraisal with palaeoecological data but offers a new option that deserves exploration.