Renewable energy has started to receive increasing attention due to various factors, such as scarcity of existing energy sources, high costs, global climate problems, etc. In this respect, solar energy has recently witnessed rapid developments due to its unlimited, carbon-free, environment-friendly, cost effective, and feasible nature. However, large pieces of land are necessary in order to install photovoltaic systems. Therefore, protection of arable lands and measurement of roof potentials are of vital importance in terms of reducing environment-friendly and renewable energy costs. Potential values of building roofs in Kahramanmaras province are calculated in detail thanks to various software and programs. Findings indicate that photovoltaic panels, which can generate a total amount of 430.348 MWp, can be installed on building roofs in Kahramanmaras province. Analysis of various parameters such as shading effect, safety factors, required usage area on the roofs, and tilt are also included in the calculations. This installed power may annually supply 693,977,463 kWh (≈694 GWh) for the region in question. In addition, CO2 emission may be reduced by 18,541.975 tons. This study sets an example for other regions and thus can also be performed for them.