Fee & Tax 
Fees and taxes represent costs that reduce your portfolio value. They are separate transaction types to distinguish between broker-charged costs and government-imposed obligations.
๐ Key Properties
| Property | Fee | Tax |
|---|---|---|
| Code | FEE |
TAX |
| Cash effect | โฌ๏ธ Decreases balance | โฌ๏ธ Decreases balance |
| Asset effect | โ | โ |
| Examples | Commission, custody fee, spread | Capital gains tax, withholding tax, stamp duty |
๐ Fee Types
| Fee Type | Description | Frequency |
|---|---|---|
| Trading commission | Per-trade cost charged by broker | Per transaction |
| Custody fee | Account maintenance charge | Monthly/Quarterly |
| Spread | Difference between bid and ask price | Implicit per trade |
| FX conversion fee | Cost of currency exchange | Per conversion |
| Management fee (TER) | ETF/Fund annual expense | Deducted from NAV |
๐ฐ Tax Types
| Tax Type | Description | When Charged |
|---|---|---|
| Capital gains tax | Tax on realized profit from selling | On sale |
| Withholding tax | Tax deducted at source (dividends, interest) | On payment |
| Stamp duty | Transaction tax (e.g., UK stamp duty) | On purchase |
| Financial transaction tax | Tax on trades (e.g., Italian Tobin tax) | On trade |
๐ Impact on Returns
Fees and taxes directly reduce your net return. The relationship between gross and net performance:
Where:
- \(R_{gross}\) = return before costs (what the market gave you)
- \(R_{net}\) = return after costs (what you actually keep)
- \(V_{start}\) = portfolio value at the start of the period
How LibreFolio attributes fees and taxes
A FEE / TAX linked to an asset is allocated to the specific lots it relates to and drives that
lot's net P&L / net return (see
FIFO Lot Analysis โ Costs & Net Metrics).
A cost with no asset (asset_id = null, e.g. a flat platform fee) is portfolio-level and is handled by
the Portfolio Engine instead โ it never lands on a single lot.
๐ Compounding Effect of Fees
Over long holding periods, even small recurring fees erode returns significantly due to compounding drag:
Where:
- \(V_0\) = initial investment
- \(r\) = annual gross return rate (e.g., 0.07 for 7%)
- \(f\) = annual fee rate (e.g., 0.01 for 1%)
- \(n\) = number of years
The 1% drag over 30 years
With $10,000 invested at 7% gross return:
- Without fees: $10,000 ร \((1.07)^{30}\) = $76,123
- With 1% fee: $10,000 ร \((1.06)^{30}\) = $57,435
The 1% annual fee costs you $18,688 โ a 26% reduction in final value.
๐ Related
- ๐ Returns & Growth Rates โ How returns are measured (gross vs net)
- ๐ฐ Taxation โ Comprehensive tax theory and tax efficiency
- ๐ Buy & Sell โ Trading commissions attached to transactions
- ๐ฑ FX Conversion โ Hidden FX spreads as implicit fees