A mayoral term in New York City lasts four years. A mayor can serve up to two consecutive four-year terms before the term limit resets (if applicable) or until any changes to the charter are enacted or a public referendum alters the limit. This means a single mayor could serve up to eight years in a row under the current framework, assuming there are no changes to term-length rules or term-limit provisions during their time in office.
