I didn’t relocate to Panama years ago to reduce my tax bill but that was a welcome consequence of the move. I was aware of the tax advantages I would enjoy as a resident of Panama but didn’t make my decision based on those benefits solely. Taxes alone are not a reason to move anywhere.

Taxes are part of the puzzle you piece together as you identify the best destination for your move overseas. You don’t want to organize your life around tax code, but, no question, controlling your tax liability can make a big difference in your standard of living. Reducing your tax bill from 40% to 20% a year is like giving yourself a raise.

Americans have it tough when it comes to taxation. No matter where we go, our obligation to Uncle Sam follows. When we take up residence in a foreign jurisdiction, we’ve got two tax masters. We’re beholden to both the IRS and the local tax collector. We must understand the tax requirements on both sides, and we may be obliged to file annual tax returns in both jurisdictions. That is not to say we owe any additional taxes.

Indeed, as an American abroad, you can reduce your annual tax burden, even significantly, from what you were paying when you were residing full-time within U.S. borders. This can get complicated, and every situation is different. The good news is that you do not have to become an international tax pro to manage this part of your new life in paradise. You do, though, want to hire one. In fact, you’ll need two—one in the United States and a second in the jurisdiction where you’re planning to live or invest.

The Benefits Of Calling A Tax Haven Home

When I decided I wanted to start a business overseas, I tallied up the pros and cons of the world’s most entrepreneur-friendly countries. Panama’s tax benefits helped to put it at the top of this list. Panama’s approach to taxation is as good as it gets. Resident in Panama, you pay tax only on the money you earn in Panama. It’s what is generally referred to as a “tax haven.”

Panama is not the only one. Other places where, as a tax resident, you pay tax locally only on the money you earn locally include Belize, Costa Rica, the Dominican Republic, Malaysia, Nicaragua, and Uruguay.

The amount of tax you owe and who you owe it to when living and investing overseas depends on the type of income you have and where it comes from. Some countries have tax treaties with the United States that mitigate what you owe on one side of the equation, but that isn’t the whole story. You need counsel with experience to help you consider the options and make a plan that has you paying as little total tax as you’re legally obligated to pay.

How Much U.S. Tax Will You Owe As An American Living Overseas?

If you are retiring overseas and intend to live on Social Security or other retirement income alone, the move should be tax-neutral, depending where you relocate.

Wherever you go, you’ll owe the IRS what you would have owed were you still living in the States. In many cases, your new country of residence will not tax your retirement income. Colombia, for example exempts up to approximately $10,000 a month in pension and Social Security income. European countries tax everything but most every country in Europe has a tax treaty with the United States dictating which country gets to tax which income first. The net effect is that you should pay no more tax on your retirement income than if you’d remained Stateside unless your total income is high enough to put you in the highest tax bands.

That is not necessarily the case when retiring to Europe with earned or investment income. Marginal tax rates are higher in Europe and you reach those rates faster than you do in the United States. However, tax credits can mitigate the potentially higher tax liabilities, and if you organize your move properly you should lose your U.S. state tax obligation altogether.

Earned income is where an American abroad can come out ahead, thanks to the Foreign Earned Income Exclusion. Say you intend to pay for your new life overseas in full or in part by launching a laptop-based consulting business. You can use a foreign corporation in a zero-tax jurisdiction to legally and legitimately reduce or even eliminate U.S. tax on the income you earn from that business. Your company can pay you a tax-free salary up to the FEIE amount. Since you’re being paid by a non-U.S. company, no FICA taxes are withheld so you save that tax. Any net profits that your non-U.S. company earns are taxed at the preferential U.S. corporate rate.

To qualify for the FEIE, you need to meet one of two tests the IRS has laid out—the “days test” or the “bona-fide resident test.” The days test is straightforward. You simply need to be in a foreign jurisdiction at least 330 days during any 365 period.

The bona-fide residency test is less straightforward, but it gives you leeway on how long you can be physically present in the United States during any tax year. Bona-fide residency starts with legal residency in another country. Once you have established that, you need to show that you are also a tax-resident of that country, meaning you are required to file a tax return and pay tax. You can be a legal resident of a country without triggering tax residency.

How Much Tax Will You Owe Locally?

The United States is the only country in the world that taxes its citizens the same no matter where in the world they live. Eritrea imposes a 2% tax on its citizens not living in the country, but that’s not the same thing. The rest of the world taxes only residents, in most cases based on worldwide income. This is why tax planning is so important, especially for an American moving overseas.

