In this paper, stochastic sizing of a stand-alone Photovoltaic/Hydrokinetic/Hydrogen storage energy system is performed with aim of minimizing the cost of project life span (COPL) and satisfying the reliability index as probability of load shortage (POLS). The stochastic sizing is implemented using a novel framework considering two-point estimate method (2m+1 PEM) and improved gradient-based optimizer (IGBO). The 2m+1 PEM is used to evaluate the impact of uncertainties of energy resource generation and system demand on sizing problem. The 2m+1 PEM utilizes the approximate method to account for these uncertainties. In order to avoid premature convergence, the gradient-based optimizer (GBO), a meta-heuristic algorithm influenced by Newtonian concepts, is enhanced using a dynamic lens-imaging learning approach. The size of the system devices, which is determined utilizing the IGBO with the COPL minimization and optimally satisfying the POLS, is one of the optimization variables. The results of three hPV/HKT/FC, hPV/FC, and hHKT/FC configurations of the system are presented in two situations of deterministic and stochastic sizing without and with taking uncertainty into consideration. The findings showed that the hPV/HKT/FC configuration and the IGBO performed better than other configurations and techniques like conventional GBO, particle swarm optimization (PSO), and artificial electric field algorithm (AEFA) to achieve the lowest COPL and POLS (higher reliability) in various cases. Additionally, the COPL for the hPV/HKT/FC, hPV/FC, and hHKT/FC configurations increased by 7.63%, 7.57%, and 7.65%, respectively, while the POLS fell by 5.01%, 4.48%, and 4.59%, respectively, contrasted to the deterministic sizing, according to the results of stochastic sizing based on 2m+1 PEM. As a result, the findings indicate that in the deterministic sizing model, the quantity of output and energy storage is insufficient to meet demand under unknown circumstances. Applying stochastic sizing while taking into account the volatility of both supply and demand can, therefore, be an economically sound way to meet demand.