Anlage KAP, KAP-INV & SO
With an account at Interactive Brokers, Tastytrade or DEGIRO, almost all of your capital income goes into line 19 of Anlage KAP, with share gains and losses repeated in lines 20 and 23, the remaining losses in line 22 and the creditable withholding tax in line 41. Funds and ETFs do not belong there; they go on Anlage KAP-INV. For the tax years 2021 to 2024, options also use lines 21 and 24. Dividends of German shares with German tax withheld go on no line – see Dividends of German shares.
Why the effort: a German broker withholds the tax, which generally settles it. Interactive Brokers, Tastytrade and DEGIRO do not. Because no German tax was withheld, you have to declare this income yourself (§ 32d Abs. 3 EStG).
Which form for which income?
| Income | Form |
|---|---|
| Interest, dividends from individual shares, share gains and losses | Anlage KAP |
| Options, futures, writer premiums | Anlage KAP |
| Distributions, Vorabpauschale and sale gains of funds and ETFs | Anlage KAP-INV |
| Creditable foreign withholding tax (including on fund distributions) | Anlage KAP |
| Gains on non-interest-bearing foreign-currency balances, gold securities with a delivery claim (Xetra-Gold), directly held crypto | Anlage SO |
| Gains on interest-bearing foreign-currency balances (tax authorities' view, disputed) | Anlage KAP |
If you only hold funds, line 19 stays at €0.00 — you still file Anlage KAP, because the request for the Günstigerprüfung (lower personal rate), church tax and the withholding tax credit live there. If you are assessed jointly, each person files their own Anlage KAP for their own accounts; income from a joint account is usually attributed half to each.
Which lines of Anlage KAP stay empty?
Anlage KAP has two blocks for income: one for income that was subject to German withholding (lines 7 to 15), and one for income without German withholding (from line 18). In between, lines 16 and 17 hold the Sparer-Pauschbetrag. With a pure foreign-broker account the income lines of the first block usually stay empty – the exception is dividends of German shares that you declare in line 7 for the Günstigerprüfung or church tax (see Dividends of German shares). Line 18 (domestic capital income) is usually 0; whether income is domestic depends on the payer, though, not the broker (§ 34d Nr. 6 EStG). capi.tax enters gains, coupons and accrued interest of bonds from German issuers in line 18 — see Bonds and accrued interest. Dividends of German shares are usually already settled by German Kapitalertragsteuer and go on no line; only without German tax deducted does capi.tax put them in line 18 – see Dividends of German shares.
You do not deduct the Sparer-Pauschbetrag (§ 20 Abs. 9 EStG; from 2023 €1,000, €2,000 when assessed jointly; for 2021 and 2022 €801 and €1,602) from your income yourself. If a German bank has already used some or all of it through an exemption order (Freistellungsauftrag), you enter the amount used as the official instructions describe: in line 16 the amount that relates to income in lines 7 to 15, in line 17 the amount that relates to income that is not declared in Anlage KAP (0 if applicable). Line 17 has to be filled in as soon as lines 18 to 27 or Anlage KAP-INV contain amounts – then with 0 if applicable. If you have requested the Günstigerprüfung (line 4), you leave it empty. capi.tax outputs no values for lines 16 and 17; you work them out from your own exemption-order situation. The tax office applies the rest. If one spouse does not use their share when assessed jointly, it passes to the other (§ 20 Abs. 9 S. 3 EStG).
Anlage KAP 2025: which line for which amount?
The 2024 Annual Tax Act (JStG 2024) abolished the separate pot for forward transactions (§ 20 Abs. 6 S. 5 EStG old version), and with it the dedicated option lines: lines 21, 24 and 25 are gone ("frei") from the 2025 form, and nothing was renumbered. Lines 14 and 15 remain; they only take losses certified by a German bank and stay empty for a foreign-broker account. The Anlage KAP you file in 2026 is the one for tax year 2025 – its lines are listed here. capi.tax has not yet checked the forms for tax year 2026 (filed in 2027) against the line numbers below. This is how capi.tax maps your figures for tax year 2025:
- Line 19 — foreign capital income: the total of all income without German withholding. It is made up of interest, gross dividends (before withholding tax), the net result from options and futures, the net result from share sales, the net result from selling and redeeming bonds, the net result from other capital claims (such as ETCs and ETNs without a delivery claim) and the currency result of an interest-bearing foreign-currency balance (§ 20 EStG). Fund income and private disposals (§ 23 EStG) are not part of it.
- Line 20 — of which gains from selling shares: only the gains from share sales. They are already contained in line 19.
- Line 22 — of which losses other than share losses: all losses from options and futures, including written options (Stillhalter trades), and losses from bonds, from other capital claims (ETCs and ETNs without a delivery claim) and from interest-bearing foreign-currency balances — see bonds.
- Line 23 — of which losses from selling shares: all losses from share sales, as a positive amount. Losses from shares derecognised as worthless do not go into line 22 but additionally into line 23, according to the BMF letter of 14.05.2025 (§ 20 Abs. 6 S. 4 EStG).
Important: capi.tax does not detect worthless derecognitions of shares automatically, so they are not part of its figures for lines 19 and 23. Per the official 2025 instructions, such a loss reduces the net figure in line 19 and is also entered as a positive amount in line 23.
- Line 41 — creditable foreign taxes not yet credited: the withholding tax you may credit under the tax treaty, which is not necessarily the amount withheld (§ 32d Abs. 5 EStG). The creditable tax on fund distributions goes here as well; the tax office later limits the credit to your German tax, but you still enter the full sum. More under withholding tax.
- Line 42 — notional foreign withholding tax: tax that Germany credits under the treaty although it was not withheld (§ 32d Abs. 5 S. 2 EStG); in capi.tax currently for interest from Portugal. The line only appears when there is an amount.
"Of which" is the key: line 19 is a net figure of all income, gains and losses. Lines 20, 22 and 23, by contrast, are its un-netted components — gains and losses kept apart, not additional amounts. The tax office needs them separately because share losses may only be offset against share gains (§ 20 Abs. 6 S. 4 EStG). If line 20 exceeds lines 18 and 19 combined, ELSTER may reject the form as implausible — one more reason capi.tax counts share gains in line 19.
Anlage KAP 2021 to 2024: the option lines
For the tax years 2021 to 2024 the form has extra lines for forward transactions (lines 21 and 24) and for bad debts (line 25). Lines 19, 20, 23 and 41 work as above, but options are split differently:
- Line 21 — writer premiums and gains from forward transactions: all gains from options and futures. They are also contained in line 19.
- Line 22 — losses other than share and forward-transaction losses: for a foreign-broker account, mainly the loss on a written option you bought back at a higher price, and losses from bonds, from other capital claims (ETCs and ETNs without a delivery claim) and from interest-bearing foreign-currency balances. A Stillhalter trade is not a forward transaction (BMF letter of 19.05.2022, BStBl I 2022, 742, since replaced by the BMF letter of 14.05.2025), so it does not go in line 24 (exception: cash-settled options, see below).
- Line 24 — losses from forward transactions: losses from bought options and futures. Per the official instructions (2023 and 2024) they go exclusively here — so not into line 19, unlike every other loss. For 2021 and 2022 the same follows from the structure of the form.
- Line 25 — losses from bad debts and worthless write-offs: a separate item, contained in neither line 19 nor line 22. Per the official instructions (2022 to 2024), losses from the expiry of warrants and certificates belong here too; for 2021 the same follows from the structure of the form and the instructions, which send such losses to line 24 or 25. capi.tax enters the loss on a warrant or certificate that expired worthless only in line 25 for 2021 to 2024 (at IBKR recognised by the expiry code "Ep"). The tax does not change: the loss is still offset in the general loss pot. If you sell the warrant shortly before expiry at a tiny price, that is a sale (lines 19 and 22). Other bad debts, such as a defaulted bond, capi.tax does not detect; you enter those yourself. The same goes for shares derecognised as worthless: for these years they belong, per the official instructions (2023 and 2024), only in line 25, not in line 19 or 23. The loss on a bought option that expires worthless, by contrast, is shown by capi.tax as a forward-transaction loss in line 24 (2025: in line 22), not in line 25.
capi.tax does not apply the €20,000 cap on forward-transaction losses for these years either: the JStG 2024 repealed it for all cases still open. Details under loss offsetting.
If a cash-settled option you wrote (an index option, say) is assigned in the money, the cash settlement is a forward-transaction loss (BFH VIII R 55/13). capi.tax recognises it (Tastytrade "Cash Settled Exercise", IBKR assignment without share delivery) and books it separately from the premium received, without netting the two: the premium goes in line 21 and 19 like any writer premium, and the cash settlement as a loss in line 24 for 2021 to 2024 (not in line 19). From 2025 it reduces line 19 and is also listed in line 22.
Worked example: the same trades in 2024 and 2025
Suppose your year at a US broker looks like this (all values already converted to euros, example figures):
- Interest: €120.00
- Gross dividends: €800.00, of which €120.00 US withholding tax (15 %)
- Share sales: gains €3,000.00, losses €1,200.00
- Written options: gains €2,500.00, one loss of €400.00
- Bought options: one loss of €700.00
| Line | Tax year 2024 | Tax year 2025 |
|---|---|---|
| 19 | €4,820.00 | €4,120.00 |
| 20 | €3,000.00 | €3,000.00 |
| 21 | €2,500.00 | – |
| 22 | €400.00 | €1,100.00 |
| 23 | €1,200.00 | €1,200.00 |
| 24 | €700.00 | – |
| 41 | €120.00 | €120.00 |
How line 19 comes about:
- 2024: 120 + 800 + (3,000 − 1,200) + (2,500 − 400) = €4,820.00. The loss on the bought option (€700) appears only in line 24.
- 2025: 120 + 800 + (3,000 − 1,200) + (2,500 − 400 − 700) = €4,120.00. Both option losses also appear in line 22: 400 + 700 = €1,100.00.
Anlage KAP-INV: funds and ETFs
Income from investment funds without German withholding goes on Anlage KAP-INV — including many US ETFs, which are generally investment funds under the InvStG. The line tells the tax office the fund type, and from that it deducts the partial exemption itself. That is why you enter gross amounts. If you entered a €1,000 equity-fund gain already reduced to €700, the tax office would take another 30 % off and tax only €490.
| Fund type (partial exemption) | Distributions | Vorabpauschale | Sale |
|---|---|---|---|
| Equity fund (30 %) | line 4 | line 9 | line 14 |
| Mixed fund (15 %) | line 5 | line 10 | line 17 |
| Real-estate fund (60 %) | line 6 | line 11 | line 20 |
| Foreign real-estate fund (80 %) | line 7 | line 12 | line 23 |
| Other funds (0 %) | line 8 | line 13 | line 26 |
The 2022 and 2023 forms have no Vorabpauschale lines (lines 9 to 13 "frei"): the base rate (Basiszins) for 2021 and 2022 was negative, so a Vorabpauschale for those years is always €0 (§ 18 Abs. 4 InvStG).
The sale lines hold one net figure of gains and losses per fund type. A loss is shown with a minus sign in the line and is entered that way – unlike the loss lines of Anlage KAP, which are entered without a sign.
Important: capi.tax does not model legacy units bought before 01.01.2018. They are deemed newly acquired on 01.01.2018 at the redemption price of 31.12.2017 (§ 56 Abs. 2 S. 2, Abs. 3 InvStG). On a sale, the notional gain up to the end of 2017 goes in a line of its own (line 16 for equity funds); units bought before 2009 also get a €100,000 allowance (line 15 for equity funds). capi.tax uses the actual purchase cost instead — for such units the figure in the sale line is then wrong, and you have to work it out yourself.
A year's Vorabpauschale belongs on the return for the following year — see Vorabpauschale.
Fund units that have become worthless are not entered in Anlage KAP-INV. According to the KAP-INV instructions (2023, 2025) you report them on the informal sheet "Ergänzende Angaben zur Steuererklärung" and enter a 1 in line 37 of the main form ESt 1 A. capi.tax outputs no values for this.
The broker data does not say which fund type applies. You set it in capi.tax under Adjustments › Tax category.
Important: A fund whose fund type capi.tax does not know is treated provisionally as an other investment fund (no partial exemption) and shown under Review as an assumption; Looks right confirms it, Tax category changes it. Its income then goes on Anlage KAP-INV, in the lines for "other investment funds". A Vorabpauschale is missing until you record it. Settle the fund type of every fund before you copy figures over.
When do you need Anlage SO?
Shares, options and funds never go on Anlage SO. It covers private disposals of other assets (§ 23 EStG) — with a foreign broker, mainly three cases:
- Non-interest-bearing foreign-currency balances: dollars you hold in the account and part with at a gain within a year — by converting them into euros or another currency or, on the prevailing view, simply by buying a dollar security with them. For an interest-bearing balance, the tax authorities instead treat the result as capital income on Anlage KAP; that view is disputed. See currency gains.
- Gold securities with a delivery claim such as Xetra-Gold that you sell within a year. See Xetra-Gold & gold ETCs.
- Crypto you hold directly and sell within a year.
A €1,000 exemption threshold (from 2024, €600 before) applies to all private disposals of the year combined (§ 23 Abs. 3 S. 5 EStG). It is all-or-nothing: a gain of €999.99 stays entirely tax-free; from €1,000 the full amount is taxable.
How capi.tax shows the figures for Anlage SO: on the Forms tab, the “Anlage SO – private disposals (§ 23 EStG)” section combines the result of non-interest-bearing foreign-currency balances and of gold securities with a delivery claim, with one exemption threshold for both. For 2021 to 2025 it gives the line and the amount: the total result before the exemption limit, a loss too, in the line for further disposals per separate statement (2021 and 2022 line 49, 2023 and 2024 line 55, 2025 line 59, code 116, spouse / person B: 117). The tax office applies the exemption limit. The sales list is the separate statement; the line and the list are also in the export. capi.tax does not fill in or submit any form – you transfer the values yourself. See Xetra-Gold & gold ETCs.
capi.tax calculates currency gains only for Interactive Brokers (including LYNX and CapTrader). The “Currency gains” section shows them per currency; the result of an interest-bearing balance (§ 20) is already inside Anlage KAP lines 19 and 22. For Tastytrade and DEGIRO capi.tax calculates no currency gains. capi.tax recognises gold securities with a delivery claim only by an ISIN on a short list (Xetra-Gold, EUWAX Gold II), so at Interactive Brokers and DEGIRO. A Tastytrade export has no ISIN. There, and for any other product with a delivery claim, you map the symbol under Adjustments › Tax category to “Private disposal (§ 23 EStG, e.g. Xetra-Gold)”. capi.tax does not support directly held crypto: crypto trades in a Tastytrade export are skipped, and you get a processing notice about it. Anything capi.tax does not calculate (such as crypto or other accounts) is not in the total, but it counts towards the exemption threshold.
Where do you find the figures in capi.tax?
In your results, open the Forms tab. It lists the amount per line for the tax year you selected, with the Anlage KAP-INV and Anlage SO – private disposals sections below. Click a line to see what the amount is made of; click a part to open its bookings in a side panel, which leads on to the audit trail or the transactions. The copy icon next to the amount copies it so you don't have to retype it. More in Forms tab. The audit trail shows how capi.tax formed the results, see export. capi.tax does not offer tax years before 2021, because their line numbers are not verified.
Related questions
- Do I pay tax on line 20 on top of line 19?
- Do I enter dividends gross or net?
- Do these line numbers apply to later years too?
See also: How these figures are derived and checked: Method & sources.