Home / Guides / Bookkeeping

Bookkeeping · 6 min read

Shares and ETFs in a GmbH or holding: how to book the brokerage account

Booking securities in a German GmbH: purchase, sale, dividend, withholding tax, § 8b KStG, ETF partial exemption and year-end valuation, with SKR accounts.

ContentsWhy the brokerage account breaks the bookkeeping
  1. Why the brokerage account breaks the bookkeeping
  2. The accounts: what goes where
  3. The tax: three worlds
  4. One year in the holding: €5,390 income, €294.45 tax
  5. Year-end valuation and foreign currency
  6. Withholding tax
  7. The brokerage account in AlphaCount
  8. Frequently asked questions

Whoever holds shares and ETFs in a GmbH or holding needs two answers per security: how it enters the balance sheet and how it is taxed. Here are the accounts, the three tax cases and one year of a brokerage account worked through.

Why the brokerage account breaks the bookkeeping

Anyone holding shares in their holding or GmbH knows this: the broker sends an annual statement with hundreds of lines, foreign currency, partial fills, withholding tax and corporate actions. The bookkeeping software knows none of it. So you collect PDFs, the tax advisor books one lump entry "securities" months later, and the split into § 8b, partial exemption and portfolio holdings happens in a spreadsheet only one person understands.

The alternative is usually a separate tool just for the account. Tax reporting for business brokerage accounts costs, according to the provider, around €1,695 a year in the base tier with the investment tax and withholding tax modules, on top of the bookkeeping. For a small holding receiving a few thousand euros of dividends a year, that is absurd.

The accounts: what goes where

TransactionSKR03SKR04
Shares and ETFs in current assets1348 Sonstige Wertpapiere1510 Sonstige Wertpapiere
Securities in fixed assets (long-term)05250900
Gain on sale of shares (§ 8b)27264906
Loss on sale of shares (§ 8b)23266906
Dividend from shares (current assets, § 8b(1) and (4))26557103
Distribution of a fund or ETF26547115
Capital gains tax withheld22137630
Foreign withholding tax22197639
Write-down on shares in current assets (§ 8b)48767214
Broker fees49706855

Keep the cash at the broker as a money account of its own per currency. Transfers between bank and broker are not income, just money in transit.

The tax: three worlds

Gains on shares: 95 % exempt

If the GmbH sells shares at a gain, the gain is tax-free under § 8b(2) KStG; 5 % of it counts as a non-deductible expense (§ 8b(3) sentence 1). This applies whatever the GmbH's stake, so also to 100 Apple shares. With roughly 30 % tax on company profit, about 1.5 % remains in effect.

The flip side: losses on shares and write-downs on them are not deductible for tax (§ 8b(3) sentence 3 KStG). In the balance sheet they are an expense; in the tax return they are added back.

Dividends from portfolio holdings: almost fully taxable

For dividends, the 95 % exemption only applies if the GmbH holds at least 10 % of the distributing company at the start of the calendar year (§ 8b(4) KStG). With listed shares that is practically never the case. The dividend is then fully subject to corporate income tax. For trade tax the threshold is even 15 % at the start of the assessment period (§ 9 no. 2a GewStG); below it the dividend is added back under § 8 no. 5 GewStG.

ETFs and funds: partial exemption

§ 8b does not apply to investment funds. Instead, 80 % of the income from equity funds is tax-free if the investor is subject to corporate income tax (§ 20(1) sentence 3 InvStG); for mixed funds, half of that. For trade tax the partial exemption counts only by half, so 40 % for equity funds. This covers distributions, gains on sale and the advance lump sum (Vorabpauschale).

One year in the holding: €5,390 income, €294.45 tax

IncomeAmountCorporate tax baseTrade tax baseTax
Gain on shares€3,990.00€199.50 (5 %)€199.50€59.50
Portfolio dividend€400.00€400.00€400.00€119.30
ETF distribution€1,000.00€200.00 (80 % exempt)€600.00 (40 % exempt)€115.65
Total€5,390.00€294.45

