Currency gains (§ 23 and § 20)

Gains on foreign-currency balances can be taxable — which rule applies depends on whether the balance earns interest. For a non-interest-bearing balance, § 23 EStG applies: dispose of the dollars at a gain within a year — by converting them back into euros or, on the prevailing view, simply by buying a dollar security with them — and it is a private disposal for Anlage SO; after more than a year, or below the €1,000 threshold, it stays tax-free. For an interest-bearing balance, by contrast, the tax authorities treat the result as capital income with no holding period. For Interactive Brokers, capi.tax calculates both and shows you which rule applies; it includes the result of an interest-bearing balance in the Anlage KAP and shows the other one for Anlage SO. For Tastytrade it does not calculate currency gains.

What is a currency gain — and what is not?

A currency gain arises on dollars sitting as a balance in your account: you acquire them at one rate and part with them at another. No currency trade is needed for that — your securities trades move the balance too:

  • Acquiring dollars: you convert euros into dollars, or you sell a dollar security and receive the proceeds in dollars.
  • Parting with dollars: you convert dollars back into euros, or you pay for a dollar security with dollars already in the account.

If the dollars are worth more euros when you part with them than when you acquired them, the difference is a currency gain; otherwise it is a loss. That securities trades count here is the prevailing view, and it is how capi.tax calculates (more below).

Keep that apart from the exchange-rate effect inside your securities trades. When you buy and sell a US share, each trade is converted to euros at the rate of its own day (§ 20 Abs. 4 S. 1 EStG). If the dollar rises between purchase and sale, that effect is already inside the share's euro result, and so on Anlage KAP. You do not need to add anything for it. How the conversion works is under currency conversion.

Example: you only trade shares

You convert euros into dollars once and from then on only trade US shares (non-interest-bearing balance, example rates in USD per euro, no fees):

Date Transaction Share (Anlage KAP) Dollar balance (Anlage SO)
02.01.2024 €10,800 converted into 11,880 USD (1.10) – 11,880 USD acquired for €10,800.00
01.03.2024 Share A bought for 11,880 USD (1.08) Cost €11,000.00 11,880 USD disposed of for €11,000.00: +€200.00
01.10.2024 Share A sold for 12,936 USD (1.12) Proceeds €11,550.00: +€550.00 12,936 USD acquired for €11,550.00
02.12.2024 Share B bought for 12,936 USD (1.10) Cost €11,760.00 12,936 USD disposed of for €11,760.00: +€210.00
  • Every share purchase disposes of dollars, every share sale acquires dollars. The valuation uses the same euro amount the share trade has on Anlage KAP — converted at the rate of the day.
  • Nothing is counted twice. How the dollar moves while your money is in the share is part of the share result. How it moves while the money sits as dollars in the account is the currency gain. Together that makes €200 + €550 + €210 = €960 — exactly the growth from €10,800 to €11,760.
  • The one-year period does not help here. The dollars only sat in the account for a few months each time. Dollars that stay in the account for more than a year give a tax-free result; under FIFO the oldest dollars are used up first.
  • The threshold can help. The €410 currency gain is below €1,000 and stays tax-free — provided you had no other private disposals in 2024; their gains and losses count too. The result still belongs on Anlage SO, before the threshold: the tax office applies it. The amount and the line are on the Forms tab in the "Anlage SO – private disposals" section.
  • No dollar balance, no currency gain. If your broker converts on every order (such as DEGIRO with AutoFX), no dollars sit in the account. If you buy a US share at Interactive Brokers without enough dollars, the balance turns negative. That is a loan, and taking out and repaying a loan is neither an acquisition nor a disposal (BFH, judgment of 30.11.2010, VIII R 58/07).
  • For an interest-bearing balance, this example gives the same amounts on the authorities' view, but as capital income on Anlage KAP with no holding period or threshold. That is what the next section covers.

Interest-bearing or not: which rule applies?

