The main traction power converter of a trams is connected to DC trolley wire by input LC filter. The tram input LC filter is almost undamped resonant circuit, which is often loaded by the motor constant torque command. Sources of the input LC filter oscillation may be present on the vehicle, typically drive control influence. The source of LC filter excitation except the tram drive could be the tram's trolley voltage caused by fluctuations in power consumption and harmonics from surrounding vehicles, and temporary loss of catenary voltage caused by crossings of insulated sections or icing on catenary. The next source could be the tram ESS, which is connected in parallel to the tram dc-link capacitor. The dynamic ESS control, which is necessary for majority of power management techniques, can also destabilize the LC filter. On the other hand, the proper ESS control could be used for LCfilter stabilization. The LQR based stabilization of LC filter using ESS is presented in this paper.