Background: Community-acquired pneumonia (CAP) is an acute respiratory infection with a high clinical and economic burden. Clarifying the burden is important for health policy making. However, there is inadequate data on the economic burden of childhood CAP in China. In this study, the direct disease burden of CAP in children was analyzed using city-level data.Methods: A cross-sectional study of the direct costs of CAP for hospitalized children aged 28 days to 18 years old in Shanghai from January 2018 to December 2020 was performed. Information, including the hospitalization costs from the first page of the children's hospitalized medical records, was obtained.The direct costs included medical services, diagnostics, medications, and medical supplies. The continuous variables with non-normal distributions are expressed as the median (interquartile range). Comparisons between groups were performed using the Kruskal-Wallis H test. The enumeration data are expressed as the number (percentage), and comparisons between groups were performed using the χ 2 test.Results: A total of 59 hospitals and 63,614 hospitalized CAP patients were included in this study.