The dielectric tensor diagonal components for metal nanowires of different metals have been calculated within the model of free electrons and a cylindrical potential well. The smooth size dependence of the Fermi energy has been compared with the results of the numerical calculations. The influence of the system dimensionality on the frequency dependence of the dielectric tensor has been investigated.