This paper presents a Modified Gate Diffusion Input (MGDI) design with four inputs for Quantum-dot Cellular Automata (QCA) technology. QCA is a promising nanotechnology that offers benefits such as low power consumption, and high density, making it a potential alternative to CMOS technology. The proposed planar cell design has advantages over previous designs, including a 19% reduction in the number of cells, a 29% reduction in total energy consumption, and a 44% reduction in average energy loss at the same occupancy level. The proposed block is capable of implementing 21 basic combinational functions and various sequential functions. The simulation of functions in 18nm technology and energy consumption calculation indicates that the resulting circuits have improvements of 41%, 27%, 27%, and 20% compared to multiplexers, comparators, four-bit parity circuits, and single-bit memory, respectively. Additionally, the number of cells in the proposed circuits has improved by 10%, 7%, 22%, and 19%, respectively.