/openaccountants:leaving-germany-exit-taxfrom openaccountants
Explains German exit tax (Wegzugsteuer) under §6 AStG when a shareholder leaves Germany, covering shareholding tests, deemed gain taxation, instalments, and extended limited tax liability.
Ships in openaccountants. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Figures are for tax year 2026. This Guide covers the German side only: the exit tax on company shares under § 6 of the Foreign Tax Act (Außensteuergesetz, AStG) and the extended limited tax liability under § 2 AStG that can follow a move to a low-tax country. It reads the current consolidated text on gesetze-im-internet.de, which applies to income tax from the 2022 assessment year onwards (§ 21(1) AStG). Departures before 1 January 2022 follow the old wording of § 6 (§ 21(3) AStG) and are out of scope. This is a working paper for review, not a filed return.
The rules of the arrival country must be checked separately. For a move to the United Arab Emirates, see ae-tax-residency. For a move to Switzerland, use germany-to-switzerland-cross-border-tax, which covers the Swiss side and the German rules for commuters and weekly stayers; this Guide stops at its edge. For a German sale of shares while still resident, see de-capital-gains. For a comparison of exit taxes in several countries, see exit-taxes-when-a-family-moves. For general German tax planning, see germany-tax-optimization.
| Item | Value | Note | Source |
|---|---|---|---|
| Prior period of full tax liability | at least seven years in total within the last twelve years before the trigger | "innerhalb der letzten zwölf Jahre vor den in Absatz 1 Satz 1 Nummer 1 bis 3 genannten Tatbeständen insgesamt mindestens sieben Jahre unbeschränkt steuerpflichtig" | https://www.gesetze-im-internet.de/astg/__6.html |
| Instalments | seven equal yearly instalments, on application | "kann auf Antrag des Steuerpflichtigen in sieben gleichen Jahresraten entrichtet werden" | same |
| Return window | seven years from the end of full tax liability | "innerhalb von sieben Jahren seit Beendigung der unbeschränkten Steuerpflicht wieder unbeschränkt steuerpflichtig" | same |
| Extension of the return window | at most five years in total, on application | "insgesamt um höchstens fünf Jahre verlängern, wenn die Absicht zur Rückkehr unverändert fortbesteht" | same |
| Distribution limit | more than one quarter of the value at exit | "deren gemeiner Wert insgesamt mehr als ein Viertel des Werts im Sinne des Absatzes 1 beträgt" | same |
Who. Only natural persons. The seven-year test counts years of full tax liability under § 1(1) EStG, in total, not in a row. Where the shares were received free of charge, the full tax liability of the giver (and of each earlier giver in a chain of free transfers) is added, and years in which both were fully taxable count only once. A person whose earlier exit tax lapsed because they came back is treated as covered without the seven-year test, and so is their direct or indirect successor (§ 6(2) sentence 4 AStG).
Which shares. Shares within § 17(1) sentence 1 EStG. § 17(1) sentence 3 defines them: shares (Aktien), GmbH shares, profit participation rights (Genussscheine) and similar participations, rights to acquire such shares, and shares in a company that opted to be taxed as a corporation under § 1a KStG. Shares in a cooperative also count (§ 17(7) EStG). § 6(1) AStG applies subject to the rules of the Income Tax Act, the Corporation Tax Act and the Reorganisation Tax Act, so shares held as business assets need a separate check (see "When to refuse or refer").
Recent free acquisition: combined-source interpretation. Read § 6(1) AStG's reference to § 17(1) sentence 1 EStG together with § 17(1) sentence 4, which expressly applies sentence 1 to the following predecessor case. If the relevant share was acquired free of charge within the five years before the deemed disposal, a holder who did not personally meet the 1% test must still be tested where the predecessor, or an earlier predecessor in a chain of free transfers, met that participation test within the relevant five-year period under sentence 1. Record the acquisition and each relevant transfer date, direct/indirect holdings and the predecessor's qualifying holding dates. A recent gift or inheritance of a 0.5% share therefore does not fail solely because the current holder never reached 1%, if the qualifying predecessor test is met. This is a separate shareholding rule from the residence-period aggregation in § 6(2) AStG; all other person, trigger and tax-chain conditions still apply.
| Item | Value | Note | Source |
|---|---|---|---|
| Ordinary personal minimum shareholding, directly or indirectly, at any time within the last five years; recent free acquisitions also use the predecessor rule above | 1% | "innerhalb der letzten fünf Jahre am Kapital der Gesellschaft unmittelbar oder mittelbar zu mindestens 1 Prozent beteiligt war" | https://www.gesetze-im-internet.de/estg/__17.html |
| Allowance against the gain, the part matching the share sold | EUR 9,060 | "soweit er den Teil von 9 060 Euro übersteigt, der dem veräußerten Anteil" | same |
| The allowance is reduced by the amount by which the gain exceeds the part matching the share sold of | EUR 36,100 | "um den der Veräußerungsgewinn den Teil von 36 100 Euro übersteigt" | same |
The triggers (§ 6(1) AStG). Each of these counts as a sale of the shares at fair market value:
After the event, the shares count as acquired at fair market value by the person (or, after a free transfer, by the successor) only to the extent the tax on the gain has been paid; otherwise they keep the original acquisition cost (§ 6(1) last sentence AStG).
The deemed sale is a sale under § 17(1) EStG, and § 17(1) sentence 1 makes that gain income from business (Einkünfte aus Gewerbebetrieb). The gain is the amount by which the sale price, after sale costs, exceeds the acquisition cost (§ 17(2) sentence 1 EStG); for § 6 AStG the sale price is the fair market value. Acquisition cost includes incidental costs and later costs such as open or hidden capital contributions (§ 17(2a) EStG). Under § 3c(2) EStG, this acquisition cost is itself deductible only at the share in the § 3c table below, not in full: its second half-sentence reaches "die Anschaffungs- oder Herstellungskosten ... mindernd zu berücksichtigen sind", not only sale costs.
| Item | Value | Note | Source |
|---|---|---|---|
| Tax-free share of the sale price or fair market value within § 17(2) EStG (partial-income method, § 3 no. 40 letter c) | 40% | "40 Prozent a) der Betriebsvermögensmehrungen oder Einnahmen aus der Veräußerung"; letter c: "des Veräußerungspreises oder des gemeinen Werts im Sinne des § 17 Absatz 2" | https://www.gesetze-im-internet.de/estg/__3.html |
| Item | Value | Note | Source |
|---|---|---|---|
| Share at which sale costs, other linked costs, and the acquisition cost used to compute the gain may be deducted (§ 3c(2) sentence 1) | 60% | "bei der Ermittlung der Einkünfte nur zu 60 Prozent abgezogen werden; Entsprechendes gilt, wenn bei der Ermittlung der Einkünfte der Wert des Betriebsvermögens oder des Anteils am Betriebsvermögen oder die Anschaffungs- oder Herstellungskosten oder der an deren Stelle tretende Wert mindernd zu berücksichtigen sind." | https://www.gesetze-im-internet.de/estg/__3c.html |
The allowance in the § 17 table above is not a flat amount. It is the part of that amount that matches the share of the company being taxed, and it falls by the excess of the gain over the matching part of the taper amount, so for a large holding it is usually gone. Tax rates and the solidarity surcharge are not repeated here; see de-einkommensteuer-freelancer for the tariff.
Events that make the rest due at once. The tax not yet paid falls due within one month after any of these:
The quarter test is a total, not a yearly test. A GmbH owner who plans to take large dividends after leaving should check it before the first payout.
If the end of full tax liability rests on an absence that is only temporary, and the person becomes fully taxable in Germany again within seven years of leaving, the exit tax lapses. It lapses only to the extent that all three of these hold:
A transfer on death to a natural person does not break condition 1, if that person (or a later heir by death) meets the conditions. The tax office that was competent when the person left (§ 19 AO) may extend the seven years, on application, by at most five years in total, if the intention to return still exists. The same rules apply where the trigger was a restriction of Germany's taxing right caused by a temporary absence, and where shares were given to a natural person who becomes fully taxable in Germany within seven years of the gift.
Payment in return cases. Where a return is planned, the tax is deferred for the period the tax office grants. On application, no instalments are collected. Beyond the five events above, the tax falls due within one month after an event that means the tax can no longer lapse, or after the person tells the tax office they no longer intend to return. If the tax does not lapse and the person chose not to pay instalments, interest is charged for the deferral period under § 234 AO (§ 6(4) last sentences AStG).
| Item | Value | Note | Source |
|---|---|---|---|
| Applies only in years when the income caught by § 2 is in total more than | EUR 16,500 | "insgesamt beschränkt steuerpflichtigen Einkünfte mehr als 16 500 Euro betragen" | https://www.gesetze-im-internet.de/astg/__2.html |
| Low-tax test: model taxable income of an unmarried resident of the other territory | EUR 77,000 | "die ein steuerpflichtiges Einkommen von 77 000 Euro bezieht, um mehr als ein Drittel geringer" | same |
| Substantial interest: limited partner's share of the partnership's income, more than | 25% | "mehr als 25 Prozent der Einkünfte im Sinne des § 15 Abs. 1 Satz 1 Nr. 2" | same |
| Substantial interest: German-source income as a share of all income, more than | 30% | "im Veranlagungszeitraum mehr als 30 Prozent ihrer sämtlichen Einkünfte betragen oder 62 000 Euro übersteigen" | same |
| Substantial interest: German-source income exceeds | EUR 62,000 | "mehr als 30 Prozent ihrer sämtlichen Einkünfte betragen oder 62 000 Euro übersteigen" | same |
| Substantial interest: German-source assets as a share of all assets, more than | 30% | "mehr als 30 Prozent ihres Gesamtvermögens beträgt oder 154 000 Euro übersteigt" | same |
| Substantial interest: German-source assets exceed | EUR 154,000 | "mehr als 30 Prozent ihres Gesamtvermögens beträgt oder 154 000 Euro übersteigt" | same |
Who (§ 2(1) AStG). A natural person who, in the ten years before their full tax liability ended, was fully taxable in Germany as a German (als Deutscher) for at least five years in total, AND who:
A person who was not German during those years is not caught by the wording.
Low tax (§ 2(2) AStG). Either test is enough:
Under both tests, the person escapes the low-tax finding by proving that the taxes they pay on their total income are at least two thirds of the income tax they would owe if fully taxable in Germany.
Substantial economic interests (§ 2(3) AStG). Any one of these is enough:
Interests held through a foreign company within § 5 AStG count in proportion to the holding (§ 2(4) AStG).
How long. Until ten years have passed after the end of the year in which full tax liability ended.
Which income. Beyond normal limited tax liability, all income under § 2(1) sentence 1 first half-sentence EStG that would not be foreign income under § 34d EStG if the person were fully taxable. Income not earned through a foreign permanent establishment or a permanent representative abroad is treated as belonging to a deemed German place of management. The whole § 2 rule applies only in years when that income is in total more than the amount in the table above.
Rate and cap. The tax rate is the rate on all the person's income worldwide, leaving out investment income taxed at the separate flat rate of § 32d(1) EStG (§ 2(5) AStG). If the person proves that § 2 leads to more German tax than they would owe if fully taxable and living only in Germany, the excess is not collected (§ 2(6) AStG).
All facts here are hypothetical. Anna is a German citizen. She has lived in Germany all her life and owns all the shares in a German GmbH, which she founded with a hypothetical capital contribution of 25,000 euros. In 2026 she gives up her German home and moves to Dubai. A valuation puts the shares at a hypothetical fair market value of 2,000,000 euros on the day she leaves.
ae-tax-residency for the UAE side. If both hold, her income that would not be foreign income under § 34d EStG is taxed under § 2 for the ten years after 2026, in each year it is in total above the § 2 threshold in the table above.name: DE exit tax 2026, Case 1 Anna, taxable deemed gain under the partial-income method
inputs:
value: 2000000
cost: 25000
allowance_full: 9060
allowance_taper: 36100
steps:
- gain: value - cost
- taxable_before_allowance: pct(value, 60) - pct(cost, 60)
- allowance: max(0, allowance_full - max(0, taxable_before_allowance - allowance_taper))
- taxable: taxable_before_allowance - allowance
expected:
gain: 1975000.00
taxable_before_allowance: 1185000.00
allowance: 0.00
taxable: 1185000.00
name: DE § 17(3) allowance, 100% holding, gain EUR 40,000
inputs:
gain: 40000
steps:
- reduction: max(0, gain - 36100)
- allowance: max(0, 9060 - reduction)
- taxable: gain - allowance
expected:
allowance: 5160.00
taxable: 34840.00
name: DE partial-income method, 60% of sale price less 60% of cost
inputs:
price: 100000
cost: 60000
steps:
- taxable_price: price * 0.60
- deductible_cost: cost * 0.60
- gain: taxable_price - deductible_cost
expected:
gain: 24000.00
ae-tax-residency; for Switzerland see germany-to-switzerland-cross-border-tax.| Source | URL | Read on |
|---|---|---|
| Read for § 6(1) triggers, § 6(2) seven of twelve years, § 6(3) seven-year return window and five-year extension, § 6(4) seven instalments and the one-quarter distribution limit, § 6(5) reporting by 31 July | https://www.gesetze-im-internet.de/astg/__6.html | 2026-11-14 |
| Read for § 2(1) to (6) AStG: EUR 16,500 threshold, EUR 77,000 low-tax model, 25%, 30%, EUR 62,000 and EUR 154,000 substantial-interest tests | https://www.gesetze-im-internet.de/astg/__2.html | 2026-11-14 |
| Read for § 21(1) and (3) AStG, application from the 2022 assessment year | https://www.gesetze-im-internet.de/astg/__21.html | 2026-11-14 |
| Read for § 17(1) 1% test and predecessor rule, § 17(2) gain, § 17(3) EUR 9,060 allowance and EUR 36,100 taper | https://www.gesetze-im-internet.de/estg/__17.html | 2026-11-14 |
| Read for § 3 no. 40 letter c, 40% exempt | https://www.gesetze-im-internet.de/estg/__3.html | 2026-11-14 |
| Read for § 3c(2), 60% deduction of costs and acquisition cost | https://www.gesetze-im-internet.de/estg/__3c.html | 2026-11-14 |
Selected § 6(1) to (2) AStG and § 17(1) EStG clauses were also read on 2026-10-29 for the predecessor share test; the combined-source interpretation is labelled above.
Not yet confirmed: whether the § 3 no. 40 exemption and the § 17(3) allowance reach a § 6 AStG deemed gain is read from the wording chain, not from a BMF letter stating it in one sentence; no valuation method for fair market value is given.
This file is an AI skill (tax rules your AI follows) from OpenAccountants, copied on 2026-11-14. Rates, thresholds and deadlines change. For the current version of this skill, its official sources and the named accountant (if any) who stands behind it, call get_skill with slug leaving-germany-exit-tax on the OpenAccountants connector (https://www.openaccountants.com/connect), or read https://www.openaccountants.com/skills/leaving-germany-exit-tax. If neither is available, confirm every figure against the official source pages cited above before relying on it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
135 skills in this plugin
/administrative-obligations-for-employers-in-the-netherlandsHow an employer in the Netherlands registers for payroll taxes, onboards employees, keeps payroll records, issues payslips and annual statements, files and corrects the payroll tax return and retains records for tax year 2026./crypto-accountingHow to build a defensible cryptoasset transaction ledger for UK individual clients in tax year 2026/27, before any Capital Gains Tax or income tax computation. Covers collecting exchange and wallet data, the record HMRC expects for each transaction, stripping out transfers between the client's own wallets, crypto-to-crypto swaps as disposals, the same-day, 30-day and section 104 matching order, consistent sterling valuation, reconciling units to balances, how long to keep records, and what the Cryptoasset Reporting Framework means from 1 January 2026. The tax computation itself is in uk-crypto-tax./de-capital-gainsGerman tax on private investment income and gains for a resident individual, tax year 2026. Covers the 25% flat tax (Abgeltungsteuer) with the 5.5% solidarity surcharge and the church-tax formula, bank withholding (Kapitalertragsteuer), the Sparer-Pauschbetrag of EUR 1,000 or EUR 2,000, the share-loss pot and the general pot, loss certificates, funds and ETFs (Teilfreistellung, Vorabpauschale, Basiszins), large holdings of 1% or more under § 17 with the partial-income method, private sales under § 23 (one-year and ten-year rules, the EUR 1,000 Freigrenze), the Günstigerprüfung and Anlage KAP. Trigger on: Abgeltungsteuer, Kapitalertragsteuer, Sparer-Pauschbetrag, Freistellungsauftrag, Verlustbescheinigung, Teilfreistellung, Vorabpauschale, Spekulationsfrist, sell shares Germany, German capital gains. Out of scope: crypto detail (de-crypto-tax), the exit tax (leaving-germany-exit-tax), non-residents (de-non-resident-tax), treaty withholding (de-treaty-withholding-rates), assets in a businpx claudepluginhub openaccountants/openaccountants --plugin openaccountantsOther plugins' skills for the same job