Many assume that European countries are especially onerous when it comes to taxing their residents. That’s not necessarily the case. Take France. With a top income tax band of 45% that is reached much quicker than the top band in the United States and high social charges if you’re working in the country, France qualifies as a high tax jurisdiction. However, when you do the math, you find that, while a single American living in France likely will pay more in taxes than he would living in the United States, a couple or family will probably pay less tax on the same income. That’s because France divides the taxable income by the number of people in the household before applying its tax bands on the income.

More to the point for a U.S. retiree in France, the U.S. tax treaty with France effectively eliminates all taxes in France. You still need to file a tax return in France, but you get a deemed credit for any tax that would otherwise be due in France for passive income.

Also remember, retiring overseas eliminates state tax. In the United States, of course, depending where you live, you can be liable not only for state tax but also in some cases county and city taxes, too.

Most countries charge tax on income you earn in that country, regardless of your residency status. You’re liable for tax on income earned in France or the United States (or Uruguay or Malaysia, etc.), for example, even if you’re not a resident of those countries. This fundamental point has implications for investment income, from dividends, interest, or rental property, for example.

One additional tax to be aware of is what’s termed a wealth tax. This is a tax on your net worth or some specific category of assets. France’s wealth tax is imposed on real estate only and kicks in at 1.3 million euros of net real estate assets. Other countries in Europe that still impose a wealth tax include Belgium, Italy, Norway, and Spain. In Latin America, Argentina, Colombia, and Ecuador are on the list. However, between the high exemption amounts and/or the low tax rates, a wealth tax, where it exists, isn’t a concern for most retirees.

How To Stay Compliant As An American Abroad

If you are a U.S. citizen or green card holder, understand that you will be liable for tax in the United States on your worldwide income no matter where you roam or for how long. The practical implication of this is that we Americans retain a reporting obligation Stateside forever—or until Congress changes the tax rules (which is being discussed) or we’re no longer Americans. That explains why U.S. expatriation is at its highest rate in history. It’s not U.S. taxes, per se, motivating more and more Americans to give up their passports but the cost and hassle of reporting to the IRS each year even if you don’t owe them any money.

Annual Tax Return

To start, an American, no matter where you’re living, must file a tax return with the IRS each year, unless your total income is less than the annual exemption amount. If you’re living outside the United States or if you’re traveling outside the United States on April 15, you can avail of an automatic two-month filing extension. Your annual return isn’t due until June 15. If you’d like more time to pull your return together, file Form 4868. This extends your deadline to October 15.

Foreign Bank Account Report (FBAR or FinCEN 114)

Depending on your situation, an American living or investing overseas can have other filing requirements. Most common is the Foreign Bank Account Report (FBAR), or FinCEN 114. This form must be filed online by any American who has a financial interest and/or signatory control over bank accounts outside the United States that have had a cumulative total of $10,000 on deposit at any point during the previous calendar year.

To clarify, if you have 10 bank accounts in 10 different countries, each with $1,000 in them at the same point during the prior year, you have to file this form. If you have one bank account in Mexico (that you use, say, to pay the local electric bill for your vacation home in Puerto Vallarta) and it has $100 in it most of the year but you wire down $10,000 at some point to pay for home repairs and the funds are in the account only for a single day before you withdraw them to pay your contractor, you have to file this form.

The FBAR is due by April 15 of the following calendar year unless you file an extension for your return, in which case it’s due on the extension deadline, October 15. However, since the filing date was changed from June 30, the Treasury Department has granted an automatic extension, meaning the actual current deadline is October 15 for everyone. The Treasury Department could eliminate the automatic extension at any time so pay attention or file before April 15 to be safe.

The penalties for not complying with the FBAR filing requirements are onerous. For non-willful llful violation, the fine is up to $10,000 per violation. The penalty for a willful violation is $100,000 or 50% of the account value, whichever is greater. This means you could be fined $100,000 for not reporting a bank account containing $10,000 if the IRS decides you didn’t report it willfully.

Form 8938

Thanks to the Foreign Account Tax Compliance Act (FATCA), an American with offshore financial assets (including offshore financial accounts) must also file Form 8938 with his annual tax return. The threshold for filing Form 8938 is a bit more complicated than for the FBAR. If you live in the United States, the threshold is less than if you live abroad. If you’re married, you’re allowed twice the assets before you have to file.

Offshore real estate holdings remain non-reportable as long as you hold title in your own name. Foreign real estate does not qualify as a foreign financial asset. Neither does gold held in an allocated account in your name. Put those assets in a trust, corporation, or LLC, and you now are required to file one of the tax forms referenced above (3520/3520-A, 5471, or 8832).

MORE FROM FORBES

ForbesWhere To Find A Dream Home In Europe For Less Than A Cup Of Coffee
ForbesThe Safest Havens In Europe You Don’t Know YetForbes6 Countries Where You Can Get Residency Through Real Estate