Sell the apartment, or rent it out?
When you leave the city, keeping the apartment as a rental can look like free income, especially with a low mortgage rate. Two tax rules decide it. The primary-residence exclusion, up to $500K of tax-free gain for a couple, generally requires two years of use as your home in the five years before the sale, so if you lived there right up to the move it survives a sale within about three years. And the depreciation you take as a landlord is taxed back when you sell. Enter the apartment and the rent to see which path leaves you ahead, year by year.
Past about 3 years from the move, the $500,000 primary-residence exclusion is generally lost, which is why longer holds often flip toward selling. Confirm with your actual dates.
Sell now: $1,447,236 in hand after selling costs, $53,139 of tax and the mortgage payoff. Run the sale in detail with the capital gains tax calculator and the seller closing-cost calculator.
Simplified: the mortgage is treated as interest-only and repaid at the sale; rental income is taxed at today’s income; New York taxes the rent and the gain as the property’s state, with your home state crediting it. Confirm with your accountant before acting.