ABSTRACT Dairy farming plays an indispensable role in the socio-economic growth of rural India. But, the modernization and sustainable growth of dairy farming relies critically upon the availability of reliable and affordable renewable electric energy. However, lack of access to electricity is a major challenge that needs to be addressed to encourage sustainable dairy farming. In this direction, the deployment of solar photovoltaic (PV) systems in dairy farms has enormous potential to combat the existing critical challenges of fossil fuels and rural energy crises. This investigation assesses the techno-economic viability of PV systems through detailed mathematical modeling and electrical load estimation using the MATLAB simulation environment. The study determines the availability of maximum of solar radiations at each instant, and optimizes the inclined surface to extract maximum solar power. The outcomes of the study reveal that deploying an off-grid PV system consisting of 20 PV modules of 335 Wp, 24 batteries of each 150 Ah, and a 10 kVA inverter meets the average electric load of 9.5 MWh/year for twenty-five years with one-day autonomy. The economic analysis comprised the life-cycle cost (LCC), annualized life-cycle cost (ALCC), and costs of electricity (COE) of the study under reference as US$13050, US$323.1, and US$ 0.02596/kWh, respectively. The study results in saving of 0.285 MT CO2 emissions for the total life span. The resulted stand-alone PV system is both economically and technically viable. The present results reinforce the dispersal of green energy measures for their implementation in rural dairy farms having similar climate conditions in the Indian context.