Realized vs Unrealized Gain Calculator

This tool helps individuals and financial planners calculate realized and unrealized gains on investments. It breaks down taxable realized gains versus paper unrealized gains for clear portfolio tracking. Use it to assess your investment performance before selling assets.

📈 Realized vs Unrealized Gain Calculator

Please enter a valid number of shares greater than 0.
Please enter a valid purchase price of 0 or higher.
Please enter a valid current market price of 0 or higher.
Calculation Results
Total Cost Basis$0.00
Current Market Value$0.00
Unrealized Gain/Loss$0.00
Unrealized Gain Percentage

How to Use This Tool

Follow these simple steps to calculate your realized and unrealized gains:

  1. Select your asset type from the dropdown menu to categorize your investment.
  2. Enter the number of shares or units you hold, your purchase price per share (cost basis), and the current market price per share.
  3. Indicate whether you have already sold the asset. If yes, enter your sale price per share and any transaction fees incurred.
  4. Click the Calculate Gains button to view your detailed results.
  5. Use the Reset button to clear all inputs and start a new calculation.

Formula and Logic

This calculator uses standard financial formulas to compute realized and unrealized gains:

  • Total Cost Basis = Number of Shares × Purchase Price per Share
  • Current Market Value = Number of Shares × Current Market Price per Share
  • Unrealized Gain/Loss = Current Market Value - Total Cost Basis (paper gain/loss from unsold assets)
  • Sale Proceeds = (Number of Shares × Sale Price per Share) - Transaction Fees (only if asset is sold)
  • Realized Gain/Loss = Sale Proceeds - Total Cost Basis (taxable gain/loss from sold assets)
  • Taxable Realized Gain = Realized Gain if positive, otherwise 0 (you do not pay taxes on losses, but may claim deductions)

Unrealized gains are not taxed until the asset is sold, while realized gains are subject to capital gains tax in the year of sale.

Practical Notes

  • Realized gains are taxable in the year you sell the asset, while unrealized gains are only taxed upon sale.
  • Short-term capital gains (assets held less than 1 year) are taxed at ordinary income rates, while long-term gains have lower preferential rates.
  • Transaction fees, commissions, and closing costs can be added to your cost basis to reduce taxable realized gains.
  • Unrealized losses can be used to offset realized gains for tax purposes, up to annual limits set by tax authorities.
  • Always consult a tax professional for personalized advice on capital gains tax planning.

Why This Tool Is Useful

This tool simplifies complex portfolio tracking for everyday investors and financial planners. It clearly separates paper gains from taxable gains, helping you make informed decisions about when to sell assets. You can compare potential sale outcomes by adjusting sale prices and fee inputs to minimize tax liability. The detailed breakdown helps with budgeting, tax preparation, and long-term investment planning.

Frequently Asked Questions

What is the difference between realized and unrealized gains?

Realized gains are profits from assets you have already sold, while unrealized gains are increases in value of assets you still hold. Realized gains are subject to capital gains tax, while unrealized gains are not taxed until the asset is sold.

Are transaction fees included in the gain calculation?

Yes, transaction fees are subtracted from your sale proceeds when calculating realized gains, which reduces your taxable gain. You can enter all fees associated with the sale, including brokerage commissions and closing costs.

Can I use this tool for real estate investments?

Yes, this tool supports all asset types including real estate. Enter the number of units (e.g., 1 for a single property), purchase price, current market value, and sale details if applicable. Note that real estate may have additional tax considerations like depreciation recapture.

Additional Guidance

  • Keep records of all purchase and sale documents to verify your cost basis and transaction fees.
  • Check with your local tax authority for current capital gains tax rates and deduction limits.
  • Use this tool regularly to track your portfolio performance over time, not just when preparing taxes.
  • Consider timing asset sales across tax years to manage your taxable income if you have large realized gains.