N.Y. Education Law § 3202
4. a. Except as provided in subdivision five of this section, the cost of instruction of pupils placed in family homes at board by a social services district or a state department or agency shall be borne by the school district in which each such pupil resided at the time the social services district or state department or agency assumed responsibility for the placement, support and maintenance of such pupil; provided, however, that such cost of instruction shall continue to be borne, while such pupil remains under the age of twenty-one years, by any social services district or state department or agency which assumed responsibility for tuition costs for any such pupil prior to January one, nineteen hundred seventy-four. Where a pupil is placed pursuant to this subdivision outside the pupil's school district of residence at the time of such placement, the cost of instruction shall be borne by the district of residence and the tuition paid to the school district furnishing instruction shall be computed as provided in paragraph d of this subdivision, except that, where the family home at board receives program support from a child care institution affiliated with a special act school district as defined in subdivision eight of section four thousand one of this chapter, and the board of education of such district furnishing instruction, upon the recommendation of its committee on special education, contracts for such pupil's education pursuant to paragraph c, d, e, or f of subdivision two of section forty-four hundred one of this chapter or for a nonresidential placement pursuant to paragraph l of such subdivision, costs incurred shall be reimbursed in accordance with paragraph e of this subdivision. Notwithstanding any inconsistent provision of law, where the permanent residence of a pupil is outside of the state, the school district in which the pupil was located at the time the public agency placed such pupil shall be deemed the district of residence of such pupil for purposes of this subdivision and shall be responsible for the cost of instruction of such pupil. b. Children cared for in free family homes and children cared for in family homes at board, when such family homes shall be the actual and only residence of such children and when such children are not supported and maintained at the expense of a social services district or of a state department or agency, shall be deemed residents of the school district in which such family home is located. c. Children cared for in free family homes and children cared for in family homes at board, when such family homes are not the actual and only residences of such children and when such children are not supported and maintained at the expense of a social services district or of a state department or agency, and who apply for the first time for admittance to the schools of the district in which such family home is located during the school year 1973--1974 shall be admitted upon terms and conditions including the payment of tuition, established by the board of education of such school district, unless such board of education shall establish to the satisfaction of the commissioner that there are valid and sufficient reasons for refusal to receive such children. d. For the purposes of this subdivision, tuition shall be fixed in an amount which represents the additional operating cost to the school district resulting from the attendance of a child for whom tuition is required, computed in accordance with a formula established by the commissioner of education. e. Where the board of education of a school district furnishing instruction for a pupil placed pursuant to this subdivision in a family home at board that receives program support from a child care institution affiliated with a special act school district, other than the board of the pupil's school district of residence as defined in paragraph a of this subdivision, upon the recommendation of its committee on special education, contracts for the instruction of such pupil pursuant to paragraph c, d, e, or f of subdivision two of section forty-four hundred one of this chapter or for a nonresidential placement pursuant to paragraph l of such subdivision, such board shall submit a claim to the commissioner for current year reimbursement of costs incurred for such pupil. The commissioner shall pay such claim in accordance with the applicable provisions of section thirty-six hundred nine-b of this chapter and shall be reimbursed by the school district identified as the pupil's school district of residence as defined in paragraph a of this subdivision. The commissioner shall deduct the amount of such claim from moneys otherwise due the school district of residence. f. The identity of the school district of residence at the time the public agency placed the pupil pursuant to paragraph a or paragraph e of this subdivision shall be established in accordance with the following procedure:
6. Except as provided in subdivision five of this section or by article eighty-one of this chapter, children cared for in a hospital or other institution for the care, custody and treatment of children, other than a school and excepting children of the officers and employees of such hospital or institution, shall not, by reason of their presence in such hospital or institution, be deemed to be residents of the school district in which such hospital or institution is located. The trustees or board of education of the school district of their residence shall provide educational services for such children. Such services may be provided by a tutor employed by the district, by contract with a school connected with such hospital or institution, or by contract with the local public school district in which such hospital or institution is located. Such contracts shall be limited to the cost of educational services and shall not include maintenance or medical services. Provided, however, if such children are supported and maintained at the expense of a social services district, the cost of said instruction shall be paid by the social services district which is liable for payment of the cost of their support and maintenance. In the case of hospitals or institutions located in the state of New York, the trustees or board of education of a school district in which such a hospital or institution is located shall receive such children in the school or schools of the district for instruction for a compensation to be fixed by the trustee or board of education, unless such trustees or board of education shall establish to the satisfaction of the commissioner of education that there are valid and sufficient reasons for refusal to receive such children. * 6-a. Notwithstanding subdivision six of this section or any other law to the contrary, the commissioner of the office of children and family services shall be responsible for the secular education of youth under the jurisdiction of the office and may contract for such education with the trustees or board of education of the school district wherein a facility for the residential care of such youth is located or with the board of cooperative educational services at which any such school district is a component district for special education programs, related services and career and technical education services and music, art and foreign language programs in accordance with subparagraph eight of paragraph (h) of subdivision four of section nineteen hundred fifty of this chapter. A youth attending a local public school while in residence at such facility shall be deemed a resident of the school district where his parent or guardian resides at the commencement of each school year for the purpose of determining which school district shall be responsible for the youth's tuition pursuant to section five hundred four of the executive law. * NB Effective until June 30, 2018 * 6-a. Notwithstanding subdivision six of this section the director of the division for youth shall be responsible for the secular education of youth under the jurisdiction of the division and may contract for such education with the trustees or board of education of the school district wherein a facility for the residential care of division for youth is located. A youth attending a local public school while in residence at such facility shall be deemed a resident of the school district where his parent or guardian resides at the commencement of each school year for the purpose of determining which school district shall be responsible for the youth's tuition pursuant to section five hundred four of the executive law. * NB Effective June 30, 2018 * 6-b. The commissioner of mental health may meet his or her obligations under section 33.11 of the mental hygiene law by contracting pursuant to this subdivision for educational services for children between the ages of five and twenty-one who do not hold a high school diploma and who are hospitalized in hospitals operated by the office of mental health with the trustees or board of education of any school district for educational services or with a board of cooperative educational services for the provision of special education, related services and any alternative education programs approved by the commissioner pursuant to regulations promulgated under section one hundred twelve of this chapter where the board of cooperative educational services provides alternative education programs to component school districts to such children in accordance with their individualized education programs. The costs of such education shall not be a charge upon a school district pursuant to section 33.11 of the mental hygiene law.