On-grid photovoltaic systems are renowned and established systems in countries where solar and wind energy is used for residential buildings. The main objective of this project is to design a comprehensive MATLAB-based tool that performs a technical and economical analysis of on-grid photovoltaic systems. This tool will be used to design on-grid building-integrated photovoltaic (BIPV) systems for the United Arab Emirates (UAE) real-estate market. A large PV equipments database including PV modules and grid-connected inverters from various PV vendors' worldwide and weather information for Al-Ain in UAE are used in this tool. This database will offer good diversity for a PV designer to design a system that meets power requirements. Using this tool, an on-grid PV system is proposed for a real villa design in Al-Ain city.