In this study, all-optical OR, exclusive OR (XOR), NOR, XNOR, AND, NAND, and NOT logic gates using metal-insulator-metal (MIM) waveguides with a rectangular ring resonator are designed and analyzed. The structure has a silver plate with three input waveguides, one output waveguide, and a rectangular ring resonator. One of the input ports is used as a control port. The finite-difference time-domain (FDTD) method is utilized to obtain the optical spectrum of the proposed structures. To realize all-optical logic gate properties of the designed structures, optical signals with the same phase or different phases are passed through the waveguides. Transmission spectrum (T), contrast ratio (CR), and modulation depth (MD) parameters are obtained to determine the performances of all-optical logic gates. To determine the logic 1 (ON) and logic 0 (OFF) states of the output ports, the threshold transmission value is accepted as 0.23 for all-optical logic gates. For the proposed designs, the highest transmission, contrast ratio, and modulation depth values are 217%, 6.75 dB, and 100%, respectively. The structure also supports a data rate of 24 Tb/s. The designed optical logic gates have valuable features for developing high-performance optical devices.