It depends on the lease term. I am living in NYC, and the lease specifically says that if you move out of the building before the lease expires, you have to pay the rest of the rent for the leasing period until the landlord finds another one to move in. But my apartment also allows you to buy an option for $200 when you sign the lease so you can break the lease at anytime with one month advance notification. Check you lease term first.