The city must make hundreds of architectural changes to units at Rikers Island to accommodate inmates with disabilities, according to a settlement between the city and Manhattan US Attorney’s Office.

“For too long, the city has been violating the [federal Americans with Disabilities Act] by depriving inmates with disabilities of their right to have equal access to services, programs and activities available in the jail setting and by failing to make its visitation areas fully accessible to individuals with disabilities,” said Manhattan US attorney Geoffrey Berman in a statement Monday.

The city will begin the modifications in stages over the next six years, but all have to be completed by the end of 2024, according to the settlement.

Jail staff also must be educated in the requirements of the ADA in the next six months, and compliance reports will have to be filed to the feds twice a year as part of the agreement.

Still, since the city is planning to close down the jail in the next 10 years, it’s unclear how many of the changes will be implemented.

“We are pleased to have resolved this matter,’’ a rep with the city Law Department said.