Make sure there are no hooks or any damage that needs repair. Mark the bottom line of the pegboard. Mark the stud locations. Use a stud finder or tap the wall to if necessary. Cut the pegboard to size ...