The invention provides a modularized bus capacitor integrated with a filter and a discharge resistor. The modularized bus capacitor comprises a shell, a bus capacitor core, a positive pole direct current busbar, a negative pole direct current busbar, a Y capacitor, a magnetic ring and a discharge resistor module, the Y capacitor comprises a positive electrode Y capacitor and a negative electrode Y capacitor; the shell is of a square cylindrical structure; two symmetrical mounting grooves are formed in the front side of the shell; the pole Y capacitor and the negative pole Y capacitor are accommodated in the mounting grooves in a matched manner and are fixed; the rear side of the shell is provided with a first connecting column used for fixing the positive pole direct current busbar and the negative pole direct current busbar. The Y capacitor, the discharge resistor module, the magnetic ring and the bus capacitor are integrated, so that the occupied space is reduced, and the space utilization rate is improved; an interference current conduction path is shortened, and the electromagnetic compatibility is improved; and the Y capacitor, the discharge resistor module and the magnetic ring are integrated outside the bus capacitor, so that heat dissipation is facilitated, adverse effects on heat dissipation of a bus capacitor core are avoided, and the heat dissipation performance of the module is improved.