In order to conduct structural analysis, we also developed programs in R language to analyze the number of bonds, segregation phenomena, and RDF. We perform a theoretical investigation using the density functional tight binding (DFTB) approach for the structural analysis and electronic structure of copper hydride (CuH) metallic nanoparticles (NPs) of different size (from 204 to 2418 atoms). By increasing the size of CuH NPs, the number of bonds, segregation phenomena and radial distribution function (RDF) of binary Cu-Cu, Cu-H and H-H interactions are investigated using new algorithms. The results reveal that the number of bonds Cu-Cu is larger than that of Cu-H while H2 bonds are the smallest. Thus, the ability of Cu atoms to absorb large amounts of H is more than H2. The increase in the size of the NPs contributes to the stabilization because of the enhanced strength of H–H bonding. The segregation of Cu and H atoms show that Cu atoms tend to co-locate at the center, while H atoms tend to reside on the surface. From the density of state (DOS) analysis, CuH NPs shows a metallic character which is compatible with experimental data. HOMO and Fermi levels decrease from -3.555 to -3.443 eV and from -3.510 to -3.441 eV. Herein, an increase in the size contributes to the stabilization of CuH NP due to decrease in the HOMO energies.