Digital Nomad Tax Calculator

Calculate tax obligations when working across 2+ countries. 183-day rules, tax treaties, permanent establishment risk, and social security.

Your Situation
🇪🇸 Spain (120-day threshold: 183)
🇹🇭 Thailand (90-day threshold: 180)
Days accounted for: 210 + 155 home = 365/365
Tax Liability Summary
High complexity detected: US citizenship + Portugal NHR. Consider professional consultation.
🛡️ Social Security · United States ↔ Portugal totalization$10,520
Total Estimated Tax$10,520
Effective rate: 13.2% · vs $39,720 without treaty optimization
Treaty Optimization Opportunities
Portugal NHR: 10-year foreign income exemptionSave ~$22,400/year
Apply within 183 days of arrival. File Form 046 annually.
US Foreign Earned Income Exclusion: $126,500 tax-freeSave up to $30,000/year
Requires 330 days outside the US or bona-fide foreign residence. File Form 2555.
Spain Beckham Law: 24% flat tax for newcomersSave ~$8,500/year
For non-EU workers moving to Spain. First 6 years. File within 6 months of starting work.

Complete Guide to Digital Nomad Tax Obligations

Working from a beach in Bali while employed by a German company and paying tax in Portugal sounds ideal. But tax authorities in four countries may disagree. This guide explains how to legally minimize tax as a digital nomad without creating compliance nightmares.

Why the 183-day rule is just the beginning

183 is not universal. Spain uses 180. The UK uses a sliding-scale test with as few as 16 days. Some countries count any part of a day; others require presence at midnight. Working a single day from a country can trigger source taxation even without residency. The calculator applies country-specific thresholds and flags the traps.

When to use this tool vs. alternatives

ToolBest ForLimitationOur Advantage
Tax AdvisorComplex filings$200–500/hrFree 24/7 screening
Nomad ListCost of livingNo tax mathIntegrated tax + relocation
Deel / RemoteEmployer payrollEOR-focusedSelf-employed + employee + mixed
IRS ITAUS-specificUS-only20+ countries, treaties
OECD ModelReferenceLegal textConsumer scenarios

Interactive scenarios

US citizen + Portugal NHR + work in Spain and Thailand

US: citizenship-based. With FEIE (~$126k abroad), an $80k freelancer owes $0 US tax — Form 2555 required. Portugal NHR: foreign freelance exempt for 10 years — Form 046. Spain 120 days < 183: not resident, medium PE risk if coworking continues past 6 months. Thailand 90 days < 180: no filing. Social security: US–Portugal totalization applies — Certificate of Coverage. Net tax: near $0 (vs $28k unoptimized).

UK citizen + Dubai + 100 UK work days

UK Statutory Residence Test: 46–90 days needs 3 ties; 100 days triggers "work 40+ days" tie. Add family + accommodation = 3 ties → UK resident again. UK tax on global income. Dubai 0% doesn't help without a treaty. Fix: limit UK to ≤90 days, sever ties, or sell UK home.

German employee + 6 months remote from Bali

Germany: still resident (vital interests). Indonesia: 183+ days = resident, but DE–ID treaty assigns employment income to residence state if employer is German and no PE. No Indonesian income tax. Social security: no totalization — possible double contributions (~25% combined). Solution: stay < 180 days or negotiate employer coverage.

Permanent establishment: the hidden trap

PE can trigger from day one if you have a fixed place of business or conclude contracts locally. Coworking 6+ months almost always creates a fixed-place PE. Service PE triggers after 183 days of services in a 12-month rolling window — independent of residency.

Social security: the forgotten cost

Often 20–40% of income. The US has 30 totalization agreements; the EU coordinates intra-EU contributions. Self-employed nomads usually have no exemption and may owe in two systems simultaneously. The calculator shows which system applies and the estimated rate.

Methodology & data sources

  • OECD Model Tax Convention 2017 — residence, PE, income articles, tie-breaker rules
  • UN Model Double Taxation Convention 2021 — service PE, technical fees
  • IBFD Tax Treaties Database — 3,000+ treaties with commentary
  • IRS Publications 54, 514, 901 — US-citizen abroad, foreign tax credit, treaties
  • PwC Worldwide Tax Summaries, Deloitte International Tax Source, EY Global Tax Alerts

Estimates for planning only. Tax laws change frequently. For filing, consult a qualified cross-border tax professional.

Frequently Asked Questions

Common questions

  • The calculator applies a 4-step analysis: (1) Tax residence — citizenship + permanent home + center of vital interests (OECD tie-breaker rules). (2) 183-day rule — checks if you trigger residency in each work country. (3) Tax treaties — applies 3,000+ bilateral treaties to prevent double taxation. (4) Permanent establishment — assesses if your work pattern creates a taxable presence.

  • 183 days is the most common threshold, but not universal. Spain uses 180. The UK uses a Statutory Residence Test with day-and-ties tests starting at 16. The US uses a 3-year Substantial Presence Test. Some countries count any part of a day; others require midnight presence. The calculator flags country-specific rules.

  • 3,000+ bilateral treaties from the OECD Model, UN Model, and regional agreements. Key articles: 4 (residence), 5 (PE), 7 (business profits), 14/15 (independent / employment services), 23 (elimination of double taxation). Updated monthly from the IBFD database.

  • PE is when your work creates a taxable presence even without residency. Three types: fixed-place (office or coworking 6+ months), dependent agent (someone concluding contracts on your behalf), and service PE (183+ days providing services). The calculator scores Low / Medium / High based on duration and location type.

  • This is a screening tool, not a substitute. Use it to identify obligations, claim treaty benefits, and prepare questions for your advisor. Use a cross-border tax specialist for filing, audits, US state tax, complex corporate structures, and crypto income.

  • Separate from income tax and often more expensive. The US has 30 totalization agreements; the EU coordinates intra-EU contributions. A Certificate of Coverage can exempt you from host-country social security for 5 years. Self-employed nomads often have no exemption.

  • Yes. REST API returns JSON with tax liability per country, treaty benefits, PE risk, social security, filing deadlines, and recommended advisors. Free tier: 50 requests/day. Pro tier ($19/month): 5,000 requests/day with historical tracking and white-label embedding.

  • (1) Assuming 183 days is the only test. (2) Not claiming treaty benefits (you usually must file to claim them). (3) Mis-counting partial days. (4) Overlooking PE risk in coworking spaces. (5) Forgetting social security — often 20–40% on top of income tax.