The content and composition of soil organic carbon (SOC) can characterize soil carbon storage capacity, which varies significantly between habitats. Ecological restoration in coal mining subsidence land forms a variety of habitats, which are ideal to study the effects of habitats on SOC storage capacity. Based on the analysis of the content and composition of SOC in three habitats (farmland, wetland and lakeside grassland) generated by different restoration time of the farmland which was destroyed by coal mining subsidence, we found that farmland had the highest SOC storage capacity among the three habitats. Both dissolved organic carbon (DOC) and heavy fraction organic carbon (HFOC) exhibited higher concentrations in the farmland (20.29 mg/kg, 6.96 mg/g) than in the wetland (19.62 mg/kg, 2.47 mg/g) or lakeside grassland (5.68 mg/kg, 2.31 mg/g), and the concentrations increased significantly over time, owing to the higher content of nitrogen in the farmland. The wetland and lakeside grassland needed more time than the farmland to recover the SOC storage capacity. The findings illustrate that the SOC storage capacity of farmland destroyed by coal mining subsidence could be restored through ecological restoration and indicate that the recovery rate depends on the reconstructed habitat types, among which farmland shows great advantages mainly due to the nitrogen addition.