Important: Interest-bearing foreign-currency balances are a special case. The tax authorities do not assign currency gains and losses on interest-bearing foreign-currency balances to § 23, but to capital income (§ 20 Abs. 2 S. 1 Nr. 7, Abs. 4 S. 1 EStG; BMF letters of 19.05.2022 and 14.05.2025, each at para. 131). On that view there is neither a holding period nor an exemption threshold, every deposit and interest credit counts as an acquisition, and the result belongs on Anlage KAP. Whether this is right is disputed: the Finance Court of Rhineland-Palatinate has expressed serious doubts (order of 08.10.2025, 4 V 1436/25); a ruling by the Federal Fiscal Court (BFH) is pending.

Interactive Brokers pays interest on dollar balances depending on the balance and account size. capi.tax treats a balance as interest-bearing as soon as credit interest was paid on it in the year — even a few cents are enough. With a § 20 classification, every currency result of the year goes into line 19 or 22 without a Freigrenze. Which view you follow is best clarified with a tax advisor.

For a non-interest-bearing balance, § 23 with its one-year period still applies. That is what the following sections cover.

When are currency gains taxable? (non-interest-bearing balance)

For tax purposes, foreign currency is an "other asset", much like gold. A gain is taxable if no more than one year passes between acquisition and disposal (§ 23 Abs. 1 S. 1 Nr. 2 EStG). The typical cases:

  • Acquisition: you convert euros into dollars, for example through a currency trade such as EUR.USD at Interactive Brokers, or you receive dollars from a securities sale.
  • Disposal: you convert dollars back into euros, or you buy a dollar security with dollars you already hold. Converting dollars into another foreign currency disposes of the dollars and at the same time acquires the new currency (BFH, judgment of 21.01.2014, IX R 11/13).

For a conversion this is clear-cut. That securities purchases and sales count too is the prevailing view: buying a dollar security with existing dollar cash is an exchange and so disposes of the dollars, and the proceeds of a securities sale are an acquisition. Dividends and interest, by contrast, are income, not an acquisition. This is not judged entirely uniformly; if in doubt, clarify the treatment with a tax advisor. capi.tax calculates according to the prevailing view.

The period runs by calendar date, not 365 days: acquire on 15.03.2024 and a disposal on 15.03.2025 is still taxable, on 16.03.2025 no longer.

When are currency gains tax-free? (non-interest-bearing balance)

Two routes lead to tax-free treatment:

  1. The one-year holding period: if more than a year passes between acquiring and disposing of the dollars in question, the gain is tax-free — however large.
  2. The exemption threshold: if your total gain from all private disposals in a year is below €1,000, it stays tax-free (§ 23 Abs. 3 S. 5 EStG). Up to and including 2023 the threshold was €600.

The threshold is not an allowance. Reach €1,000 and the full gain is taxable, not just the part above it. All private disposals count towards it together, including crypto or gold. For married couples it applies to each person separately.

Losses from private disposals may only be offset against gains from such disposals — not against share gains or dividends (§ 23 Abs. 3 S. 7 and 8 EStG). A remainder can be carried back to the previous year or forward to later years.

Which dollars count as disposed of first?

If you acquired dollars at different times — by converting or from securities sales — the law assumes the amounts acquired first are disposed of first (§ 23 Abs. 1 S. 1 Nr. 2 S. 3 EStG) — the FIFO principle, as with securities. Each tranche runs its own holding period.

For a conversion, what counts are the euros actually paid and received (§ 23 Abs. 3 S. 1 EStG). You only need a reference rate when a transaction has no euro side — such as buying or selling a US share: then its euro value at the rate of the day counts.

Example (non-interest-bearing balance, example rates):

  • 01.03.2024: buy 5,000 USD at 1.0850 USD/EUR
  • 01.09.2024: buy 5,000 USD at 1.1050 USD/EUR
  • 15.04.2025: convert 6,000 USD back at 1.1300 USD/EUR

Under FIFO, the first 5,000 USD come from the March tranche. They were held for more than a year, so their result is tax-free. The remaining 1,000 USD come from the September tranche and were disposed of within the period:

  • paid: 1,000 ÷ 1.1050 = €904.98
  • received: 1,000 ÷ 1.1300 = €884.96
  • Result: −€20.02, a loss under § 23 EStG

Worked example: below and above the threshold

