This article presents a low‐profile filtering antenna based on nonuniform metasurface for fifth generation (5G) systems at 3.5 GHz. A crossed stub, slotted ground, shorting via, and the nonuniform metasurface is used to achieve high gain and filtering response in lower and upper stopbands. The antenna and the metasurface are printed on Rogers RO4003C (εr = 3.38, tan δ = 0.0027) and Taconic TLX‐9 (εr = 2.5, tan δ = 0.0019), respectively. Measured results show that the antenna has an impedance bandwidth of 3.24 to 3.8 GHz (15.91%) below −10 dB with a stable gain having a maximum value of 10.43 dBi and good radiation patterns. Moreover, this antenna passband satisfies the typical bandwidth required for the global 5G spectrum at the 3.5 GHz band. The gain drops significantly and the S11 goes up to 0 dB outside the passband. Due to the excellent filtering characteristics, the proposed antenna is a good candidate for 5G applications.