This tool calculates realized and unrealized gains on investments for personal finance planning. It helps savers, investors, and financial planners track taxable vs untaxed investment growth. Use it to assess your portfolio’s performance before selling assets.
Realized vs Unrealized Gain Calculator
Calculate taxable realized gains and untaxed unrealized gains on your investments
Gain Breakdown
How to Use This Tool
Follow these steps to calculate your realized and unrealized investment gains:
- Enter the asset name (optional) to label your calculation results.
- Input the purchase price per share and total number of shares you bought for this asset.
- If you have sold some shares, enter the sale price per share, number of shares sold, and any transaction fees from the sale.
- Enter the current market price per share to calculate unrealized gains on unsold shares.
- Add your capital gains tax rate if you want to see after-tax realized gain amounts.
- Select your preferred currency from the dropdown menu.
- Click the "Calculate Gains" button to see a detailed breakdown of your investment performance.
- Use the "Reset" button to clear all fields and start a new calculation.
Formula and Logic
This calculator uses standard personal finance formulas to separate taxable realized gains from untaxed unrealized gains:
- Realized Gain (Pre-Tax) = (Sale Price per Share * Shares Sold) - Transaction Fees - (Purchase Price per Share * Shares Sold)
- Capital Gains Tax = Realized Gain (Pre-Tax) * (Tax Rate / 100) (only applied to positive gains)
- Realized Gain (After-Tax) = Realized Gain (Pre-Tax) - Capital Gains Tax
- Unrealized Gain = (Current Market Price per Share * Unsold Shares) - (Purchase Price per Share * Unsold Shares)
- Total Pre-Tax Gain = Realized Gain (Pre-Tax) + Unrealized Gain
Realized gains are triggered when you sell an asset, making them taxable in the year of sale. Unrealized gains are increases in value of assets you still hold, and are not taxed until you sell the asset.
Practical Notes
Keep these finance-specific tips in mind when using this calculator:
- Capital gains tax rates vary by country, income level, and how long you held the asset (short-term vs long-term holdings often have different tax rates).
- Transaction fees, brokerage commissions, and transfer taxes can reduce your realized proceeds, so include all sale-related costs in the fees field.
- Unrealized gains are subject to market volatility — the current market price can change daily, so recalculate regularly if tracking performance.
- If you have multiple purchase lots for the same asset at different prices, use the average cost basis for the most accurate results.
- Tax laws may allow you to offset capital gains with capital losses from other investments — this calculator does not account for loss offsets.
Why This Tool Is Useful
This calculator helps personal finance users, investors, and financial planners:
- Distinguish between taxable realized gains and untaxed unrealized gains for accurate tax planning.
- Assess after-tax returns on sold investments to inform future buy/sell decisions.
- Track portfolio performance across both sold and held assets in one view.
- Prepare for tax season by estimating capital gains tax liabilities before filing.
- Compare potential sale scenarios by adjusting sale price and shares sold inputs.
Frequently Asked Questions
What is the difference between realized and unrealized gains?
Realized gains are profits from assets you have already sold, and are subject to capital gains tax in the year of sale. Unrealized gains are increases in value of assets you still hold, and are not taxed until you sell the asset, if at all.
Do I pay tax on unrealized gains?
No, unrealized gains are not taxed until you sell the asset and convert the gain to a realized gain. Some jurisdictions may have annual wealth taxes that include unrealized gains, but standard capital gains tax only applies to realized gains.
Can I use this calculator for mutual funds or ETFs?
Yes, this calculator works for any investment asset where you buy and sell shares at a variable price, including stocks, mutual funds, ETFs, and most publicly traded securities. For mutual funds, use the net asset value (NAV) as the purchase, sale, or current price.
Additional Guidance
For more accurate results, consider these additional steps:
- Check your local tax authority's current capital gains tax rates, as they may change annually.
- If you reinvested dividends, include the reinvested amount in your total cost basis for the asset.
- Use this calculator to model "what-if" scenarios, such as delaying a sale to qualify for lower long-term capital gains tax rates.
- Consult a certified financial planner or tax professional for personalized advice on complex investment portfolios or large gains.