This paper presents a new approach called UPQC-S, which utilizes a Unified Power Quality Conditioner to simultaneously compensate for voltage sags and swells while sharing reactive power between series and shunt inverters. A detailed mathematical analysis and simulations validate the effectiveness of this technique, demonstrating improved efficiency in power quality management. The approach is particularly beneficial in modern electrical distribution systems that face challenges from non-linear loads and increased integration of renewable energy sources.