How to Minimize Capital Gains Tax as a Digital Nomad

Digital nomad reviewing capital gains records, tax residency dates and international investment documents before selling assets.

Cross-border tax planning

Selling shares, cryptocurrency, property, company equity or a business while moving between countries can create tax exposure in more than one jurisdiction. Lawful planning begins by establishing where you are tax resident, identifying every country with a potential right to tax the asset, and checking departure taxes, return rules, treaties and reporting obligations before the disposal becomes binding.

By the Lasarga Editorial Team

The four questions to answer before selling

  1. Where are you tax resident? Apply the complete domestic residence test in every potentially relevant country.
  2. What exactly are you selling? Shares, digital assets, real estate, employee equity and business assets may follow different rules.
  3. Does another country retain taxing rights? Property location, a permanent establishment, citizenship, departure rules or temporary non-residence provisions may remain relevant.
  4. Which relief is actually available? Confirm the adjusted basis, allowable losses, exemptions, treaty treatment and foreign tax credits rather than relying on headline tax rates.

Begin with the capital gain calculation

A simplified capital gain calculation starts with the value received for an asset and subtracts its recognized tax basis and any disposal costs allowed by the relevant jurisdiction:

Potential gain = disposal proceeds − adjusted tax basis − allowable disposal costs

This is only a framework. Local law determines what counts as proceeds, basis and an allowable cost. The calculation may also involve foreign-exchange conversions, depreciation adjustments, improvements, corporate reorganizations, previous elections and special valuation rules.

Cost basis is not necessarily the purchase price displayed by a broker. Gifts, inheritances, employee compensation, mergers, token migrations and transfers between accounts may require separate calculations. The U.S. Internal Revenue Service, for example, explains in Publication 551 on basis of assets that basis can be increased or reduced by later events and that property received other than by purchase may use a basis other than cost.

Information to reconstruct before comparing sale dates

  • the legal and beneficial owner of the asset;
  • the acquisition date and original acquisition value;
  • commissions, legal fees and other potentially allowable costs;
  • reinvested distributions and corporate actions;
  • improvements, depreciation or prior basis adjustments;
  • the tax treatment when employee equity vested or was exercised;
  • the required exchange rate for each relevant date; and
  • the market value on any immigration, emigration or deemed-disposal date.

A sale-date comparison is unreliable if the basis has not first been reconstructed under the rules of each country involved.

The 183-day rule is not a universal exemption

Spending fewer than 183 days in a country does not automatically make a person non-resident everywhere. Residence tests differ and may consider accommodation, family, work patterns, previous residence and other statutory connections.

The United Kingdom illustrates why a day count alone is insufficient. Under HM Revenue & Customs’ Statutory Residence Test guidance, 183 days establishes UK residence, but people with fewer days must still consider the automatic overseas tests, automatic UK tests and sufficient-ties test. Canada similarly considers whether an emigrant has severed significant residential ties, as described in the Canada Revenue Agency’s guidance for individuals leaving Canada.

Residence factors that may be relevant

  • Physical presence: Count days according to the local definition, including any rules for arrival, departure, transit or exceptional circumstances.
  • Available accommodation: A retained home or continuously available apartment may matter even if it is not used every day.
  • Personal connections: Some systems consider a spouse, partner, dependent children or established living pattern.
  • Work and economic activity: Employment, business operations or management responsibilities may be relevant under the domestic test.
  • Previous residence: The number of days permitted may depend on whether the person was resident in earlier years.

A visa or residence permit answers an immigration question. Tax residence must still be determined under tax law, and any special tax regime attached to a visa must be reviewed separately.

Resolve possible residence in two countries

It is possible to satisfy the domestic residence rules of two countries for the same period. An applicable bilateral tax treaty may then contain rules for determining treaty residence.

