A capital gain equals sale price minus purchase price minus eligible transaction costs (brokerage, legal fees, capital improvements). Short-term gains (held less than a year) are often taxed more heavily than long-term gains, and primary residences are usually partially or fully exempt.
Switzerland is unusual: private investors pay no federal capital gains tax on movable assets such as shares and ETFs, only on real estate (cantonal Grundstückgewinnsteuer). Germany levies a 25% Abgeltungsteuer plus solidarity surcharge on most investment gains, with a EUR 1,000 annual allowance. France applies a 30% flat tax (PFU) on most capital gains. Italy charges 26% on financial-asset gains and 26% on most real-estate gains held under five years.
Plan around holding periods and loss-harvesting. Many systems let you offset losses against gains in the same year (and carry them forward). Selling losers before year-end to reduce a taxable gain is a standard year-end tactic.
Capital gain = Sale price − Cost basis − Allowable expenses
A French investor sells EUR 50,000 of shares for EUR 80,000 after three years. The EUR 30,000 gain is taxed at the 30% PFU = EUR 9,000. A Swiss private investor with the same profit on listed shares pays zero CGT.