Track Capital Gains and Investment Taxes
TL;DR
- ▸Unrealized gains are paper profits on open positions — no tax until you sell. Realized gains are taxable at the moment of sale.
- ▸Tax-loss harvesting: intentionally sell positions at a loss to offset realized gains and reduce your tax liability for the year.
- ▸Cost basis method (FIFO, LIFO, Average, Specific ID) determines which shares are "sold" and directly affects your taxable gain.
- ▸DonkyCapital consolidates capital gains across all brokers into one unified report for accurate, stress-free tax planning.
- ▸View gain/loss per position, asset class, broker, or total portfolio — updated in real time with every transaction import.
For active investors, taxes on capital gains can be the single largest drag on net portfolio returns — often larger than management fees, trading costs, or even poor stock selection. Yet most portfolio trackers treat tax reporting as an afterthought, offering at best a raw transaction list and leaving investors to figure out their tax exposure manually at year-end. Knowing your realized and unrealized gains in real time lets you make dramatically smarter decisions: timing sales to fall in lower-tax periods, planning tax-loss harvesting before December, selecting the cost basis method that minimizes taxable income, and avoiding surprise tax bills.
This guide explains in depth how DonkyCapital helps you track realized and unrealized capital gains, understand and apply different cost basis methods (FIFO, LIFO, average cost), execute tax-loss harvesting efficiently, and consolidate your capital gains report across multiple brokers into one clear, actionable view.
1. Realized vs Unrealized Gains — Why the Distinction Matters
Understanding the difference between realized and unrealized gains is the foundation of investment tax planning. An unrealized gain (or unrealized loss) is the increase (or decrease) in value of a position you still hold — it exists only on paper and has absolutely no tax consequence until you sell. A position can show a large unrealized gain of €50,000 and you owe zero tax as long as you do not sell. A realized gain is what occurs the moment you sell an asset at a price higher than your cost basis — this is the event that triggers a taxable transaction in most jurisdictions. DonkyCapital displays both types with complete clarity. Unrealized gains on open positions show your current potential tax exposure if you were to liquidate — useful for planning purposes. Realized gains show exactly what you have crystallized during the current tax year and will need to declare. The dashboard updates in real time as you import transactions: when you record a sale, DonkyCapital immediately reclassifies that position's gain from unrealized to realized and adds it to your year-to-date realized gain total. This live view prevents year-end surprises where investors discover they owe more tax than anticipated because they did not track their realized gains throughout the year. For investors in jurisdictions with different tax rates for short-term vs long-term gains, DonkyCapital also tracks the holding period for each position and classifies gains accordingly.
2. Tax-Loss Harvesting: Turning Losers Into Tax Savings
Tax-loss harvesting is one of the most powerful and underutilized tax strategies available to individual investors. The core principle is simple: if you have realized gains elsewhere in your portfolio during the year, you can intentionally sell positions currently sitting at a loss to "harvest" those losses and use them to offset your gains — reducing or eliminating your net capital gains tax liability for the year. For example, if you have realized €8,000 of capital gains from selling a well-performing position, and you also hold a position currently showing an unrealized loss of €3,000, you could sell that losing position to offset €3,000 of your gains, reducing your taxable capital gain to €5,000. The critical practical challenge of tax-loss harvesting is identifying suitable candidates quickly — especially as year-end approaches and you are simultaneously trying to evaluate dozens of open positions. DonkyCapital makes this straightforward: the unrealized loss view shows every position currently in negative territory, sorted by loss magnitude, alongside the current cost basis and the precise tax saving you would realize by selling. The wash-sale rule (in the US) prohibits repurchasing the same or substantially identical security within 30 days of selling at a loss — if you want to maintain exposure to that asset class, you need to buy a different but similar ETF or security during the 30-day window. DonkyCapital's position timeline helps you track these windows efficiently.
3. Cost Basis Methods: FIFO, LIFO, Average Cost, and Specific Identification
When you have built up a position through multiple purchases at different prices over time, and you sell only a portion of your shares, a fundamental question arises: which shares are considered sold? The answer to this question has a direct and sometimes dramatic effect on your taxable capital gain. FIFO (First In, First Out) assumes that the shares you bought first are the ones you sell first — creating a larger taxable gain in a rising market since older shares typically have a lower cost basis. LIFO (Last In, First Out) assumes the most recently purchased shares are sold first — resulting in a smaller gain or even a loss when recent purchases were made at higher prices. Average Cost uses the weighted average price of all your purchases, providing a consistent and simple approach. Specific Identification is the most tax-efficient method when you can select exactly which lot to sell: you manually specify which purchase lot is being sold to optimize for the tax outcome — for example, selling your highest-cost lot to minimize the taxable gain. DonkyCapital supports all major cost basis methods and shows you a side-by-side comparison of the gain/loss impact of each approach before you record a sale — allowing you to make an informed, tax-optimal decision at the time of the transaction rather than discovering the tax consequence later.
4. Tracking Capital Gains Across Multiple Brokers
The complexity of capital gains tracking multiplies significantly when you hold the same asset — or the same type of asset — across multiple brokers. Consider an investor who has built up a position in a global ETF over several years across DeGiro, Scalable Capital, and a retirement account at a third broker. Each broker tracks its own partial position with its own cost basis records, its own CSV export format, and its own transaction history. Without consolidated cross-broker tracking, you cannot calculate your true total cost basis for that ETF, cannot correctly identify which lot you are selling when you sell from one broker, and cannot accurately measure your total realized or unrealized gain for tax planning purposes. DonkyCapital consolidates all your positions and complete transaction histories from all imported brokers into a single unified capital gains view. The platform aggregates your cost basis across all lots regardless of which broker holds them, calculates your true total unrealized gain for every position, generates a year-to-date realized gain/loss report covering all brokers simultaneously, and shows you your effective tax exposure at the total portfolio level. This cross-broker capital gains report is one of the most time-saving features DonkyCapital offers for investors approaching tax season, eliminating the need to manually reconcile broker statements or run separate gain/loss calculations in spreadsheets.
5. How DonkyCapital Displays Gain/Loss Data
Effective capital gains tracking requires data presented at multiple levels of granularity simultaneously — and DonkyCapital's gain/loss dashboard is designed with this layered view in mind. At the position level, every open position shows: current market value, total cost basis, absolute unrealized gain or loss in your base currency, percentage unrealized return, and the holding period since the first purchase. At the asset class level, DonkyCapital aggregates unrealized gains by category (equities, bonds, REITs, etc.) so you can see which asset classes contribute most to your current tax exposure. At the broker level, you can see realized and unrealized gains broken down by broker account — useful when different brokers offer different tax reporting or withholding treatments. At the portfolio level, a summary dashboard shows total unrealized gain, total realized gain year-to-date, and the combined capital gains report for the full portfolio. You can toggle between absolute values and percentage returns, and filter by date range to see realized gains in any custom period. The realized gain/loss summary is updated immediately every time you import new transactions, meaning you can check your tax position at any point during the year rather than waiting for year-end broker statements.
Frequently Asked Questions
Does DonkyCapital calculate capital gains taxes automatically?
DonkyCapital calculates your realized and unrealized gains and losses, which are the raw inputs for tax calculation. The actual tax rate depends on your country of residence, the type of gain (short-term vs long-term), and your personal tax bracket — DonkyCapital does not apply tax rates automatically. We recommend using DonkyCapital's gain/loss data as the basis for your tax filing and consulting a qualified tax advisor for the final calculation.
Can I use DonkyCapital for tax-loss harvesting before year-end?
Yes — this is one of DonkyCapital's most practical use cases at year-end. The unrealized loss view shows all your positions currently in negative territory, sorted by loss size. You can see each position's cost basis, current price, unrealized loss, and the potential tax saving from crystallizing the loss before December 31st. This makes it straightforward to identify the best tax-loss harvesting candidates across your entire portfolio in minutes.
How do FIFO, LIFO, and average cost methods affect my capital gain?
Each method determines which purchase lot is considered "sold" when you sell a partial position, which directly affects the cost basis used and therefore the taxable gain. FIFO sells your oldest (typically cheapest) shares first — usually creating the largest taxable gain in a rising market. LIFO sells your most recent (typically more expensive) shares first — usually creating a smaller gain or even a loss. Average cost blends all purchase prices into a single weighted average. In DonkyCapital, you can see the gain/loss impact of each method side-by-side before confirming a sale.
How does DonkyCapital handle capital gains across multiple brokers?
DonkyCapital consolidates all your positions and transaction histories from all imported brokers into a single unified capital gains view. It aggregates your cost basis across all lots regardless of which broker holds them and generates a combined realized gain/loss report covering all brokers simultaneously. This eliminates the need to manually reconcile separate broker statements and run independent gain calculations for each account.
What is the difference between short-term and long-term capital gains?
In jurisdictions like the US, gains on assets held for less than one year are classified as short-term capital gains and taxed at ordinary income tax rates. Gains on assets held for more than one year qualify as long-term capital gains, taxed at preferential lower rates. DonkyCapital tracks the holding period for each position and lot, allowing you to identify which open positions are approaching the one-year threshold — a key signal for deciding whether to hold a little longer to qualify for long-term treatment.
Can DonkyCapital generate a capital gains report for tax filing?
Yes. DonkyCapital generates a structured year-to-date realized gain/loss report covering all positions sold during the period, with purchase date, sale date, cost basis, sale proceeds, and net gain or loss for each transaction. This report can be exported and used as the basis for your tax declaration or provided to your accountant. The premium plan includes a formatted tax report with automatic grouping by holding period and cost basis method.
How does DonkyCapital handle stock splits and corporate actions for cost basis?
DonkyCapital adjusts cost basis and share quantities automatically for corporate actions like stock splits, reverse splits, and mergers when the data is included in your transaction import. A 2:1 stock split, for example, doubles your share count and halves your per-share cost basis, preserving your total cost basis accurately. This ensures your gain/loss calculations remain correct even after complex corporate events that would otherwise distort your numbers.
How do I track unrealized gains for tax planning during the year?
DonkyCapital's unrealized gain dashboard updates every time you import new transactions or the platform refreshes market prices. At any point during the year, you can see your total unrealized gain broken down by position, asset class, and broker — giving you a real-time snapshot of your potential capital gains tax exposure if you were to sell everything today. This ongoing visibility is essential for proactive tax planning rather than reactive year-end scrambling.
Track Your Gains and Plan Your Taxes
Connect your portfolio to DonkyCapital and get a real-time, multi-broker view of your realized and unrealized capital gains — with tax-loss harvesting identification, cost basis method comparison, and year-to-date gain/loss reports updated automatically with every transaction.
Try DonkyCapital Free