A technoeconomic analysis and optimization of wind turbine size and layout are performed using WAsP software. A case study of a 100-MW wind farm located in Egypt is considered. Wind atlas for Egypt was used as the input data of the WAsP software. Two turbine models of powers 52 and 80 MW are considered for this project. The wind turbine size and distributions are selected based on the technoeconomic optimization, namely minimum wake effect, maximum annual energy production (AEP) rate, optimum cash flow, and payback period. The future worth method is adopted in economic comparison between the two alternatives, and the cash flow diagram provided the payback period and future worth after the lifetime of the plant. The results showed that (1) the AEP dramatically decreases for a wind farm area less than 15 km2; (2) the turbine spacing, spacing-to-diameter ratio, and the setback distances decrease and the wind turbine density and wake losses increase with decreasing the wind turbines size; (3) the total net AEP using G52 is lower than that of using G80 by about 16%; (4) the technoeconomic analysis recommended using G80 as it has higher profit than those of G52 by about $20 million.