On 15.02.2024 you convert euros into 10,000 USD at 1.0800 USD/EUR and on 10.10.2024 back at 1.0400 USD/EUR (non-interest-bearing balance, example rates):

  • paid: 10,000 ÷ 1.0800 = €9,259.26
  • received: 10,000 ÷ 1.0400 = €9,615.38
  • Gain: €356.12

If you had no other private disposals in 2024, that stays below the threshold and is tax-free.

The same with 40,000 USD:

  • paid: 40,000 ÷ 1.0800 = €37,037.04
  • received: 40,000 ÷ 1.0400 = €38,461.54
  • Gain: €1,424.50

Now the threshold is exceeded, and the full €1,424.50 is taxed at your personal rate. Had you converted the dollars back only after 15.02.2025, the gain would have been tax-free in both cases. Had the balance been interest-bearing, the gain would instead be capital income on the authorities' view, with no holding period and no threshold.

What capi.tax does here — and what it does not

For Interactive Brokers, capi.tax calculates your currency gains — from the CSV activity statement and the Flex XML export alike. You find them on the Forms tab in the "Currency gains" section, and the § 23 result also in the Anlage SO – private disposals section. The Overview names the section total in the row "Not included: Anlage SO (§ 23 EStG) · personal tax rate" and takes you there with Go to Anlage SO. The PDF, Excel and CSV exports include the currency gains too.

  • FIFO per currency: every dollar inflow becomes a tranche, every outflow uses up the oldest tranches first. The basis is currency trades such as EUR.USD, your securities purchases and sales, dividends, interest, fees, withholding tax, and deposits and withdrawals.
  • Valuation: for a conversion, the euros actually paid or received count, commission included. Everything else is valued at the Bundesbank rate of the day.
  • What counts as acquisition and disposal: a conversion into euros and buying a dollar security with dollar cash both dispose of the dollars. The proceeds of a securities sale are an acquisition. Dividends, interest and option premiums are income, not an acquisition: they form a tranche that produces no result under § 23. Fees and withdrawals use up tranches without a result.
  • Holding period: the one-year period is checked by calendar date (acquired 15.03.2024, disposed 15.03.2025: still taxable).
  • Classification: if credit interest was paid on a currency in a year, capi.tax treats that balance as interest-bearing for the whole year (§ 20, Anlage KAP) — even for a few cents; there is no de-minimis limit. Otherwise § 23 (Anlage SO) applies. Both results are calculated; the amount that matches the classification is the one applied. The other one is greyed out next to it; its (i) says: the result if the other rule applied.
  • Changing the classification: with Treat as § 23 or Treat as § 20 in the currency's row you set the classification yourself; Classify automatically undoes it. The change appears on the Adjustments tab and applies to the tax year only. If your file is no longer loaded, upload it again first.
  • Negative balance (margin loan): taking out and repaying a foreign-currency loan is neither an acquisition nor a disposal (BFH, judgment of 30.11.2010, VIII R 58/07). capi.tax calculates no result for it and names the debt at year end under Classification per currency.

Which amount goes where?

