This work presents fence shaping for dipole antenna operating at 5G high-band frequencies. A via fence is employed around the dipole to suppress back radiation. By varying the geometric shape of the fence, the dipole’s radiation characteristics can be controlled, which adds an additional degree of freedom to the design. This was investigated by studying different fence shapes, namely rectangular-, U-, and V-shaped fences. The wide bandwidth (higher than 6.5 GHz) centered around 28 GHz, and the stable radiation performance from 24 GHz to 32 GHz made the proposed structure capable of supporting multiple 5G frequency bands and the fence shaping help modulate the gain and HPBW of the dipole. All fabricated prototypes attained front-to-back radiation ratio (F/B) higher than 36 dB, with good gain/HPBW performances of 14.1 dBi/103.7°, 13.5dBi/118°, and 12.6 dBi/133° from the V-fence, U-fence, and rectangular fence 4 × 1 arrays, respectively.