The BJP has won the Hamirpur Assembly by-poll in Uttar Pradesh, counting for which was held on Friday. The Samajwadi Party came second while the BSP came third and the Congress stood fourth in the by-election. BJP's Yuvraj Singh polled a total of 74,500 votes while Manoj Prajapati of SP got 57,300 votes. The BJP won the seat with a margin of over 17,000 votes.