Good morning and Happy Memorial Day. I have actually been through this myself. The legal answer is to read your lease, however I have several suggestions. First it depends on how long is left on your lease. If you only have a month or two you are better off just honoring the lease and paying it even if you move out. However if it's a longer, here are a few suggestions:
If your apartment community has a high occupancy rate, speak to the manager and tell her your situation and see if you could make it available to lease, if they would let you out early. I have seen this work many times, but it will not work if they have a lot of vacant apartments.
Secondly, if they allow, try to sublet your apartment for the remainder of the term.
If none of these work, you can pretty much expect to pay about 1.5 to 2.5 months rent as a penalty to get out.
I'd love to help you with your new home search. Give me a call or email!
Martha Turner Sotheby's International Realty