⚠ Trading involves significant risk of loss. Everything on this site is for education only and is not financial advice.
Lesson 1 of 13 · Free

Abgeltungsteuer mechanics in detail: Solidaritätszuschlag, Kirchensteuer, how the bank withholds, FIFO and acquisition costs

Calculate the exact total tax rate with and without church tax, follow the bank's withholding steps and determine the taxable gain of a sale with the FIFO rule and acquisition costs.

Author: Moustafa HijaziContent reviewed: 2026-10-305 min readSelf-study course

What you will learn

  • How the 25 percent flat rate, the Solidaritätszuschlag and the Kirchensteuer combine into 26.375 percent, 27.82 percent or 27.99 percent.
  • The order in which a German bank processes a payment or a sale before it withholds tax.
  • How the FIFO rule and acquisition costs determine the taxable gain of a partial sale.
  • What the bank does when it does not know your purchase price (Ersatzbemessungsgrundlage).

Explanation

The basic idea of the Abgeltungsteuer (flat withholding tax on capital income) and the taxation of funds were covered in the course ETFs, Funds & Long-Term Investing. This lesson explains the mechanics behind the numbers on your statement. Everything is general orientation for private investors in Germany as of 2026; check the current rules and, for your own case, a Steuerberater (tax adviser).

The three layers of the rate. The Kapitalertragsteuer (capital-income tax) is 25 percent of the taxable amount. The Solidaritätszuschlag (solidarity surcharge, "Soli") is 5.5 percent of that tax, not of the income: 25 × 0.055 = 1.375 percent. Together: 26.375 percent. The income-tax Soli exemption threshold that applies to wages does not apply to withheld capital-income tax; the bank always withholds the full 5.5 percent.

Kirchensteuer (church tax) is 8 percent of the tax in Bavaria and Baden-Württemberg and 9 percent elsewhere. Because church tax is deductible as a special expense, the law builds the deduction into a reduced flat rate: tax rate = 1 / (4 + church-tax rate). With 9 percent: 1 / 4.09 = 24.45 percent; with 8 percent: 1 / 4.08 = 24.51 percent. Soli and church tax are then charged on this reduced tax. The all-in rates are therefore 27.99 percent (9 percent church tax) and 27.82 percent (8 percent). Banks query your church membership automatically at the Bundeszentralamt für Steuern (BZSt, federal central tax office) once a year.

What the bank does, in order. For every dividend, interest payment, distribution, Vorabpauschale or sale, the German custodian bank (the "auszahlende Stelle", paying agent) runs the same sequence: (1) it calculates the gross income or the gain; (2) it offsets losses from your loss pots (lesson 3); (3) it applies your Freistellungsauftrag (exemption order, lesson 2); (4) it credits creditable foreign withholding tax against the remaining German tax (lesson 7); (5) it withholds 25 percent plus Soli and church tax on what is left and pays it to the tax office under your name. The order matters: an allowance used up by foreign dividends can leave foreign withholding tax uncredited.

Acquisition costs and the FIFO rule. The taxable gain is: sale proceeds minus direct sale costs minus acquisition costs. Acquisition costs are the purchase price plus purchase fees (Anschaffungsnebenkosten). Other running costs such as custody fees or margin interest are not deductible for private investors; the Sparer-Pauschbetrag (saver's allowance) replaces all such expenses. When you sell part of a position bought in several lots, § 20 Abs. 4 EStG (Einkommensteuergesetz, income tax act) prescribes FIFO (first in, first out): the oldest units in that custody account (Depot) count as sold first. FIFO is applied per Depot, so transferring specific lots into a second Depot or sub-account is the accepted way to separate them.

Ersatzbemessungsgrundlage. If the bank does not know your acquisition costs, for example after a transfer from abroad without data, it taxes 30 percent of the sale proceeds as a substitute base. You correct this in the tax return with your purchase documents, so keep them.

Worked example

Hypothetical example: you hold 200 shares of one company in one Depot, bought in two lots. Your Freistellungsauftrag is already used up by other income. Spreads and later price changes are ignored.

Lot Units Price Fee Acquisition cost
Lot 1 (2021) 100 €40.00 €5.00 €4,005.00
Lot 2 (2023) 100 €60.00 €5.00 €6,005.00

You sell 150 shares at €70.00 with a €10.00 fee. Proceeds: 150 × €70 − €10 = €10,490.00.

FIFO cost: all of lot 1 (€4,005.00) plus half of lot 2 (50 × €60 + half of the €5 fee = €3,002.50). Total: €7,007.50.

Taxable gain: €10,490.00 − €7,007.50 = €3,482.50.

Without church tax: tax 25 percent = €870.63; Soli 5.5 percent of €870.63 = €47.88; total €918.51 (26.375 percent).

With 9 percent church tax: tax 24.45 percent = €851.47; Soli €46.83; church tax €76.63; total €974.93 (27.99 percent).

Without purchase data the bank would tax 30 percent of €10,490 = €3,147.00 instead, withholding €830.02, and you would have to prove the real cost in the tax return.

Common mistake

Thinking you can choose which lot you sellMany investors sell "the expensive lot" in their mind to realise a small gain, but the bank applies FIFO inside the Depot and taxes the oldest, usually cheapest, units. If lot selection matters, separate lots into different custody accounts before the sale, and keep the bank's confirmation of the transferred acquisition data.

Practice activity

On paper: an investor in Bavaria (8 percent church tax) bought 50 ETF units at €80 (fee €1) and later 50 units at €120 (fee €1), all in one Depot. She sells 60 units at €130 (fee €1). Her allowance is used up. Ignore the Teilfreistellung for this exercise. Calculate the taxable gain and the total tax.

Show solution

Proceeds: 60 × €130 − €1 = €7,799.00.

FIFO cost: 50 × €80 + €1 = €4,001.00 plus 10 × €120 + €1 × 10/50 = €1,200.20. Total €5,201.20.

Gain: €7,799.00 − €5,201.20 = €2,597.80.

Tax at 24.51 percent = €636.72; Soli 5.5 percent = €35.02; church tax 8 percent = €50.94; total €722.68 (about 27.82 percent).

Limitations: a real equity ETF would get a 30 percent Teilfreistellung on the gain, and the bank rounds each step to cents.

Key takeaways

  • The all-in rate is 26.375 percent without church tax, 27.82 percent with 8 percent and 27.99 percent with 9 percent church tax.
  • The bank offsets losses, applies the allowance, credits foreign tax and only then withholds.
  • Taxable gain = proceeds − sale fees − acquisition costs including purchase fees, with FIFO per custody account.
  • Keep purchase records: without them the bank taxes 30 percent of the proceeds.

Next step

Next, lesson 2 shows how to place your Freistellungsauftrag across banks so that the allowance is used where it saves the most.

Self-check

Answer the questions, then check your answers. You can retry as often as you like.

1. An investor pays 9 percent church tax. What total percentage of a taxable gain does the bank withhold (tax, Soli and church tax together)?

2. You bought 100 shares at €20 (fee €5) and later 100 shares at €30 (fee €5) in the same Depot. You sell 120 shares at €35 (fee €6). What is the taxable gain under FIFO?

3. Why does the sequence loss pots → Freistellungsauftrag → foreign tax credit matter?

Automatic self-check for your own revision. Your answers are checked in your browser and are not seen or assessed by us. It is not an exam and not a qualification.

Your progress

“Complete” only means you marked the lesson as done. It is not a test of your understanding. Progress and notes are saved only in this browser on this device — not in an account.