The table in the "Currency gains" section (Forms tab) shows both calculations per currency for checking; only the result that matches the classification counts. The section has no total of its own: the § 20 result is in line 19 of Anlage KAP, the § 23 result in the Anlage SO total. An amount only ever belongs on one form.

  • Anlage SO (column "Result § 23"): only if the currency is classified as non-interest-bearing does the result belong on Anlage SO. If it is classified as interest-bearing, the § 23 amount is shown for comparison only and is not entered on Anlage SO — the § 20 result on Anlage KAP is applied instead, so the same transaction is not counted twice. If you do not follow the authorities' view, switch the currency with Treat as § 23. The result within the one-year period belongs on Anlage SO — under private disposals of other assets, even if it is a loss. The tax office applies the exemption threshold to all private disposals of the year together. capi.tax therefore combines the result with gold securities with a delivery claim (such as Xetra-Gold) in the Anlage SO – private disposals section; if it differs from the total, the section also shows the value "After threshold, no other disposals". It only shows what applies if you have no other private disposals (such as crypto or another account). For Anlage SO, the total of that section counts – the § 23 result from the "Currency gains" section is included in it and does not come on top. The section also shows the line: 2021 and 2022 line 49, 2023 and 2024 line 55, 2025 line 59, code 116 (spouse / person B: 117), "Gewinne / Verluste aus weiteren Veräußerungen … laut gesonderter Aufstellung". It takes the total result before the threshold; the sales list serves as the separate statement. For other tax years capi.tax shows no line. See Xetra-Gold & gold ETCs.
  • Anlage KAP (column "Result § 20"): on the authorities' view the result belongs to foreign capital income in line 19; a loss also goes in line 22. More on the lines under Anlage KAP, KAP-INV & SO.
  • What capi.tax includes: the § 20 result is already in line 19 and, if it is a loss, in line 22 of the Anlage KAP above. It takes part in loss offsetting in the general loss pot – a loss also reduces share gains, dividends and derivative gains, an unused remainder is carried forward – and it is in the Tax as calculated shown. You do not add it again. The § 23 result is shown only in the "Currency gains" section and in the total of the "Anlage SO – private disposals" section: it is not in the Anlage KAP lines, the loss offsetting or the tax, so a § 23 loss does not reduce share gains. You transfer the total of the "Anlage SO – private disposals" section yourself to the Anlage SO line the section shows (see above).
  • Departing view: anyone who does not follow the authorities' view for an interest-bearing balance usually discloses this in the return. Whether that makes sense for you is something to clarify with a tax advisor.

When a notice appears

  • Currency debt: if you paid debit interest on the currency that year, the balance really was negative — a margin loan, and there is nothing to do. If your account existed before the first uploaded year, earlier years are more likely missing: upload them too.
  • Balance differs from IBKR: the calculated year-end balance does not match the forex balances in the statement — usually a year is missing. This check only exists for a CSV activity statement that runs to 31.12., not for Flex XML. So a missing notice on a Flex file means nothing.
  • Deposit in a foreign currency estimated: what transferred-in dollars cost you in euros is not in the export; capi.tax uses the Bundesbank rate of the deposit day. If you exchanged the dollars at another bank, its statement shows the actual price.
  • Interest-bearing foreign-currency balance: credit interest triggered the § 20 classification, see above.
  • Settlement possibly in the next year: for a sale on the last two bank business days of the year, settlement may fall in the next year. capi.tax counts the result in this year, by trade date; whether that is the booking that counts is an open question.

All notices at a glance: processing notices.

Tastytrade

capi.tax does not calculate currency gains for Tastytrade. The account is held in dollars, and how many euros the deposited dollars cost you is not in the export — your bank's statement shows the conversion. If Tastytrade pays credit interest on your balance (Credit Interest), the rule for interest-bearing balances applies on the authorities' view (§ 20, Anlage KAP, no holding period or threshold); otherwise § 23. You can work out the result yourself as in the example with shares: every share purchase from the balance disposes of dollars, and every sale's proceeds are an acquisition, tranche by tranche under FIFO.

DEGIRO

capi.tax does not calculate currency gains for DEGIRO (beta). DEGIRO converts currency on each order (AutoFX), so you usually hold no foreign balance. If your account does hold foreign currency, gains on it can fall under § 23 EStG (Anlage SO); you then work them out yourself. capi.tax tells you with a notice when your DEGIRO files contain foreign-currency amounts.

No tax advice - data preparation only — This tool prepares your transaction data and does not constitute tax advice. Calculations run automatically based on your broker exports. Responsibility for your tax return stays with you; for questions about your own case, a tax advisor or a Lohnsteuerhilfeverein can help. For liability, see § 6 of the terms.

Modern tax preparation
for German investors

Security

  • Financial data stays in your browser
  • No tax advice
  • Report a vulnerability: security@capi.tax

capi.tax is an independent tool and is not affiliated with, endorsed by or sponsored by any broker named here (Interactive Brokers, Tastytrade, DEGIRO / flatexDEGIRO, LYNX, CapTrader). Names and logos belong to their owners and are used only to identify the supported file formats.

© 2026 capi.tax – Data preparation tool. This is not tax advice. Consult a tax advisor for questions. · 4a5713e