Portugal: every long stay route with the current math on the Portugal country page.
Guide
The 183-Day Rule for US Digital Nomads: Foreign Tax Residency on Top of US Worldwide Tax
Each country runs its own tax residency test, and none of them changes the fact that the US taxes its citizens on worldwide income. This guide sets the foreign day counts against the IRS 330-day test and shows how to plan a year around both.
Published: 2026-10-16 · Last verified: 2026-10-16 · Numbers apply to US passport holders
Rules change. Confirm the current rules with the official sources linked below before you apply, pay a fee, or book travel around a date in this guide.
Two tax systems, two clocks
US citizens are taxed on their worldwide income no matter where they live, and they have the same filing requirements as citizens living in the United States (IRS Publication 54). Becoming a tax resident somewhere else does not switch off US tax. It gives a second country a claim on your income too. Estonia, Colombia and Germany tax their residents on worldwide income. Thailand taxes residents on Thai-source income and on foreign-source income brought into Thailand.
The US offers two main ways to avoid paying tax twice. The first is the foreign earned income exclusion (FEIE), capped at $132,900 per person for tax year 2026, or $11,075 per month. The second is the foreign tax credit, claimed on Form 1116, for foreign income tax paid on income you did not exclude under the FEIE. You only get either one if you file a US return.
There is no single 183-day rule
"183 days" is shorthand. The real tests differ in the threshold, in the window they measure, and in whether they also look at something other than days:
- Portugal: more than 183 days in any 12-month period that begins or ends in the tax year. You also become resident if you hold a home in Portugal in conditions that show you intend to keep and occupy it as your habitual residence (Personal Income Tax Code, Article 16).
- Spain: more than 183 days in a calendar year, or your center of economic interests is in Spain (Article 9 of the Personal Income Tax Law).
- Estonia: at least 183 days over 12 consecutive calendar months, or your place of residence is in Estonia.
- Colombia: more than 183 calendar days, consecutive or not, within any 365 consecutive days. Entry and exit days both count (Article 10 of the Tax Code, per DIAN).
- Thailand: more than 180 days in a calendar year, per the Revenue Department.
- Malaysia: 182 days or more in a basis year (section 7(1)(a), Income Tax Act 1967). Linked shorter periods and a 90-day rule can also create residence.
- Germany: no day count. Keeping a dwelling in Germany can create a domicile with no minimum stay, and an unbroken stay of more than six months is generally treated as a habitual abode (Section 1(1) Income Tax Act, Section 9 Fiscal Code).
Three of these tests use rolling windows (Portugal, Estonia, Colombia). Two use the calendar year (Spain, Thailand). Malaysia uses the basis year, and Germany does not count days at all. If you split your year to stay under a calendar-year test, a rolling-window test can still catch you.
The US day count: 330 of 365
For most nomads, the FEIE depends on the physical presence test. You need 330 full days in a foreign country or countries during any 12 consecutive months. The window can start on any date. In a 365-day window that leaves 35 days you can spend in the US or anywhere that is not a foreign country. Publication 54 also requires your tax home to be in a foreign country, so day counts alone do not qualify you.
So the planning problem is this: you need about 330 days abroad for the US exclusion while keeping each country's count under its own threshold. A partial travel day can count toward Colombia's total, because Colombia counts entry and exit days, but it is not a full day for the 330. Keep a dated log of every border crossing.
Day-count strategies by country
- Schengen as a tourist: 90 days in any 180-day period across the whole Schengen area. Portugal, Spain, Germany and Estonia all share that one clock, which caps tourist time at about 180 days a year. That is under the 183-day lines in Portugal, Spain and Estonia. In Germany, keeping a dwelling can still create a domicile. Check the rolling count with the Schengen calculator.
- Long-stay nomad visas are built to push you past the threshold. Portugal's D8 temporary stay visa allows up to 1 year and requires average income of EUR 3,680 per month. Estonia's Digital Nomad Visa allows up to 365 days within 12 months and requires EUR 4,500 per month gross over the previous six months. Estonian rules have no special nomad exemption, so passing 183 days makes you a resident. Spain's telework visa requires EUR 2,442 per month (EUR 34,188 per year), and residence permits can be granted for up to 3 years. A full stay on any of these triggers local tax residency.
- Colombia: the 90-day entry permit can be extended with a PTP to a maximum of 180 days per calendar year. That cap applies per calendar year, but the tax test uses any 365 days. Example: 180 days from July to December 2026, followed by 30 days in January 2027, puts 210 days inside one 365-day window. That is over 183.
- Thailand: visa-exempt entry is 30 days per entry for entries on or after September 15, 2026, with one extension of up to 30 days for THB 1,900. The DTV allows up to 180 days per entry plus one extension of up to 180 days. A DTV holder who uses the extension will usually pass the 180-day mark. Because Thailand counts the calendar year, 180 days falls under the line and 181 crosses it. The Board of Investment lists an exemption from tax on overseas income as an LTR visa privilege.
- Malaysia: the threshold is 182 days or more, one day lower than the others, and linked-period rules mean a clean split is not guaranteed. The DE Rantau Nomad Pass requires USD 24,000 per year (USD 2,000 per month) for tech talent or USD 60,000 per year (USD 5,000 per month) for non-tech talent, with a maximum stay of 24 months. According to MDEC, foreign freelancers face 10 percent withholding for their first 182 days and are taxed as residents after that.
- Germany: there is no digital nomad, retirement or passive income visa. On any route you do qualify for, renting a home in Germany can make you a tax resident from the start of the stay.
A worked year
One way to plan 365 days: 85 days in Portugal, then 90 days in Colombia, then 85 days in Spain, then 90 days in Malaysia, plus 15 days in the US. That is 350 days abroad, which clears 330, and 15 US days, which is under the 35-day allowance. The 90 days in Colombia sit between the two Schengen blocks, so neither block breaks the 90 in 180 rule. Each country stays under its threshold: 85 is under 183 in Portugal and Spain, 90 is under 183 in Colombia, and 90 is under 182 in Malaysia.
Even so, this year has limits:
- Not being a tax resident anywhere abroad does not reduce your US liability. Your worldwide income stays on your Form 1040, and the FEIE covers earned income only up to the cap.
- The non-day tests still apply. Keeping a home in Portugal, having your center of economic interests in Spain, or having a place of residence in Estonia can make you a resident with low day counts.
- The FEIE still requires a foreign tax home. A pure travel year may not give you one, so confirm this before relying on the exclusion.
- Portugal's D8 checklist asks for a tax residence certificate, so a plan built on being resident nowhere can make some visa applications harder.
When crossing the line is the better choice
Becoming a tax resident is not automatically worse. If you pay local income tax, you may be able to credit it against US tax on the same income. Estonia and Germany each have a tax treaty with the US, and the Germany treaty can reassign residence if both countries claim you. Long-term residence routes also need years of real residence. Portugal and Spain each require 5 years, and Estonia's long-term resident permit requires 5 years on a temporary residence permit. Those years usually come with tax residency.
Before you apply
Thresholds, visa terms and the FEIE cap change, and the FEIE cap is adjusted every year. Before you book a year around these numbers, check each one with the official source listed below for that country and with IRS Publication 54. If your plan depends on landing just under a threshold, get a written opinion from a tax adviser who handles both the US and the country in question.
Country pages
Estonia: every long stay route with the current math on the Estonia country page.
Germany: every long stay route with the current math on the Germany country page.
Spain: every long stay route with the current math on the Spain country page.
Colombia: every long stay route with the current math on the Colombia country page.
Thailand: every long stay route with the current math on the Thailand country page.
Malaysia: every long stay route with the current math on the Malaysia country page.
Official sources
- IRS, Figuring the foreign earned income exclusion
- IRS Publication 54, Tax Guide for U.S. Citizens and Resident Aliens Abroad
- IRS, Frequently asked questions about international individual tax matters
- IRS, U.S. citizens and resident aliens abroad
- Portugal Ministry of Foreign Affairs, who needs a visa
- Embassy of Portugal in Washington DC, D8 temporary stay visa checklist
- Embassy of Portugal in Washington DC, D8 residence visa checklist
- Estonia Ministry of Foreign Affairs, long-stay D visa
- Spain Ministry of Foreign Affairs, telework (digital nomad) visa
- EU ETIAS and Schengen short stay information
- Make it in Germany, apply for a visa
- Migracion Colombia, Permiso Temporal de Permanencia
- Colombia SUIT, Resolution 5477 visa requirements
- Thailand e-Visa official site
- Thailand government, Destination Thailand Visa
- Thailand Board of Investment, LTR visa
- Immigration Department of Malaysia
- MDEC, DE Rantau Pass FAQ version 8
Facts in this guide last verified against the sources: 2026-10-16