The OECD Model Tax Convention, which is used as a reference in negotiating many bilateral treaties, includes concepts such as a permanent home, centre of vital interests, habitual abode and nationality for individual residence disputes. The wording of the actual treaty and any protocol must be checked; the OECD Model is not itself a treaty between the taxpayer’s countries.

Treaty residence also does not necessarily eliminate filing obligations in the country where a person remains domestically resident. Some jurisdictions require a treaty claim, residence certificate or disclosure form.

Identify which country can tax each asset

Residence is a central connection, but it is not the only one. Domestic source rules, the location of property, a permanent establishment, citizenship and departure provisions may give another country taxing rights.

Asset or transaction Questions to answer Frequent planning error
Listed shares and funds Where is the owner resident? What basis, holding period and source rules apply? Does a treaty alter the result? Assuming the country where the brokerage account is located determines the tax treatment.
Digital assets Which transactions are disposals? How are swaps, payments, rewards, fees and transfers between owned wallets treated? Believing that tax arises only when proceeds are transferred to a bank.
Real estate Where is the property situated? Do non-resident reporting, withholding or clearance procedures apply? Assuming that leaving the country ends its right to tax gains from local property.
Employee shares and RSUs Which amount is employment income and which is a later investment gain? Where were services performed during the relevant period? Treating the entire sale profit as an ordinary portfolio gain.
Share options Does taxation occur at grant, vesting, exercise or sale? Is cross-border employment allocation required? Planning only for the final sale and overlooking an earlier taxable event.
Private-company shares Are valuation, substantial-shareholder, local-business or real-property-rich company rules relevant? Assuming relief available for listed investments also applies to private equity.
Business disposal Is it a share sale, asset sale, partnership-interest sale or intellectual-property transfer? Comparing headline capital gains rates without modelling the legal structure of the transaction.

Under the OECD Model’s capital gains framework, gains from immovable property may be taxed where the property is situated, and special treatment may apply to business assets and interests deriving substantial value from immovable property. Actual outcomes depend on domestic law and the applicable treaty.

Check exit tax before changing residence

Some countries treat specified assets as sold at market value when tax residence ends. This can create tax on an unrealized gain even though there is no buyer and no sale proceeds.

Canada: deemed disposition on emigration

The Canada Revenue Agency states that a person ceasing Canadian residence is generally deemed to dispose of certain property at fair market value and immediately reacquire it for the same amount. Exclusions, reporting forms and an election to defer payment can apply. The details are set out in the CRA’s deemed-disposition guidance for emigrants.

Australia: CGT event when residence ends

Under Australia’s CGT event I1 legislation, an individual or company that stops being an Australian resident may have to calculate a gain or loss for assets other than taxable Australian property. An individual may be able to choose to disregard gains and losses covered by that event, but the assets then receive continuing Australian tax treatment under section 104-165. The election therefore requires modelling of both the immediate and later consequences.

Departure-tax checklist

  • List every asset owned before the expected residence-ending date.
  • Identify which assets are included or excluded from the departure rules.
  • Obtain supportable market valuations for private or illiquid assets.
  • Calculate unrealized gains and losses in the required currency.
  • Review elections, payment deferrals and security requirements.
  • Check whether a deferral makes the asset taxable when it is eventually sold.
  • Confirm return and information-form deadlines.
  • Plan for tax that may become payable without sale proceeds.

Changing residence can accelerate tax rather than reduce it. Compare at least three scenarios: a real sale before departure, a deemed sale on departure and a later sale after the residence change.

Watch for temporary non-residence and return rules

A brief move abroad may not permanently remove the former country’s claim. Some jurisdictions bring specified gains back into tax if the person returns within a defined period.

UK rules provide a clear example. HMRC’s 2025–26 temporary non-residence helpsheet explains that certain gains realized during a qualifying period of temporary non-residence are treated as arising in the year of return. The detailed conditions include the person’s residence history and the length of the period without sole UK residence.

Planning should therefore include an early-return scenario. Family needs, employment changes, health issues or immigration restrictions can result in a return earlier than originally intended.

