Rent & fees
Can my landlord charge me rent after I move out?
If you leave before a fixed-term lease ends, you can owe the remaining rent, but in most states the landlord must try to re-rent the unit and credit what they collect.
Moving out doesn't end a fixed-term lease on its own. Without an early-termination clause or a legal reason to leave, such as a domestic-violence or military-service protection, you remain liable for the rent through the end of the term.
Most states require landlords to make reasonable efforts to find a new tenant, which reduces what you owe. The lease may also set a fee for breaking early.
On a month-to-month tenancy, giving the right written notice ends your obligation when the notice period runs out.
Do something about it
The Notice to vacate generator turns this answer into action.
General educational information, not legal advice. Laws vary by state and city and change over time - for a specific situation, contact a local tenant-rights organization.