Cost Basis — How to Calculate Your Investment's Tax Base
Cost basis is the original value of an asset used to calculate capital gains taxes. Learn how to determine cost basis, FIFO vs average cost methods, and common adjustments.
Definition
Cost basis (also called tax basis) is the original value of an asset for tax purposes, typically the purchase price plus any associated costs (commissions, fees). When you sell an asset, your taxable capital gain or loss is calculated as the difference between the sale price and the cost basis.
Getting cost basis right is essential for accurate tax reporting. Overstating your cost basis means underpaying taxes (a legal risk). Understating it means overpaying taxes (lost money). For active investors with dozens of transactions across multiple brokers, tracking cost basis can become surprisingly complex.
How It Works
Basic calculation
Capital Gain = Sale Price − Cost Basis
Cost basis includes:
- Purchase price of the asset
- Brokerage commissions (buy and sell)
- Currency conversion costs (for cross-border investments)
- Transfer fees
Cost basis methods
When you buy the same asset at different times and prices, you need a method to determine which shares you're selling:
| Method | How It Works | Used In |
|---|---|---|
| FIFO (First In, First Out) | Oldest shares sold first | Poland (default), most of EU |
| LIFO (Last In, First Out) | Newest shares sold first | Rarely used in EU |
| Average Cost | Total cost / Total shares | UK (for funds), some brokers |
| Specific Identification | You choose which lot to sell | US (with broker support) |
FIFO example
| Transaction | Shares | Price per Share | Total Cost |
|---|---|---|---|
| Buy #1 (January) | 100 | EUR 50 | EUR 5,000 |
| Buy #2 (April) | 100 | EUR 70 | EUR 7,000 |
| Buy #3 (August) | 100 | EUR 60 | EUR 6,000 |
You sell 150 shares at EUR 80 each (EUR 12,000 total).
FIFO method:
- First 100 shares from Buy #1: cost EUR 5,000
- Next 50 shares from Buy #2: cost EUR 3,500
- Total cost basis: EUR 8,500
- Capital gain: EUR 12,000 − EUR 8,500 = EUR 3,500
Average cost method:
- Average price: (5,000 + 7,000 + 6,000) / 300 = EUR 60
- Cost basis for 150 shares: 150 x EUR 60 = EUR 9,000
- Capital gain: EUR 12,000 − EUR 9,000 = EUR 3,000
The method matters — EUR 500 difference in taxable gain.
Adjustments to cost basis
Several events change your cost basis:
| Event | Effect on Cost Basis |
|---|---|
| Stock split (2:1) | Halved per share, same total |
| Reverse split (1:5) | Quintupled per share, same total |
| Return of capital (dividend) | Reduced by the return amount |
| Reinvested dividends | Increased by reinvested amount |
| Corporate spin-off | Allocated proportionally |
| Inherited assets | Stepped up to date-of-death value (varies by country) |
Example
Cross-border complexity for a Polish investor:
Investor Karol buys and sells ETFs on the Xetra exchange (denominated in EUR):
| Date | Action | Shares | Price (EUR) | EUR/PLN Rate |
|---|---|---|---|---|
| 2024-03-15 | Buy | 50 | 72.00 | 4.30 |
| 2024-07-20 | Buy | 30 | 78.00 | 4.28 |
| 2025-02-10 | Sell | 40 | 85.00 | 4.22 |
Step 1: Calculate cost basis in PLN (FIFO) First 40 shares come from Buy #1: Cost = 40 x 72.00 x 4.30 = 12,384 PLN (using NBP rate from day before purchase)
Step 2: Calculate proceeds in PLN Proceeds = 40 x 85.00 x 4.22 = 14,348 PLN (using NBP rate from day before sale)
Step 3: Capital gain Gain = 14,348 − 12,384 = 1,964 PLN Tax (19%): 373 PLN
Note: The EUR/PLN rate change actually reduced the gain slightly (euro weakened from 4.30 to 4.22). If the euro had strengthened to 4.50, the gain would have been larger due to favorable currency movement.
Accumulating vs distributing ETF: An accumulating ETF reinvests dividends internally — no taxable event, no cost basis adjustment needed. A distributing ETF pays dividends that are taxed immediately. If you reinvest those dividends by buying more shares, your cost basis increases by the reinvested amount.
Why It Matters
Accurate tax reporting
In Poland, your broker issues a PIT-8C form with transaction details, but only for Polish brokers. Foreign brokers (Interactive Brokers, DEGIRO) do not issue PIT-8C — you must calculate cost basis yourself, convert to PLN, and file PIT-38 manually.
Tax optimization through lot selection
In jurisdictions allowing specific identification (US), you can choose to sell the highest-cost-basis shares first, minimizing your taxable gain. In Poland's FIFO system, you don't have this flexibility — but you can still plan around it by using separate accounts for different tax strategies.
Inherited assets
In many countries (including Poland for certain assets), inherited investments receive a "stepped-up" cost basis to the fair market value at the date of death. This eliminates all capital gains accumulated during the deceased's lifetime — a significant tax benefit for heirs.
Corporate actions
Stock splits, mergers, and spin-offs change your cost basis. Failing to adjust for a 2:1 split means you'll report double the actual gain when you sell. Most Polish brokers handle this automatically, but verify with foreign brokers.
Risks and Pitfalls
Lost records
If you cannot prove your cost basis, tax authorities may assume it is zero — meaning your entire sale proceeds are taxable. Keep trade confirmations, broker statements, and currency conversion records for at least 5 years (Poland's limitation period for tax audits).
Currency conversion complexity
Polish investors buying foreign ETFs must convert every transaction to PLN using the NBP exchange rate from the business day preceding the transaction. With dozens of buys and sells across multiple currencies, this becomes tedious but legally required.
Broker transfers
When you transfer shares from one broker to another, the receiving broker may not have your original cost basis. You need to provide it manually, or risk incorrect tax calculations when you eventually sell.
Drip (Dividend Reinvestment Plans)
Each dividend reinvestment creates a new tax lot with its own cost basis. Over 20 years of quarterly reinvestment, you may have 80+ separate lots. Tracking this manually is error-prone — use portfolio tracking tools.
Wash sale rules (international)
The US has a wash sale rule: if you sell at a loss and repurchase the same security within 30 days, the loss is disallowed and added to the new purchase's cost basis. Poland does not have this rule, making tax-loss harvesting simpler.
FAQ
Does Poland use FIFO or average cost?
Poland uses FIFO (First In, First Out) as the default method for securities. You cannot choose a different method. This means your oldest shares are always sold first, which may not be tax-optimal in all situations.
How do I calculate cost basis for inherited stocks?
In Poland, the cost basis for inherited securities is the value declared in the inheritance tax filing (usually market value at the date of death or estate settlement). Consult a tax advisor, as rules differ between intestate and testamentary succession.
What if my broker was acquired or shut down?
Request your full transaction history before any transition. If the broker ceases operations, your securities are held at a depository (KDPW in Poland, Clearstream/Euroclear in Europe) and can be transferred to another broker — but you must preserve cost basis records yourself.
Do I need to track cost basis for IKE/IKZE accounts?
No — gains within IKE/IKZE are tax-exempt (IKE) or taxed at a flat 10% on withdrawal (IKZE). You do not report individual transactions. Cost basis tracking is only necessary for taxable brokerage accounts.
Related Articles
- Compound Interest — how returns on your cost basis grow exponentially
- Yield — the return earned on your investment
- See the full financial dictionary for more terms
Want full control over your finances?
Try Freenance for free