This paper discusses the application of a genetic algorithm for selective harmonic elimination in a 9-level asymmetrical multilevel inverter to optimize switching angles and eliminate specific harmonics while maintaining fundamental voltage. The approach is presented as a simpler alternative to traditional methods, addressing the complexities of solving non-linear equations in multilevel inverter design. The findings demonstrate improved effectiveness in achieving lower total harmonic distortion through the proposed genetic algorithm technique.