One of the biggest issues impeding a country’s progress is the lack of power. To overcome this issue, hybrid renewable energy systems (HRES) play an important role. Due to rising consumption and diminishing resources globally, sustainability has recently attracted more attention. Bangladesh has access to renewable energy sources, including solar, micro-hydro, biomass, wind, and others. The objective of this research is to minimize the net present cost (NPC), cost of energy (COE), and CO2 emissions of the suggested electricity network using the Hybrid Optimization Model for Multiple Energy Resources (HOMER) Pro Software. This investigation explores the possible use of a hybridized energy system (i.e., solar, wind, and diesel) with battery storage in Bangladesh’s northern area. Utilizing HOMER Pro software, an optimal grid-connected system is chosen after evaluating the techno-economic viability of several configuration options. For the Rangpur metropolitan region, seven distinct grid-connected solutions with stationary renewable sources are simulated. The HRES is designed to meet demands for hospital, diagnostic, school, and operation theatre loads of 3250.00 kWh, 250.00 kW maximum requirement, and 570.00 kWh, 71.25 kW maximum electricity demand, respectively. Multivariate linear regression (MLR) is used to assess the suggested optimal combination in terms of system size, cost, technical performance, and environmental stability. The findings show that the metric real-time rate (annual) has emerged as the most advantageous option since economic criteria like total NPC and COE are preferred above others.