Windows are one of the weakest building components concerning high thermal losses. Traditional windows cannot adapt to external and internal environmental conditions. On the other hand, smart windows such as electrochromic (EC) windows do not emit greenhouse gases and adapt to environmental conditions and increase indoor environmental quality. The combination of EC windows and building integrated photovoltaic system (BIPV) is called photovoltachromic (PVC) windows. This paper aims to find optimal window to wall ratio (WWR) ranges of PVC windows in a high-rise office building model in four different cities in Iran. This paper uses several simulations to find the optimal WWR ranges of PVC windows using Radiance and EnergyPlus. First, the minimum acceptable WWR value in each climate condition was identified using several simulations without any optimization tools. Afterward, traditional windows were replaced with EC windows and results indicated that energy consumption of the building reduced up to 15.94%. In the next stage, BIPV was combined with EC windows, and results indicated that BIPV reduced energy consumption of the building up to 7.55%. Finally, simulation results showed that PVC windows reduced energy consumption of the building up to 16.31% in Kermanshah, 19.69% in Tehran, 18.59% in Yazd and 17.36% in Bandar Abbas. Also, the optimal WWR range of PVC windows in Kermanshah was 80-90%, while it was 70-80% in Tehran, Yazd and Bandar Abbas. Simulation results indicated that cooling degree days (CDD) of the site, where buildings were located, effected on the optimal WWR range of PVC windows in high-rise office buildings. An analytical approach was used to validate simulation results, and it showed that simulation results had 1.60-6.22% error.