Method for grinding a gear wheel by means of a worm grinding worm in a grinding machine, wherein the tooth flanks (7, 8, 9, 10) of the gear wheel are ground with the abrasive flanks (3, 4, 5, 6) of the profiling of the grinding worm, wherein the gear wheel has an axis of rotation (a), wherein the grinding worm has an axis of rotation (b), and wherein the toothing of the gear wheel to be ground has a base circle diameter (d b), a root circle diameter (d f) and a tip circle diameter (d a), characterized in that the method comprises the steps of: a) Calculation of the engagement ratios between the abrasive flanks (3, 4, 5, 6) of the profiling of the grinding worm and the tooth flanks (7, 8, 9, 10) of the gear wheel when the gear wheel and the grinding worm are engaged for grinding, wherein a section is considered along a plane which includes the axis of rotation (b) of the grinding worm and which is perpendicular to the axis of rotation (a) of the gear wheel; said calculation comprising: a1) Determination of a first line of engagement resulting from the contact points (S1, S2) between two successive abrasive flanks (3, 5) and two successive tooth flanks (7, 9); a2) Determination of a second line of engagement resulting from the contact points (S3, S4) between two successive abrasive flanks (4, 6) opposite the abrasive flanks (3, 5) and two successive tooth flanks (8, 10) opposite the tooth flanks (7, 9); a3) Determination of the intersection point of the first and second lines of engagement (11, 12); a4) Determination of a line passing through the intersection point and tangent to the base circle diameter (d b) of the toothing of the gear wheel; a5) Determination of the intersection point of the line with the root circle diameter (d f) and determination of the intersection point of the line with the tip circle diameter (d a); a6) Determination of the line that results as the intersection of the plane with a second plane that contains the axis of rotation (a) of the gear wheel, that is perpendicular to the plane and that contains the intersection of the first and second lines of engagement (11, 12); a7) Determination of the distance between the intersection point of the line with the root circle diameter (d f) and the line of the intersection line of the planes (E1, E2); a8) Determination of the distance between the intersection point of the line with the tip circle diameter (d a) and the line of the intersection line of the planes (E1, E2); b) Determination of a changed geometry of the engagement ratios compared to the one determined according to step a) by changing the position of the line which is tangent to the base circle diameter (d b) of the toothing of the gear wheel in such a way that the distances (a1, a2) are equal (a1 opt = a2 opt); c) Profiling of the grinding worm with the geometry of the engagement ratios that results when the distances (a1, a2) are equal; d) Grinding of the gear wheel with the grinding worm profiled according to step c). a) Calculation of the engagement ratios between the abrasive flanks (3, 4, 5, 6) of the profiling of the grinding worm and the tooth flanks (7, 8, 9, 10) of the gear wheel when the gear wheel and the grinding worm are engaged for grinding, wherein a section is considered along a plane which includes the axis of rotation (b) of the grinding worm and which is perpendicular to the axis of rotation (a) of the gear wheel; said calculation comprising: a1) Determination of a first line of engagement resulting from the contact points (S1, S2) between two successive abrasive flanks (3, 5) and two successive tooth flanks (7, 9); a2) Determination of a second line of engagement resulting from the contact points (S3, S4) between two successive abrasive flanks (4, 6) opposite the abrasive flanks (3, 5) and two successive tooth flanks (8, 10) opposite the tooth flanks (7, 9); a3) Determination of the intersection point of the first and second lines of engagement (11, 12); a4) Determination of a line passing through the intersection point and tangent to the base circle diameter (d b) of the toothing of the gear wheel; a5) Determination of the intersection point of the line with the root circle diameter (d f) and determination of the intersection point of the line with the tip circle diameter (d a); a6) Determination of the line that results as the intersection of the plane with a second plane that contains the axis of rotation (a) of the gear wheel, that is perpendicular to the plane and that contains the intersection of the first and second lines of engagement (11, 12); a7) Determination of the distance between the intersection point of the line with the root circle diameter (d f) and the line of the intersection line of the planes (E1, E2); a8) Determination of the distance between the intersection point of the line with the tip circle diameter (d a) and the line of the intersection line of the planes (E1, E2); b) Determination of a changed geometry of the engagement ratios compared to the one determined according to step a) by changing the position of the line which is tangent to the base circle diameter (d b) of the toothing of the gear wheel in such a way that the distances (a1, a2) are equal (a1 opt = a2 opt); c) Profiling of the grinding worm with the geometry of the engagement ratios that results when the distances (a1, a2) are equal; d) Grinding of the gear wheel with the grinding worm profiled according to step c).