Due to the growing demand for clean and sustainable energy sources, there has been an increasing interest in solar cells and photovoltaic panels. Nevertheless, determining the right design parameters to achieve the most efficient energy output that aligns with the energy system's needs can be quite challenging. This complexity arises from the intricate models and the inherent inaccuracies in the available information. To tackle this challenge, this paper introduces the adaptive sine–cosine particle swarm optimization algorithm (ASCA-PSO) as a method for estimating the parameters of solar cells and photovoltaic modules. The ASCA-PSO approach combines the strengths of the SCA and PSO algorithms in a two-tier process. In this process, SCA search agents explore the search space, while the PSO search agents leverage the outcomes derived from SCA exploration. This study evaluates the effectiveness of ASCA-PSO in accurately estimating the parameters of single- and double-diode models using data from two commercial solar cells. The findings are compared with those of cutting-edge methods. It is demonstrated that ASCA-PSO can identify global solutions for multifaceted and intricate objective functions. Furthermore, it proves to be a viable option for designing solar cells even in the presence of noise.