N.Y. Comp. Codes R. & Regs. tit. 12, § 8-1.54
(c) Wooden railings shall be of sound lumber, dressed on four sides and constructed as follows:
(2) Center railing shall be not less than one inch by four inches, supported on not less than two inch by four inch posts, spaced not more than eight feet center to center.
Note:
It is recommended that four-inch by four-inch posts be used. Dimensions given above are rough lumber sizes; dressed lumber will be one-eighth inch to three-eighths inch smaller, and will be accepted.