A stair at a 45-degree angle is not allowed by code due to the maximum riser and minimum tread standards. The maximum riser allowed by the International Residential Code (IRC) is 7-3/4”, but a 7-3/4” tread is smaller than the minimum tread depth of 10”.