Abstract Bifacial modules are highly valued in the global photovoltaic market since they are able to receive sunlight from both sides and can generate up to 10–30% additional energy compared to monofacial ones. They are integrated into various sectors, including building and notably Agrivoltaics. In this work, a coupled optical–thermal–electrical model was developed in matlab to simulate the energy performance and bifacial gain for a ground-raised bifacial system. The model allows optimization as a function of the photovoltaic (PV) system and bifacial module characteristics. A fixed, south-facing bifacial PV arrays composed of three rows assumed installed in Agadir, Morocco, is considered. The optical model is based on an analytical determination of view factors using the cross-string rule. These enable the determination of irradiances received by both sides of modules, which are subsequently used to evaluate energy yield of the system. Model validation was carried out based on various statistical metrics by comparing our results with simulation results generated by various softwares. The comparison shows a very good agreement, notably with 3dbifacialvf (R2 = 1, root-mean-square error (RMSE) = 0.03 W/m2 and R2 = 0.96, RMSE = 12.4 W/m2) for front and rear side irradiance, respectively. The DC energy generated by the system differs by less than 1% compared to pvsyst results. Sensitivity analysis revealed that all system parameters, particularly ground albedo, positively affect the bifacial gain. The bifacial gain increased from 10.6% to 20.1% as the ground albedo increased from 0.25 to 0.5.