A method for locating a fault in a series-compensated two-terminal power transmission line having a length 1 and comprising a first terminal A and a second terminal B, and further comprising a compensating bank for providing series-compensation to said transmission line, said compensating bank being located at a distance d SC from said terminal A and at a distance 1-d SC from said terminal B, the method comprising the steps of: - determining, by means of a first subroutine (SUB_A), a per unit distance d FA to a fault occurring on a transmission line segment between said terminal A and said compensating bank, said line segment having length d sc, wherein said distance d FA is related to d SC l, further relating said distance d FA to said transmission line length 1 by d A = d FA ⋅ d SC - determining, by means of a second subroutine (SUB_B), a per unit distance d FB to a fault occurring on a transmission line segment between said terminal B and said compensating bank, said line segment having length 1-d sc, wherein said distance d FB is related to ((1-d SC)1), further relating said distance d FB to said transmission line length 1 by d B = d FB ⋅ 1 − d SC - locating said fault by selecting, among the result d FA obtained from said first subroutine (SUB_A) and the result d FB obtained from said second subroutine (SUB_B), the result deemed valid, and - wherein said first and second subroutines (SUB_A, SUB_B) utilize three phase currents synchronized measurements from both terminals (A, B) and a three phase voltage measurements from one terminal for determining said respective per unit distance d FA, d FB to a fault (FA, FB), wherein said first subroutine (SUB_A) performs the steps of: - determining symmetrical current and voltage components ( I A1, I A2, I A0, I B1, I B2, I B0; V A1, V A2, V A0,) corresponding to said three phase currents synchronized measurements and to said three phase voltage measurements, - determining said fault loop voltage ( V Ap) as seen from terminal A based on said corresponding symmetrical voltage components ( V A1, V A2, V A0) and based on type of fault, - determining said fault loop current ( I Ap) as seen from terminal A based on said corresponding symmetrical current components ( I A1, I A2, I A0) and based on type of fault, - determining the total fault current ( I FA) by using a generalized fault model: I FA = a F1 I FA1 + a F2 I FA2 + a F0 I FA0 (eq. 6), wherein a F1, a F2, a F0 are coefficients related to type of fault and wherein I FAi is determined as a sum of the ith sequence components of currents from both ends (A, X) of said line segment, - neglecting transmission line shunt capacitances, thus obtaining I Fai = I ̲ Ai + I ̲ Bi - determining said distance d FA based on said fault loop voltage ( V Ap), on said fault loop current ( I Ap) and on said total fault current ( I FA), and characterised in that said distance d FA is determined by solving d FA = real V ̲ Ap ⋅ imag I ̲ FA − imag V ̲ Ap ⋅ real I ̲ FA real Z ̲ 1 LA I ̲ Ap ⋅ imag I ̲ FA − imag Z ̲ 1 LA I ̲ Ap ⋅ real I ̲ FA - determining, by means of a first subroutine (SUB_A), a per unit distance d FA to a fault occurring on a transmission line segment between said terminal A and said compensating bank, said line segment having length d sc, wherein said distance d FA is related to d SC l, further relating said distance d FA to said transmission line length 1 by d A = d FA ⋅ d SC - determining, by means of a second subroutine (SUB_B), a per unit distance d FB to a fault occurring on a transmission line segment between said terminal B and said compensating bank, said line segment having length 1-d sc, wherein said distance d FB is related to ((1-d SC)1), further relating said distance d FB to said transmission line length 1 by d B = d FB ⋅ 1 − d SC - locating said fault by selecting, among the result d FA obtained from said first subroutine (SUB_A) and the result d FB obtained from said second subroutine (SUB_B), the result deemed valid, and - wherein said first and second subroutines (SUB_A, SUB_B) utilize three phase currents synchronized measurements from both terminals (A, B) and a three phase voltage measurements from one terminal for determining said respective per unit distance d FA, d FB to a fault (FA, FB), - determining symmetrical current and voltage components ( I A1, I A2, I A0, I B1, I B2, I B0; V A1, V A2, V A0,) corresponding to said three phase currents synchronized measurements and to said three phase voltage measurements, - determining said fault loop voltage ( V Ap) as seen from terminal A based on said corresponding symmetrical voltage components ( V A1, V A2, V A0) and based on type of fault, - determining said fault loop current ( I Ap) as seen from terminal A based on said corresponding symmetrical current components ( I A1, I A2, I A0) and based on type of fault, - determining the total fault current ( I FA) by using a generalized fault model: I FA = a F1 I FA1 + a F2 I FA2 + a F0 I FA0 (eq. 6), wherein a F1, a F2, a F0 are coefficients related to type of fault and wherein I FAi is determined as a sum of the ith sequence components of currents from both ends (A, X) of said line segment, - neglecting transmission line shunt capacitances, thus obtaining I Fai = I ̲ Ai + I ̲ Bi - determining said distance d FA based on said fault loop voltage ( V Ap), on said fault loop current ( I Ap) and on said total fault current ( I FA), and