A method and system are provided for visualizing a surgical path for a surgical tool. The method comprises a step of receiving anatomical information about a position of at least one anatomical structure in a region to undergo surgery, geometric information describing the surgical path and at least one safety margin defining a minimal distance between the surgical tool and the anatomical structure. The method further comprises defining a critical segment of the surgical path, in which critical segment a distance to the anatomical structure is smaller than the safety margin. Then a graphical representation of the surgical path is provided, wherein the critical segment is highlighted.