U.S. citizens and resident aliens need a separate analysis

Moving abroad does not generally end U.S. federal tax obligations for a U.S. citizen or resident alien. The IRS states that these taxpayers remain subject to U.S. tax on worldwide income and generally follow the same federal filing framework whether they live in the United States or abroad. See the IRS guidance for U.S. citizens and resident aliens abroad.

The foreign earned income exclusion does not turn investment gains into exempt foreign earnings. The IRS classifies capital gains, dividends and interest as unearned income for this purpose in its guidance on what qualifies as foreign earned income.

Renouncing U.S. citizenship or ending qualifying long-term resident status is a separate legal and tax event. Expatriation tax provisions and Form 8854 reporting may apply. An irrevocable citizenship or immigration decision should not be made solely to change the taxation of one transaction without specialist U.S. tax and immigration advice.

Use treaties and foreign tax credits carefully

A tax treaty allocates or limits taxing rights between two countries. It does not create a universal capital gains exemption, and different categories of gain can be treated differently.

Question Why it matters Evidence to retain
Is a treaty in force? Not every pair of countries has an applicable comprehensive income tax treaty. Official treaty text, protocols and effective-date provisions.
What is the person’s treaty residence? Domestic residence in two countries may require a separate treaty analysis. Day counts, home records, evidence of personal and economic ties, and residence certificates.
Which treaty article applies? Real estate, business property and ordinary portfolio investments may be allocated differently. Ownership documents, company accounts and the final transaction agreement.
How is double taxation relieved? The residence country may grant a credit, exemption or other treaty relief. Foreign returns, assessments and proof of tax paid.
Do the tax years and payment dates align? Tax may be due in one country before a credit can be claimed in another. A country-by-country filing and payment calendar.

A foreign tax credit is not necessarily equal to all tax paid abroad. For example, the IRS explains that the U.S. credit is subject to limits, income-source rules and separate categories, and that only qualifying foreign taxes can be credited. See the IRS foreign tax credit guidance.

Lawful strategies that may reduce capital gains tax

The following strategies are general planning categories, not universal entitlements. Availability depends on the taxpayer, jurisdiction, asset and transaction.

1. Use the correct adjusted basis

Include acquisition costs, qualifying improvements and other adjustments permitted by local law. Also account for reductions such as depreciation where required.

2. Apply available capital losses

Current-year or carried-forward losses may offset qualifying gains. Confirm ordering rules, expiry periods, income-category restrictions and whether losses from another country are recognized.

3. Review loss-repurchase restrictions

Do not assume that selling and immediately repurchasing an asset creates an allowable loss. Countries use different anti-loss rules. The United States, for example, applies wash-sale restrictions to certain sales of stock or securities, as explained in IRS Publication 550.

4. Use available exemptions or allowances

Some countries provide annual exemptions, main-residence relief, small-business relief or other concessions. Eligibility conditions and annual limits can change, so verify the rules for the tax year of disposal.

5. Review holding-period treatment

Where local law distinguishes assets by holding period, the acquisition and disposal dates can affect the rate, deduction or relief. Other jurisdictions do not provide a general holding-period benefit.

6. Review tax-advantaged accounts before moving

A pension, retirement account or savings wrapper may be tax-advantaged in its home country but treated as an ordinary account, foreign trust or reportable asset elsewhere. Confirm how the destination country classifies the account before contributing, withdrawing or selling assets within it.

7. Compare legitimate sale dates

A disposal before departure, during a transition year and after residence changes may produce different results. The analysis must use the legal disposal date and the residence position that actually exists, not a planned residence change that has not been completed.

8. Model the legal transaction

For a business or private-company disposal, a share sale, asset sale, installment arrangement or intellectual-property transfer can produce different tax and commercial results. Restructuring may itself trigger tax, so it must be considered before a binding sale agreement is signed.

Hypothetical cross-border sale example

