Measure the opening of your loft space and consider the clearance needed in your loft area.
Make sure the door size complies with local building regulations.