In the coming decades, New York could confront a problem many cities would love to have: too many people and nowhere to put them.

The city is expected to add one million more residents by 2040, but there likely won't be room for hundreds of thousands of them unless a small city of new housing is built, according to a report by a Columbia University think tank.

The...