Consider a hypothetical digital nomad who owns shares with a substantial unrealized gain and plans to leave Country A for Country B. No tax result can be determined merely by comparing the two countries’ headline capital gains rates.

The analysis would need to compare:

  • a sale while still resident in Country A;
  • any deemed disposal or departure tax when Country A residence ends;
  • a sale after Country B residence has legally begun;
  • any continuing tax imposed by Country A because of citizenship, asset source or temporary non-residence rules;
  • the basis recognized by Country B, including whether it is reset to market value on arrival;
  • treaty allocation and foreign tax credit limits; and
  • the result if the person returns to Country A earlier than planned.

This hypothetical example does not imply that moving before a sale will reduce tax. Depending on the rules, departure could trigger immediate tax, the destination country could tax the full historical gain, or both countries could require reporting with only limited double-tax relief.

A safer sequence before selling

  1. List every potentially relevant country.
    Include current and previous residences, citizenships, property locations, company jurisdictions and countries where employment connected to employee equity was performed.
  2. Determine residence under each domestic system.
    Apply the complete statutory test for the relevant tax year.
  3. Resolve any dual-residence position.
    Read the applicable treaty and confirm whether a formal claim or residence certificate is required.
  4. Classify the asset and taxable event.
    Separate capital gain, employment income, business income, property income and foreign-exchange effects.
  5. Reconstruct the adjusted basis.
    Gather acquisition records, fees, valuations, reinvestments, option documents and corporate-action statements.
  6. Check departure and return provisions.
    Model exit tax, deemed disposal, split-year rules and temporary non-residence.
  7. Compare realistic transaction dates.
    Use dates on which the proposed residence and ownership facts can genuinely be established.
  8. Review losses, exemptions and credits.
    Confirm eligibility, restrictions and filing requirements in each jurisdiction.
  9. Complete any move in substance.
    Align accommodation, family arrangements, employment, business management and official records with the intended position.
  10. Document and report the transaction.
    Retain the final contract, settlement statements, exchange rates, returns, assessments and proof of foreign tax paid.

Records digital nomads should maintain

  • passport entry and exit records;
  • flight, rail and accommodation confirmations;
  • leases and property ownership documents;
  • tax residence certificates and local registrations;
  • employment, contractor and client agreements;
  • company management and board records;
  • brokerage and exchange transaction histories;
  • digital-asset wallet addresses and transaction exports;
  • original asset-purchase documents;
  • commission, legal-fee and transaction-cost statements;
  • foreign-exchange records;
  • private-company valuations;
  • employee equity grant, vesting and exercise records;
  • foreign tax returns and assessments; and
  • proof that foreign tax was paid.

Platform reports are useful but not conclusive. A broker or exchange may lack historical basis information or calculate gains under the rules of only one country.

For U.S. federal purposes, the IRS treats digital assets as property and requires records showing acquisitions, sales, exchanges, basis and fair market value. Exchanging one digital asset for another can be a reportable disposal. See the IRS digital-assets guidance. Other jurisdictions may classify the same transaction differently.

Common mistakes that create unnecessary tax risk

  • Relying only on 183 days: Fewer than 183 days does not necessarily establish non-residence.
  • Selling during an unresolved transition: Residence and split-year treatment may be uncertain.
  • Ignoring exit tax: Departure can trigger tax on unrealized appreciation.
  • Returning too quickly: Temporary non-residence rules may bring specified gains back into tax.
  • Confusing income with capital gain: Employee equity, digital-asset activity and business sales may contain several income categories.
  • Treating a foreign broker as a tax strategy: Account location does not by itself determine residence or taxing rights.
  • Claiming residence without supporting facts: A certificate or address may not resolve contradictory evidence.
  • Failing to document basis: Missing records can increase the reported gain or prevent a relief claim.
  • Assuming a treaty eliminates tax: Treaties allocate rights and provide relief but do not exempt every gain.
  • Planning after signing: Once a binding disposal occurs, a later move or ownership change may not alter its treatment.

