To accurately measure the opening of your closet, use a measuring tape to measure from the inside of one wall to the inside of the other wall. Then measure from the top of the opening to the bottom of the opening.