Interactive Brokers German Tax Return: A Guide to Anlage KAP
Interactive Brokers (IBKR) withholds no German flat-rate tax (Abgeltungsteuer, collected as Kapitalertragsteuer) for you and issues no German tax certificate. That means you have to declare all income from your IBKR account yourself in Anlage KAP (funds go in Anlage KAP-INV, private disposals such as Xetra-Gold on Anlage SO). This guide takes you from the export in the Client Portal to the number for each line.
In short:
- Export a Flex Query (
XML) for the tax year. You set it up once, quickly with IBKR's AI assistant – see Create the Flex Query. - A simple account with shares and ETFs only? Then the standard Activity Statement (
CSV) is often enough – see Which file should I use?. - Upload the file on capi.tax under Interactive Brokers. It is processed in your browser only and never sent to a server.
- The Forms tab shows the amount for each line, ready to copy into ELSTER.
Why you have to declare everything yourself with Interactive Brokers
A German bank is a domestic paying agent: it deducts 25 % capital gains tax plus solidarity surcharge at source, offsets losses in its loss pots and sends you an annual tax certificate. For most people, that settles the tax.
Interactive Brokers is not a domestic paying agent. Your account is held by a foreign entity (for EU clients usually Interactive Brokers Ireland). So there is:
- no tax withheld on capital gains, option premiums or interest,
- no exemption order (Freistellungsauftrag) — you only get the saver's allowance through your tax return,
- no loss offsetting by the broker and no loss certificate,
- no German tax certificate.
Because no German tax was withheld, you are required to report this income in your income tax return (§ 32d (3) EStG). The tax office then applies the 25 % flat rate (§ 32d (1) EStG) plus solidarity surcharge and church tax where applicable. The only deduction allowed is the saver's allowance (Sparer-Pauschbetrag) — actual costs such as account or market data fees are not deductible (§ 20 (9) EStG).
The only thing withheld is foreign withholding tax on dividends — by the company's home country, not by IBKR. It can be credited in Germany – see Withholding tax at Interactive Brokers. Exception: on dividends of German shares, German Kapitalertragsteuer is already withheld – see Dividends of German shares.
Does Interactive Brokers issue a German tax certificate?
No. An annual tax certificate (Jahressteuerbescheinigung, § 45a (2) EStG) is issued only by domestic institutions required to withhold Kapitalertragsteuer – IBKR is not one of them (see above). The Client Portal does offer several reports that look tax-related, but none of them replaces a German tax certificate:
- Tax documents such as Form 1042-S are US paperwork about US withholding. For Anlage KAP they are at most a cross-check of the US tax withheld.
- The informational tax report for German tax residents (under
Performance & Reports→Tax Documents) is explicitly not an official document. Use it as a sanity check; you remain responsible for the numbers. - The "Realized & Unrealized Performance" sections of the Activity Statement — the closest thing to a German annual income summary (Erträgnisaufstellung) — are in your base currency at IBKR's own rates and follow the lot-matching method set on your account. German tax law requires FIFO and converting every single trade at the rate of its day. IBKR's realized gains therefore often differ from your taxable result.
An official certificate is not required for your return either. It is based on your IBKR statements and a traceable calculation of your own, such as the capi.tax report. Keep the documents; the tax office can request them.
Step by step: from the export to Anlage KAP
- Create the export: a Flex Query (
XML) covering the full tax year – or, for a simple account, an Activity Statement (CSV). Instructions below. If you sold positions from earlier years, export those years too and upload them as well. If you earn interest, also upload a statement of the following year up to at least 10 January: it contains December's interest, which for tax purposes still belongs to the tax year – see January statement for December interest. - Upload: on capi.tax, choose Interactive Brokers and the tax year, then add the file. capi.tax matches sales by FIFO, converts at the Bundesbank rate and sorts each event into its tax category.
- Review: on Overview, step 1 Review lists what capi.tax assumed or what is missing from your files — for example a currency debt, corporate actions or funds without a fund type. Each row takes you to where you resolve it; if an assumption is right, confirm it with Looks right. More in Processing notices.
- Fill the gaps: set the fund type, add prior-year purchases capi.tax could not take over with Add purchase — see Adjustments.
- Transfer: the Forms tab lists the values per line for your tax year; the copy icon next to an amount copies it for ELSTER or your tax software.
- Save: export the report as a PDF — it contains the audit trail, and the file stays with you when the session ends.
Which file should I use?
For most accounts the Flex Query is the better choice: capi.tax reads more from it. For a simple account with shares and ETFs only, the Activity Statement (CSV) is enough.
Flex Query (XML) |
Activity Statement (CSV) |
|
|---|---|---|
| Setup | Once, quickly with IBKR's AI assistant | None |
| Stock splits | Carried forward when the ratio is readable | Not carried forward; capi.tax shows a notice |
| Financial transaction tax (France, Spain, Italy) | Added to the purchase automatically | Not read; capi.tax shows a notice |
| ISIN and multiplier (to recognise funds and gold) | On every trade | Only with the section Financial Instrument Information |
| Statement language | Doesn't matter | German or English, both are read |
The steps: Create the Flex Query or Activity Statement (CSV) for simple accounts.
Create the Flex Query
To create a new Flex Query, let IBKR's AI assistant set it up, or do it by hand. The steps use the names of IBKR's English interface; the German ones are in the table at the end.
With IBKR's AI assistant
In the Client Portal, open
Performance & Reports→Flex Queries→Configure Flex with AI.Paste this text into the field and click
Generate Flex Query:XML activity query, every available field selected in each section: Trades (Execution), Statement of Funds (Currency Breakout), Corporate Actions, Open Positions. Breakout by day: NoThe AI doesn't build the same query every time, so check the result against the table under By hand: the four sections with their options,
FormatXML,Breakout by Day?No. Then save the query and continue with Run and upload.
By hand
In the Client Portal, open
Performance & Reports→Flex Queries→Activity Flex Queryand enter anyQuery Name.Under
Sections, tick only these four. Each one opens a window: tick the option from the table and all fields.Section Option What capi.tax reads from it Trades Execution Purchases and sales Statement of Funds Currency Breakout Dividends, withholding tax, interest, financial transaction tax Corporate Actions Detail Splits, bond repayments Open Positions Summary Holdings at year end, for earlier years Under
Delivery Configuration, setFormattoXML. You pick the period when you run the query.Leave
General Configurationas it is.Breakout by Day?must stay atNo: withYes, the file holds one statement per day, which capi.tax can't read.Click
Continue, check the summary and clickCreate.
Run and upload
- Run the saved query. Under
Period, chooseCustom Date Rangeand enter 1 January to 31 December of the tax year (for the current year, up to yesterday). If you opened the account during the year, IBKR only lets the period start on the opening date. That's fine: capi.tax then calculates that period and names it in a notice. - Save the
XMLfile and upload it to capi.tax with Interactive Brokers as the broker. - If you earn interest, run the query again for 1 to at least 10 January of the following year and upload that file too: it contains December's interest.
Already have a Flex Query from another tool? You can upload its XML file as is, if Breakout by Day? is set to No. Its period should cover the whole tax year (1 January to 31 December; for the current year, up to the day before the export). If it covers only part of the year, capi.tax calculates that part and names the period in a notice. If the file belongs to another year entirely, or a setting is wrong, you get an error that names what to change. Flex files of other years that you upload as well – earlier years, or January of the following year for December's interest – are not checked against the tax year.
capi.tax adds financial transaction tax to the purchase of the same security on the same day, as part of the acquisition costs (§ 20 (4) EStG); for options and futures it is part of the result of the Termingeschäft, on the purchase and on the sale.
IBKR in German
| English interface | German interface |
|---|---|
| Performance & Reports | Performance & Berichte |
| Configure Flex with AI | Mithilfe von AI konfigurieren |
| Activity Flex Query, Query Name | Kontoumsatz-Flex-Query, Query-Name |
| Sections | Abschnitte |
| Trades → Execution | Trades → Ausführung |
| Statement of Funds → Currency Breakout | Kapitalflussrechnung (Statement of Funds) → Währungsaufschlüsselung |
| Corporate Actions → Detail | Kapitalmaßnahmen → Detail |
| Open Positions → Summary | Offene Positionen → Gesamtübersicht |
| Delivery Configuration | Zustellungskonfiguration |
| General Configuration | Allgemeine Konfiguration |
| Breakout by Day? → No | Aufschlüsselung nach Tagen? → Nein |
| Continue, Create | Weiter, Erstellen |
| Period → Custom Date Range | Zeitraum → Benutzerdefinierter Zeitraum |
Activity Statement (CSV) for simple accounts
The standard Activity Statement needs no setup. Use it if your account holds only shares and ETFs, without stock splits or financial transaction tax in the tax year – see Which file should I use?.
Where to find the export
- Log in at interactivebrokers.com and open the Client Portal (also called Account Management).
- In the menu, go to
Reports, thenStatements. - Choose the
Activitystatement. It is the comprehensive report that lists trades, dividends, interest and fees together.
Choose the right settings
Before you generate the statement, set three things:
- Period: choose
Annualand the tax year you are preparing. A full calendar year from January to December gives capi.tax almost everything it needs; only December's interest is booked by IBKR in January – for that, also upload a second statement for January, see January statement for December interest. - Format: choose
CSV. Don't pick Excel or PDF, even though those can open a CSV too. Only the plainCSVfile can be read. - Sections: include all of them so trades, dividends, withholding tax, interest and fees are complete. If you hold bonds, capi.tax needs the sections
Corporate Actions(German:Kapitalmaßnahmen) andFinancial Instrument Information(German:Finanzinstrument-Informationen) for their repayment at maturity. With all sections they are included; if you use your own statement template, check that both are ticked. With a Flex Query, bonds need nothing extra. capi.tax needs theFinancial Instrument Informationsection even without bonds: in the CSV, only this section carries the ISIN, which capi.tax uses to recognise funds and gold securities such as Xetra-Gold (see Xetra-Gold & gold ETCs). So keep it ticked.
The statement can be German or English: capi.tax recognises both the German sections (Transaktionen, Dividenden, Quellensteuer, Zinsen) and the English ones (Trades, Dividends, Withholding Tax, Interest).
capi.tax does not read financial transaction tax (for example from France, Spain or Italy) from the CSV yet. If it appears in the Transaction Fees section, you get a notice about it. On a purchase it is part of the acquisition costs; for Italian derivatives it is also part of the selling costs on a sale (§ 20 (4) EStG). With a Flex Query capi.tax assigns it automatically; a line that cannot be matched to a trade on the same day is reported with its amount in euros.
Generate and download
- Click
Runto build the statement. For large accounts this can take a minute or two. - When the download link appears, save the
CSVfile to your computer. - On capi.tax, choose Interactive Brokers as the broker and upload that file.
January statement for December interest
IBKR books December's interest only in early January; for tax purposes it still belongs to the tax year (see Interest). If you earn interest, create a second export for 1 to at least 10 January of the following year. With a Flex Query, run it again for that period (see Run and upload). With the Activity Statement:
- Again
Reports→Statements→Activity, formatCSV. - Period:
Custom Date Rangefrom 1 to at least 10 January of the following year – or, once January is over,Monthlywith January of the following year. - Upload the file on capi.tax together with the annual statement (Add another file). For the tax year, capi.tax takes only the December interest from it; January's trades and income count in the following year.
The two files do not overlap, so you will not get a "year in several files" notice. If the January statement is missing, capi.tax points this out with a notice.
What goes where: Anlage KAP and KAP-INV
Almost all income from your IBKR account belongs in the Anlage KAP block for capital income not subject to German withholding. The lines for already-taxed income stay empty. The line numbers below are for the 2025 form; capi.tax shows you the matching lines for every year from 2021. The exception is dividends of German shares that you declare in lines 7, 37 and 38 for church tax or the Günstigerprüfung – see Dividends of German shares. Private disposals (§ 23 EStG) do not go in Anlage KAP but on Anlage SO.
| What | Tax rule | 2025 form |
|---|---|---|
| Shares: gains and losses | § 20 (2) sentence 1 no. 1 EStG | Net in line 19; gains also in line 20, losses in line 23 |
| Options and futures (Termingeschäfte), option-writer premiums | § 20 (2) sentence 1 no. 3, § 20 (1) no. 11 EStG | Net in line 19; losses also in line 22 |
| Dividends (gross, before withholding) | § 20 (1) no. 1 EStG | Line 19; German shares with German tax deducted: no line (for church tax or the Günstigerprüfung lines 7, 37, 38), see Dividends of German shares |
| Credit interest, bond coupons, accrued interest | § 20 (1) no. 7 EStG | Line 19 (bonds of German issuers: line 18) |
| Bonds and T-bills: sale and repayment | § 20 (2) sentence 1 no. 7 EStG | Net in line 19 (German issuers: line 18); losses also in line 22 |
| ETCs and ETNs without a delivery claim (e.g. iShares Physical Gold) | § 20 (2) sentence 1 no. 7 EStG | Net in line 19; losses also in line 22 |
| Gold securities with a delivery claim (Xetra-Gold, EUWAX Gold II) and currency gains on non-interest-bearing balances, only if sold within one year | § 23 (1) sentence 1 no. 2 EStG | Anlage SO, line 59 (2023 and 2024: line 55; 2021 and 2022: line 49), code 116 (spouse / person B: 117): total before the exemption threshold, see Xetra-Gold & gold ETCs |
| Creditable foreign withholding tax | § 32d (5) EStG | Line 41 |
| ETFs and funds: distributions, sales, Vorabpauschale | §§ 16, 18, 19 InvStG | Anlage KAP-INV, by fund type |
A few points that come up a lot with IBKR:
- Option writing: if you sell options, the premium received is income in its own right (§ 20 (1) no. 11 EStG). For tax purposes it counts in the year you receive it (§ 11 (1) EStG; BMF letter of 14 May 2025, para. 25), a buyback in the year you pay for it. capi.tax assigns this itself, also across the year end: if the option is still open on 31 December, its premium counts in the year you wrote it; if you wrote it last year and bought it back this year, only the buyback counts here. Details in Options & option writing.
- Losses on derivatives: the former €20,000-a-year cap (§ 20 (6) sentence 5 EStG old version) was repealed by the Annual Tax Act 2024 for all open cases. For 2021 to 2024 the form still asks for derivatives on separate lines (21 and 24); capi.tax fills them for those years.
- Share losses stay in their own pot: they can only be offset against share gains (§ 20 (6) sentence 4 EStG). Whether this restriction is constitutional is currently before the Federal Constitutional Court (2 BvL 3/21, referred by the BFH in VIII R 11/18). See Loss offsetting.
- Margin interest: margin interest you pay counts as expenses, which are not deductible beyond the saver's allowance (§ 20 (9) EStG). capi.tax therefore leaves it out of Anlage KAP and does not net it against your credit interest.
- Withholding tax: the creditable amount is not necessarily the amount withheld – see Withholding tax at Interactive Brokers.
- Funds and ETFs go into Anlage KAP-INV gross, split by fund type; the tax office deducts the partial exemption itself. You set the fund type in capi.tax because no IBKR export contains it.
- Xetra-Gold and EUWAX Gold II are recognised by capi.tax by their ISIN as a private disposal (§ 23 EStG): taxable only if sold within one year, at your personal tax rate instead of the flat rate. If you lend the securities through IBKR's securities lending programme, the period can extend to ten years (§ 23 (1) sentence 1 no. 2 sentence 4 EStG); capi.tax does not detect this. See Xetra-Gold & gold ETCs.
A worked example
Say your IBKR account shows these results for 2025, already converted to euros (example values):
- share sales at a gain: €2,000.00; at a loss: €900.00
- premiums from expired written puts: €1,800.00; one put bought back at a loss: €300.00
- one bought call that expired worthless: €500.00 loss
- US dividends of €1,000.00 gross, of which €150.00 US withholding (15 %)
- credit interest €120.00, margin interest €80.00
For the 2025 form, that gives:
- Line 19: 120.00 + 1,000.00 + (1,800.00 − 300.00 − 500.00) + (2,000.00 − 900.00) = €3,220.00
- Line 20: €2,000.00 (share gains)
- Line 22: 300.00 + 500.00 = €800.00 (option losses)
- Line 23: €900.00 (share losses)
- Line 41: €150.00 (creditable withholding tax)
The €80.00 margin interest appears nowhere. The tax office applies the saver's allowance and computes the tax.
For 2024 the same account looks different, because the loss on the bought call goes exclusively into line 24: line 19 = 120.00 + 1,000.00 + (1,800.00 − 300.00) + 1,100.00 = €3,720.00, line 21 = €1,800.00, line 22 = €300.00, line 24 = €500.00.
Withholding tax at Interactive Brokers
Withholding tax on dividends is deducted by the country where the company is based, not by IBKR. You'll find it in the Activity Statement in the Withholding Tax (Quellensteuer) section. With a valid W-8BEN, the US withholds 15 % on dividends, which is fully creditable. If 30 % was withheld, still only 15 % is creditable. capi.tax shows the creditable amount in line 41, not the amount withheld; the dividend itself goes gross in line 19 (see What goes where). The credit also never exceeds the German tax on that income: if the saver's allowance covers it, the credit lapses — it cannot be carried forward. More in Withholding tax.
Conversion at the Bundesbank rate
IBKR settles in US dollars, your tax office works in euros. The law requires foreign-currency amounts to be converted at the time of each transaction (§ 20 (4) sentence 1 second half-sentence EStG). The usual practice, accepted by the tax authorities, is to use the ECB reference rates published by the Deutsche Bundesbank. capi.tax converts every buy, sell, dividend and interest payment individually at the rate for its trade date. Example: a buy for USD 10,850.00 at 1.0850 USD/EUR = €10,000.00; a sale for USD 13,200.00 at 1.1000 USD/EUR = €12,000.00; taxable gain €2,000.00 — even though the dollar difference is USD 2,350.00. More in Currency conversion.
FIFO at Interactive Brokers
If you sell part of a position, the shares bought first count as sold first for tax purposes (§ 20 (4) sentence 7 EStG). Whatever lot method you set at IBKR (such as "Maximize Losses") doesn't matter here. capi.tax always applies FIFO, separately per security — see The FIFO method.
What capi.tax does not cover yet
So you know where you have to step in:
- Corporate actions (spin-offs, mergers) are reported but not applied (capi.tax does not recognise them from the broker rows); stock splits in the Flex query with a readable ratio are carried forward, in the CSV they are not. Exception: capi.tax calculates a bond's repayment at maturity as a sale – see Bonds and accrued interest. You can record spin-offs and mergers yourself in the Adjustments tab; for other actions, check later sales of the affected securities yourself — see Corporate actions.
- Currency gains on foreign-currency cash are computed (FIFO per currency, for the CSV activity statement and the Flex XML alike) and shown on the Forms tab in the “Currency gains” section. The § 20 result (interest-bearing balance) is included in the Anlage KAP lines and in loss offsetting. capi.tax shows the § 23 result (Anlage SO) together with gold securities such as Xetra-Gold in the Anlage SO – private disposals section, with the Anlage SO line and the total you transfer; the exemption threshold applies to both together. Upload earlier years too. Because IBKR may pay interest on dollar balances, besides § 23 EStG (Anlage SO) the disputed view of the tax authorities on interest-bearing balances (Anlage KAP) matters too. See Currency gains.
- Purchases from earlier years: if you sell shares in 2025 that you bought in 2023, upload the 2023 and 2024 statements as well. capi.tax checks the history against the "Open Positions" of your newest statement and takes over the holdings – see Upload earlier years. Without the earlier years the trade is listed under Sales without a purchase and stays out of the tax until you add the purchase with Add purchase.
- Several accounts: calculate each account on its own and add up the line values yourself.
Common mistakes
- Copying the realized gain from the IBKR report — it follows neither FIFO nor the Bundesbank rates.
- Forgetting option premiums, because they don't show up as a "sale".
- Entering dividends net instead of gross and leaving the withholding tax out of line 41.
- Putting funds into Anlage KAP instead of KAP-INV, or entering amounts after the partial exemption — then it is deducted twice.
- Deducting margin interest, account or data fees — not allowed for capital income (§ 20 (9) EStG). Commissions on buys and sells, by contrast, do count (§ 20 (4) sentence 1 EStG; BMF letter of 19 May 2022, para. 93).
- Overlapping exports: if you split a year across several files, their periods must not overlap. If two files overlap, capi.tax reads that year from only one of them.
LYNX, CapTrader, WH SelfInvest, MEXEM and other introducing brokers
If you are with Interactive Brokers through LYNX, CapTrader, WH SelfInvest, MEXEM or another introducing broker, your account technically sits at IBKR and your statement comes from the same system. LYNX and CapTrader have their own choice on capi.tax and their own guides; for all others you choose Interactive Brokers: LYNX and CapTrader.