Your pegboard will need to be at least a 1/2" off the wall in order for the hooks to work.