India census, Dhariwal had a population of 18,706. Males constitute 52% of the population and females 48%. Dhariwal has an average literacy rate of 74%, higher than the national average of 59.5%. Male literacy is 78% and female literacy is 70%. In Dhariwal, 10% of the population is under 6 years of age.
During British rule, the New Egerton Woollen Mills (established in 1880) produced woollen worsted and hosiery of all kinds - in 1904 the company employed 908 people. These mills were famous throughout colonial India and were the only mills in Punjab at that time.