Do I owe US taxes after I return home from a visa?
You file a final return for the year you leave, and after that only US-source income such as US dividends or property sales stays taxable to a nonresident.
For the year you leave, yes: you file a return covering your time in the United States. After that, a nonresident alien owes US tax only on US-source income, such as US dividends, rental income from US property, gains on US real estate and some payments from a US employer. A person who no longer works or invests in the United States commonly owes nothing after the final return (IRS, Taxation of nonresident aliens).
The year you leave
If you were a resident alien under the substantial presence test for that year, you are a resident until the last day you are in the country, and a nonresident afterward, which makes the year a dual-status year. A dual-status return reports worldwide income for the resident part and only US-source income for the rest (IRS, Publication 519). If you stayed a nonresident all year, you file Form 1040-NR. The return is due the following April, and it can be filed from abroad.
The residency end date
Your resident status ends on the last day you are in the United States, if you had no closer ties and do not return that year, subject to rules that treat a short gap as no break. A person who leaves in March and returns in May of the same year may not have ended residence. The IRS explains the rule in Publication 519 chapter 1.
What can stay taxable afterward
US-source dividends and other fixed income, subject to 30% withholding or a treaty rate, given to the payer on Form W-8BEN (IRS, About Form W-8BEN).
US rental property income, taxed on a return, with an election to treat it as business income.
Sales of US real estate, subject to withholding on the buyer's side.
Retirement plan distributions, taxed and withheld (see the related FAQ on 401(k) cash-outs).
Bank interest is generally not taxed for a nonresident, with exceptions.
State taxes
States have their own residency rules. A person who leaves in the middle of the year may owe a part-year state return, and some states tax certain income longer, such as stock compensation earned while living there.
A worked case
An H-1B worker returns to India on June 30, 2026, after living in the US for four years. The 2026 return is dual-status: a resident return for January 1 to June 30, and a nonresident return for the rest. A US brokerage account remains, with dividends. From 2027 on, the worker gives the broker a W-8BEN, and the dividends carry 30% withholding unless a treaty lowers it. If the worker has no US income in 2027, no return is needed.
What goes wrong
Skipping the final return. The part-year wages need reporting.
Leaving a W-9 on file with a US broker. The broker may keep treating you as a US person.
Overlooking a refund. Overwithheld tax can be recovered only by filing.
Because a green card holder is taxed differently, a person who holds one should see the related FAQ on moving abroad, and a tax professional can prepare the dual-status year.