a method for designing stacked pattern of pcb utilizing genetic algorithm and the system thereof are disclosed . the method comprises the following steps : first of all , information data of stacked pattern is inputted into operational interface of the software ; next , initial solution sets of stacked pattern are generated ; then , duplications of the initial solution sets of stacked pattern are generated according to a fitness function ; afterward , crossover of the duplications of stacked pattern are performed at random ; then , mutations are executed by a probability at random ; finally , identification is performed to check if the solution approaches the standard of demand and the result of stacked pattern is shown ; otherwise , operational step jumps to duplicate step and repeats above steps until satisfying solution is obtained . the most suitable way for package can be arranged out through making especially mathematical calculations by the system efficiently .