When cross-border professional advice is especially important

Seek appropriately qualified advice before committing to the transaction where:

  • the expected gain is financially significant;
  • two or more countries may treat you as resident;
  • you are a U.S. citizen, green-card holder or otherwise subject to continuing U.S. worldwide reporting;
  • you are leaving a country with departure-tax rules;
  • you may return to the previous country within several years;
  • the asset consists of private-company shares, options or RSUs;
  • you are selling a business or intellectual property;
  • digital-asset transactions span multiple exchanges, wallets or tax years;
  • the asset is real estate or an interest deriving substantial value from real estate; or
  • treaty relief or foreign tax credits will be needed.

A useful pre-sale report should state the residence assumptions, asset classification, basis, expected gain, country-by-country treatment, available relief, filing obligations and the result if the move or return date changes.

Frequently asked questions

Am I tax-free if I stay fewer than 183 days in every country?

No. Day count may be only one part of a residence test. You may remain resident because of accommodation, family, work, prior residence or other statutory factors. Continuous travel also does not guarantee that you have ceased residence in your former country.

Can I avoid capital gains tax by selling after moving abroad?

Not automatically. The former country may impose departure tax, source-based taxation or temporary non-residence rules. The destination country may tax worldwide gains after residence begins.

Does using a foreign broker change where the gain is taxed?

The broker’s location usually does not decide the issue by itself. Residence, citizenship, asset classification, source rules and treaties are generally more important.

Is exchanging one cryptocurrency for another taxable?

It can be. For U.S. federal tax purposes, exchanging digital assets that differ materially is generally a disposition capable of producing gain or loss. Apply the rules of every relevant jurisdiction and retain records of both assets, their values and transaction costs.

Can capital losses reduce my tax?

Qualifying losses may offset specified gains, but countries impose different restrictions, ordering rules, carryforward periods and sale-repurchase provisions.

Does a digital nomad visa provide a capital gains exemption?

Not by itself. Immigration permission, tax residence and eligibility for a special tax regime are separate questions. Review the visa rules and tax legislation independently.

Can two countries tax the same gain?

Yes. Overlapping domestic rules can produce taxation in two countries. A treaty, foreign tax credit or exemption may provide relief, but that relief can be limited and normally requires correct filings and evidence of foreign tax paid.

When should planning begin?

Before signing a sale agreement, accepting an offer that creates a binding obligation, exercising options, changing residence or restructuring ownership. Post-completion options are usually limited to correct reporting and any elections still permitted by law.

Final perspective

Minimizing capital gains tax lawfully as a digital nomad is not simply a matter of finding a destination with a low headline rate. A defensible plan must account for domestic and treaty residence, asset classification, source-country rights, departure taxes, return rules and the basis recognized in each jurisdiction.

Before a major disposal, prepare a transaction map listing the asset, legal owner, acquisition date, estimated basis, expected sale value, citizenships, current and previous residences, planned destination, property or company location, departure date and possible return date. Confirm the resulting analysis with the relevant tax authority or an appropriately qualified cross-border adviser before making a material decision.

Sources and further reading

  1. OECD — Model Tax Convention on Income and on Capital
  2. HM Revenue & Customs — Statutory Residence Test guidance
  3. HM Revenue & Customs — Temporary non-residents and Capital Gains Tax, 2025–26
  4. Canada Revenue Agency — Dispositions of property for emigrants
  5. Australian Taxation Office legislation:
    CGT event I1
    and
    choice to disregard gains and losses
  6. Internal Revenue Service — U.S. citizens and resident aliens abroad
  7. Internal Revenue Service — What is foreign earned income?
  8. Internal Revenue Service — Foreign tax credit
  9. Internal Revenue Service — Digital assets
  10. Internal Revenue Service — Publication 551, Basis of Assets
  11. Internal Revenue Service — Form 8854, Initial and Annual Expatriation Statement