A knowledge-based expert system was developed for designing roll pass and roll profile for shape rolling of cylindrical and square bars. For program development, C++ language and object oriented programming technique were utilized due to flexibility and expandability of the program. Backward chaining algorithm was implemented for an inference engine based on the data available in the literature. According to the algorithm, the optimal roll pass sequence was determined and the designed sequence was displayed on the PC monitor. In addition, roll separating force, area reduction, and change of length at each stage of shape rolling were determined and provided based on the empirical rules in reference. for verification, the roll pass sequence obtained from the developed program was compared to the existing one at practice for the cylindrical bar production. Example for production of square bar was also demonstrated.