Community energy storage (CES) is becoming an attractive technological option to facilitate the use of distributed renewable energy generation, manage demand loads and decarbonise the residential sector. There is strong interest in understanding the techno-economic benefits of using CES systems, which energy storage technology is more suitable and the optimum CES size. In this study, the performance including equivalent full cycles and round trip efficiency of lead-acid (PbA) and lithium-ion (Li-ion) batteries performing demand load shifting are quantified as a function of the size of the community using simulation-based optimisation. Two different retail tariffs are compared: a time-of-use tariff (Economy 7) and a real-time-pricing tariff including four periods based on the electricity prices on the wholesale market. Additionally, the economic benefits are quantified when projected to two different years: 2020 and a hypothetical zero carbon year. The findings indicate that the optimum PbA capacity was approximately twice the optimum Li-ion capacity in the case of the real-time-pricing tariff and around 1.6 times for Economy 7 for any community size except a single home. The levelised cost followed a negative logarithmic trend while the internal rate of return followed a positive logarithmic trend as a function of the size of the community. PbA technology reduced the levelised cost down to 0.14£/kWh when projected to the year 2020 for the retail tariff Economy 7. CES systems were sized according to the demand load and this approximated the performance of PbA and Li-ion batteries, the capital cost per unit energy storage (kWh) of the latter assumed to be the double.