A single-phase inverter based on a buck-boost converter is increasingly used in modern power electronics, particularly in solar photovoltaic systems. Unlike traditional inverters that utilize transformers to electrically isolate the solar system from the power grid, this transformerless design enhances efficiency, reduces weight, and lowers costs. However, the absence of a transformer introduces challenges related to Electromagnetic Compatibility (EMC) and the potential for increased leakage currents, which must be carefully managed to ensure system safety and performance. In this paper, the performances of a new configuration of a single-phase transformerless PV inverter based on a dc-dc buck-boost converter is proposed and analyzed. Since it is the only switch (mosfet) in the DC-DC converter that operates at high frequency, and it is controlled by pulse width modulation (PWM) to adjust the output voltage. This allows for flexible voltage conversion, enabling the inverter to either step up (boost) or step down (buck) the input voltage as needed. Therefore, switching losses can be significantly reduced to improve efficiency and reduce electromagnetic interference of the single-phase inverter structure. In order to demonstrate the EMC performances and evaluate the leakage current of the proposed structure, an EMC model is developed under the Simscape-MATLAB/Simulink environment, this model offers an EMC analysis including the prediction of leakage current over a frequency range from 100 Hz to 2 MHz. The results clearly showed that the level of the Total harmonic distortion (THD), as well as the levels of leakage current, are below the requested EMC standards.