Barq was born on 3 July 1988 in Sambhal to Mamlook Ur Rahman Barq and Gul Nigar. He studied at Aligarh Muslim University, where he was a senior cabinet member and acting secretary of the AMU Students' Union in 2005–06, and earned a B.A. LL.B. through Chaudhary Charan Singh University.