Abstract: A method and system of power factor optimization and total harmonic distortion are provided under the premise of efficient power management and distribution on an electrical grid. The method and system include a novel optimization technique based on a novel current profiling methodology enabling real-time power management with power factor correction as a function of the optimization. The optimization can be performed under dynamic current constraints. When deployed on an electrical grid, the method and system can provide a new technique for power management targeting an efficiency of the electrical grid. The method and system can thus provide for reduced costs of energy production and reduced carbon emissions into the atmosphere.