The article reveals relevance of the problem of unbalance of line voltages in closed electrical networks with distributed generation as a source of electromagnetic interference, in particular, the problem of electromagnetic compatibility of coastal and ship technical equipment. There is presented mathematical description of the process of occurrence of conductive low-frequency EMF by the voltage unbalance coefficient in the reverse sequence and an algorithm for finding it; using the equations, parameters of this coefficient are described, such as mathematical expectation, standard deviation, probability of occurrence for the billing period, as a result, a computer program has been developed to calculate these parameters; a method for processing the obtained data of power quality indicators according to the found coefficient has been developed; an algorithm for balancing voltages in an electrical network based on finding the most optimal power supply scheme for end consumers (certificate of state registration of an electronic resource No. 23664).