Design solutions for the shape of the gear bodies depend on several factors such as the size of the wheel, material, production method or use. Cast forged or welded gears are used for larger gear wheels. One of the requirements for gear shape solutions is weight reduction. Such an effort can be achieved by changing the dimensions of the given wheel, while maintaining the required stiffness of the gearing. The paper is devoted to the problem of optimizing the shape of gears in order to reduce the weight of the gears, but while maintaining the best possible stiffness of the teeth.