New York City is located in New York State, which has 31 electoral votes. New York City has a population of over 8 million people, which is about 40% of the state's population. Therefore, it is reasonable to assume that New York City has about 40% of the state's electoral votes, which is 12.