Building codes determine the minimum requirements for ceiling height, floor area, and egress in the attic space. It is important to consult your local building inspector to ensure compliance.