This research offers an optimization design for a three-phase surface-mounted permanent magnet synchronous machine (SMPMSM) by employing the computer framework consists of finite element analysis (FEA) and genetic algorithm (GA) utilized in the applications of electric vehicles. This framework aims to evaluate and determine the optimal setting of SMPMSMs, which require maximum average electromagnetic torque (Tem_avg) and minimum its ripple (Tem_rip). Several motor performances, such as magnetic field distribution across the motor, magnetic flux density distribution in the mid air gap, phase back-EMF, electromagnetic torque, and its ripple, are investigated for the initial and optimal designs of PM machines during open-circuit and on-load conditions by using FEA. The important parameter of PM machines, i.e. the magnet pole-arc and slot opening angle are taken into account. In order to determine the objective function of the GA framework, the Tem_avg and the Tem_rip are used to formulate the computing equations where the fitness value provided by the computing framework is further assessed. The GA framework is used to assess the comparison of parameters and motor performance between the initial and optimal designs of 12s/8p PM motors in terms of electromagnetic torque under BLAC operation. Consequently, the framework of FEA and GA has been proven in the design of SMPMSM, which is very viable for electric cars by reducing the magnet materials and electromagnetic torque ripple.