Antenna array of two dipole antennas made of copper has been designed and analyzed for 0.1 THz frequency in this work for element spacing of \(d=\frac{3\lambda }{4}\) and \(d=\lambda\) , where λ is the wavelength. Antenna length is \(\frac{\uplambda }{2 }\) and width is \(\frac{\uplambda }{200} .\) Range of azimuth angle is [− 180°–180°] and elevation angle is [− 90°–90°]. Variation in correlation of power transmitted from first port to second port (S21) has been analyzed changing tilt variation of second dipole, inter element spacing and frequency. optimization of results antenna gain has been achieved as 5.41dBi and 6.35dBi for element spacing of \(d=\frac{3\lambda }{4}\) and \(d=\lambda\) respectively. Favorable values of diversity gain, total active reflection coefficient and mean effective gain have been achieved in this design as 10 dB, 0.5 dB and − 9.6 dB respectively. This design gives good results of envelope correlation coefficient as 0.02 and 0.098 for element spacing of \(d=\frac{3\lambda }{4}\) and \(d=\lambda\) respectively. This antenna is capable of exhibiting isolation of − 17.6702 dB and − 20.0044 dB for \(d=\frac{3\lambda }{4}\) and \(d=\lambda\) element spacing respectively. Antenna efficiency is of high value as 96.48% and 97.67% for element spacing of \(d=\frac{3\lambda }{4}\) and \(d=\lambda\) respectively. A communication system has been studied implementing the proposed design. Encoding, precoding, orthogonal frequency division multiplexing and beam steering techniques have been applied to maintain signal quality. A compact array of small size (1.5 × 0.015 mm2), low weight, simple structure and of low-cost antenna at 0.1 THz frequency has been proposed in this study for 5G and 6G mobile communication.