Computer implemented method for locating phase faults in a microgrid in off-grid mode comprising: defining a surveillance area of the microgrid having at least two busbars (30, 33, 34) to monitor; assessing all source feeders and load feeders of the surveillance area; acquiring measurement data, the data comprising current magnitude for all source feeders and load feeders; monitoring the at least two busbars in the surveillance area for a voltage dip in one of phase-to-phase or phase-to-neutral voltages as indication of a phase fault; and on detecting a voltage dip: determining a defect phase having a minimum phase-to-neutral voltage; characterized in that performing current analysis for the defect phase, wherein performing current analysis comprises: applying Kirchhoff's current law to determine if a detected phase fault is located outside and/or downstream of the surveillance area; and if Kirchhoff's law is valid, tripping a main circuit breaker (42, 46, 47, 51) corresponding to a load feeder having a maximum current value, and wherein performing current analysis further comprises: if Kirchhoff's law is not valid, determining for each busbar (30, 33, 34) in the surveillance area at least one minimum source feeder having a minimum summed current value of all source feeders of the respective busbar, and determining a trace of the minimum source feeders across the surveillance area, and; if the trace points to a fault location outside the surveillance area, tripping a circuit breaker (39, 40, 44, 50, 52) corresponding to the source feeder at the end of the trace; and / or if the trace points to a fault location at an internal feeder inside the surveillance area, tripping circuit breakers (41, 45, 48, 49) of the internal feeder at both ends of the trace. defining a surveillance area of the microgrid having at least two busbars (30, 33, 34) to monitor; assessing all source feeders and load feeders of the surveillance area; acquiring measurement data, the data comprising current magnitude for all source feeders and load feeders; monitoring the at least two busbars in the surveillance area for a voltage dip in one of phase-to-phase or phase-to-neutral voltages as indication of a phase fault; and on detecting a voltage dip: determining a defect phase having a minimum phase-to-neutral voltage; characterized in that performing current analysis for the defect phase, wherein performing current analysis comprises: applying Kirchhoff's current law to determine if a detected phase fault is located outside and/or downstream of the surveillance area; and if Kirchhoff's law is valid, tripping a main circuit breaker (42, 46, 47, 51) corresponding to a load feeder having a maximum current value, and wherein performing current analysis further comprises: if Kirchhoff's law is not valid, determining for each busbar (30, 33, 34) in the surveillance area at least one minimum source feeder having a minimum summed current value of all source feeders of the respective busbar, and determining a trace of the minimum source feeders across the surveillance area, and; if the trace points to a fault location outside the surveillance area, tripping a circuit breaker (39, 40, 44, 50, 52) corresponding to the source feeder at the end of the trace; and / or if the trace points to a fault location at an internal feeder inside the surveillance area, tripping circuit breakers (41, 45, 48, 49) of the internal feeder at both ends of the trace. applying Kirchhoff's current law to determine if a detected phase fault is located outside and/or downstream of the surveillance area; and if Kirchhoff's law is valid, tripping a main circuit breaker (42, 46, 47, 51) corresponding to a load feeder having a maximum current value, and wherein performing current analysis further comprises: if Kirchhoff's law is not valid, determining for each busbar (30, 33, 34) in the surveillance area at least one minimum source feeder having a minimum summed current value of all source feeders of the respective busbar, and determining a trace of the minimum source feeders across the surveillance area, and; if the trace points to a fault location outside the surveillance area, tripping a circuit breaker (39, 40, 44, 50, 52) corresponding to the source feeder at the end of the trace; and / or if the trace points to a fault location at an internal feeder inside the surveillance area, tripping circuit breakers (41, 45, 48, 49) of the internal feeder at both ends of the trace. if Kirchhoff's law is not valid, determining for each busbar (30, 33, 34) in the surveillance area at least one minimum source feeder having a minimum summed current value of all source feeders of the respective busbar, and determining a trace of the minimum source feeders across the surveillance area, and; if the trace points to a fault location outside the surveillance area, tripping a circuit breaker (39, 40, 44, 50, 52) corresponding to the source feeder at the end of the trace; and / or if the trace points to a fault location at an internal feeder inside the surveillance area, tripping circuit breakers (41, 45, 48, 49) of the internal feeder at both ends of the trace.