Privately, the same income would have cost €1,342.49 with flat-rate withholding tax and solidarity surcharge (26.375 %), for the ETF already after the 30 % partial exemption. The difference is no gift: the money sits in the company. When you distribute it to yourself, you pay tax on the distribution. How that adds up is shown in Setting up a holding.

Year-end valuation and foreign currency

At the balance sheet date you check every position in current assets: if the price is below cost, you write down (§ 253(4) HGB). If it rises later, you write back up, at most to cost (§ 253(5) HGB). For shares the write-up is tax-free under § 8b(2) KStG, just as the write-down does not count for tax.

Purchases in dollars are translated at the rate on the day of the trade. Foreign currency balances at the broker are valued at the balance sheet date under § 256a HGB: with a remaining term of up to one year, gains count too; otherwise only losses.

Withholding tax

Foreign dividends arrive with withholding tax deducted, for US shares typically 15 % with form W-8BEN-E, otherwise 30 %. You book the amount on withholding tax (2219 / 7639). Whatever exceeds the treaty rate can be reclaimed from the source state; that is a receivable, not an expense. The rest you credit against corporate income tax (§ 26(1) KStG) or deduct. For fully taxable portfolio dividends the credit usually pays off, but that is a decision for your tax advisor.

The brokerage account in AlphaCount

In our own company structure, the brokerage account was exactly where no bookkeeping software could keep up. Instead of paying for a second tool at over a thousand euros a year, we built it in: AlphaCount fetches the movements from Interactive Brokers by Flex query or reads them from a file (Flex XML, CSV, PDF) for any other broker. Every position is kept with lots; purchases, sales, dividends, withholding tax and fees are booked and classified for tax per security: single share with § 8b, ETF with partial exemption, portfolio holding as a portfolio holding. At year end AlphaCount works out the valuation under the lower of cost or market rule and the tax reconciliation per financial year, which your tax advisor checks. The choice between crediting and deducting withholding tax stays with you and your tax advisor. More under Holding bookkeeping and Integrations.

Frequently asked questions

Are capital gains in a GmbH tax-free?
Gains from selling shares are 95 % tax-free under § 8b(2) KStG, whatever the size of the holding. 5 % count as non-deductible expenses, about 1.5 % tax in effect. § 8b does not apply to ETFs; the partial exemption of the InvStG does.
Why are dividends from single shares almost fully taxable in a GmbH?
If the GmbH holds less than 10 % of the company at the start of the year, the dividend is fully subject to corporate income tax under § 8b(4) KStG, and below 15 % trade tax adds it back. With ordinary listed shares that is practically always the case.
Can the GmbH offset losses on shares?
Losses from selling shares and write-downs on them do not reduce taxable profit (§ 8b(3) sentence 3 KStG). In the commercial balance sheet they are still an expense. That is the flip side of the exemption.
Do I have to revalue securities at year end?
Yes. Securities in current assets are written down to the lower market price at the balance sheet date (§ 253(4) HGB); if the price rises later, they are written back up to cost at most. Gains above cost only show when you sell.
Who books withholding tax on US dividends?
Withholding tax is a tax expense of the GmbH. The part above the treaty rate can be reclaimed from the source state; the rest can be credited against corporate income tax or deducted. Which way fits is a decision for you and your tax advisor.

Sources

As of 24 November 2026. General information, not tax advice for your individual case. Whether a rule fits your case is for your tax advisor to decide.

Read on

More from the guides.

Invoicing and dunning in Germany: from quote to paid invoice, without spreadsheets

Invoicing and dunning under German law: required details, default, late-payment interest 2026, the €40 flat charge, dunning levels and bookkeeping.

Read

Two-tier holding in Germany: what the second level brings, what it costs and what you have to book

Two-tier holding in Germany: what the second level saves in tax, what each company costs and which bookkeeping and returns it adds.

Read

Amazon bookkeeping in Germany: split the payout, fees with input VAT, get the VAT right

Booking Amazon settlements: why the payout is not revenue, fees at 19 % since August 2024, a record per sale, the DAC7 reconciliation. With a worked example.

Read
+3,000 credits (€120) as a gift
Launch deal until 31 Dec
Claim a seat