The invention concerns a method and a system for calculating a flight route between a first position and a second position. According to the method, the first position is chosen as the current position, and the following steps are then repeated until the second position is reached: a loss function is determined corresponding to each flight path in a set of flight paths that are predefined in relation to the current direction of flight; a flight path that yields the most advantageous value for the loss function is selected; a subsection from the current position and a predetermined number of positions forward are registered for the selected flight path, and the position at the end of the subsection is chosen as the new current position.