Battery energy storage systems (BESSs) are considered a key device to be introduced to actuate the smart grid paradigm. However, the most critical aspect related to the use of such device is its economic feasibility as it is a still developing technology characterized by high costs and limited life duration. Particularly, the sizing of BESSs must be performed in an optimized way in order to maximize the benefits related to their use. This paper presents a simple and quick closed form procedure for the sizing of BESSs in residential and industrial applications when time-of-use tariff schemes are applied. A sensitivity analysis is also performed to consider different perspectives in terms of life span and future costs.