In the current study, the eight-bar planar mechanism is balanced by reducing variations in shaking force and moments using Minitab and a genetic algorithm. The objective function and constraint equations are taken into consideration, the mathematical model was developed to optimize the balancing of the planar eight-bar mechanism.A set of weighting factors were taken into consideration in order to determine the ideal values for the design parameters based on the contributions of the X and Y components of the shaking force and the shaking moment. A genetic algorithm was used to find the best design parameters. The results showed that the shaking force and moments decreased by 34.5 and 61% from the initial values, respectively.