Capital Gains Yield Calculator - Price Gain Return
Use this capital gains yield calculator to compare purchase price, sale price, holding period, and fees as price return or annualized yield.
Capital Gains Yield Calculator
Results
What Is Capital Gains Yield Calculator?
A capital gains yield calculator measures the price-only return on an investment from purchase price, sale price, share count, fees, and holding period. Use it before selling a stock, checking an unrealized gain, comparing two trades that exclude dividends, or estimating how much of a quoted gain remains after commissions. It is most useful when the main question is whether price movement alone has rewarded the capital you put at risk.
- • Pre-sale review: Enter the current quote as the sale price to see the gain or loss before placing an order.
- • Trade journal math: Record price return consistently across stocks, ETFs, crypto positions, or other quoted assets.
- • Fee sensitivity: Check how buy and sell costs change the yield on smaller positions.
- • Annualized comparison: Convert a holding-period price return into a yearly rate when comparing positions held for different lengths of time.
Capital gains yield is narrower than total return. It looks at the change between what you invested and what you could receive from selling, after the fees you enter. It does not include dividends, interest, tax owed, reinvested distributions, or the timing of additional purchases. That narrower view can still be helpful because it isolates the part of return created by market price movement.
Use the result as a measurement, not a recommendation. A positive yield says the position price rose after fees; a negative yield says the sale proceeds would not recover the cost basis. It does not say whether the investment is fairly valued, whether taxes are due, or whether a different asset fits your risk tolerance.
When dividends, interest, or other income belong in the result, the Return on Investment Calculator gives a broader performance view than price-only yield.
How Capital Gains Yield Calculator Works
The calculator builds cost basis and net proceeds first, then expresses the gain or loss as a percent of the capital invested.
- Cost basis: Purchase price multiplied by shares, plus the buy fee you include.
- Net sale proceeds: Sale price multiplied by shares, minus the sell fee you include.
- Capital gain or loss: Net proceeds minus cost basis, shown in dollars.
- Annualized yield: (Net proceeds / cost basis) raised to 1 divided by holding years, minus 1.
The annualized result is useful because a 10% gain over six months is not the same pace as a 10% gain over five years. The calculator compounds the holding-period result into a yearly rate instead of dividing by years, so longer and shorter holdings can be compared on a more consistent basis.
Fees matter most when the position is small or the price change is modest. A flat share price can still produce a negative result if the buy and sell fees are larger than zero. The break-even sale price shows the price per share needed to recover both the original cost basis and the sell fee.
Stock position with fees
You bought 100 shares at $20, paid a $10 buy fee, could sell at $24, would pay a $10 sell fee, and held the position for 3 years.
Cost basis is $2,010. Net proceeds are $2,390. The gain is $380, so capital gains yield is $380 / $2,010 x 100 = 18.91%.
The annualized price-only yield is 5.94%.
The position rose in price after fees, but this result excludes the $140 dividend-style income used in FINRA's broader ROI example.
According to FINRA Evaluating Performance, percent return divides change in value plus income by the amount invested, and annualized return uses (1 + return)^(1 / years) - 1.
For multi-year growth where beginning and ending values are the main inputs, the CAGR Calculator is the closest peer to the annualized yield output.
Key Concepts Explained
These concepts keep the result in the right lane and prevent price return from being confused with broader performance measures.
Capital gains yield
Capital gains yield is the percentage return from price appreciation or depreciation alone. In this calculator, the numerator is gain or loss after the entered fees, and the denominator is cost basis.
Cost basis
Cost basis is the invested amount used as the denominator. The calculator starts with purchase price times shares, then adds the buy fee because that fee increases the capital needed to own the position.
Net proceeds
Net proceeds are the cash available after sale costs. A sell fee lowers proceeds and can turn a tiny price gain into a flat or negative price-return result.
Total return
Total return is broader than capital gains yield because it can include dividends, interest, distributions, and other income. Use price-only yield when you want the market-price part isolated.
The calculator accepts fractional shares because many brokerage accounts and crypto platforms allow fractional units. The math is the same: total cost and total proceeds scale with the number of units. The break-even price remains a per-share number so it is easy to compare with a quote.
A negative result is not an error. It means the entered sale price and fees would produce proceeds below cost basis. That can happen from an actual price decline, from transaction costs, or from both.
If you have a series of yearly or monthly returns instead of one buy and sell price, the Average Return Calculator handles that return-history workflow.
How to Use This Calculator
Work from your trade confirmation or account statement when possible, especially if fees or fractional shares are involved.
- 1 Enter purchase price: Use the per-share or per-unit price paid, before adding any buy fee.
- 2 Enter sale or current price: Use the executed sale price, a live quote, or a test price you are considering.
- 3 Add shares and fees: Enter the number of units, then include buy and sell fees if they apply.
- 4 Set holding period: Enter years held, using decimals for partial years such as 0.25, 0.5, or 1.75.
- 5 Read both return views: Use capital gains yield for the holding-period result and annualized yield for pace-of-return comparisons.
Suppose you are deciding whether to sell 40 shares bought at $82.50 and now quoted at $91.25, with $4.95 paid to buy and $4.95 expected to sell. This capital gains yield calculator shows a $340.10 gain, 10.29% price return, and 5.02% annualized yield over two years. If you need an after-tax estimate, move the gain dollars into a tax-focused calculator.
After this page gives the gain dollars, the Capital Gains Tax Calculator is the relevant next step for estimating tax impact.
Benefits of Using This Calculator
A focused price-return result can make investment reviews cleaner when income and tax details would distract from the price move.
- • Separates price movement: You can judge whether the market price itself helped or hurt the position before adding dividends, interest, or distributions.
- • Shows fee drag: Small commissions and spreads can be material on small trades, so the fee-adjusted yield is more useful than the raw price change.
- • Compares holding periods: Annualized yield helps compare positions held for different lengths of time without relying on a simple average.
- • Supports limit-price planning: The break-even sale price tells you the quote needed to avoid a fee-adjusted loss.
- • Documents assumptions: The separate cost basis, proceeds, gain, and fee outputs make it easier to review the calculation later.
The result is also useful for reviewing unrealized gains. If you use the current market price as the sale price, the calculator estimates what the price-only yield would be if the position were sold at that quote and the entered sell fee applied.
For portfolio-level decisions, combine this output with income, risk, allocation, and taxes. A high price gain can still be unattractive if it came with excessive concentration risk, and a low price gain may be reasonable for a defensive holding.
When you are planning future contributions instead of reviewing a completed price move, the Investment Calculator fits that forward-looking question.
Factors That Affect Your Results
The output changes with both market prices and the assumptions you enter about costs, timing, and scope.
Purchase and sale prices
These prices create the gross price change. A small difference can become meaningful when multiplied by many shares.
Share count
Share count scales dollars but does not change the percentage yield by itself unless fixed fees are present.
Transaction fees
Fees increase cost basis or reduce proceeds. Their percentage impact is larger on small positions.
Holding period
Holding period affects annualized yield but not the raw holding-period capital gains yield.
Excluded income and taxes
Dividends, interest, distributions, and taxes can make the real investor outcome higher or lower than this price-only result.
- • The calculator does not calculate taxable gain, tax rate, wash-sale treatment, or holding-period tax classification.
- • It does not include dividends, interest, distributions, margin interest, currency conversion, bid-ask spread, or reinvested income unless you manually reflect those effects in prices or fees.
- • Annualized yield can look extreme for very short holding periods, so read it as a pace indicator rather than a promise about future returns.
Basis can be more complicated than a simple purchase price when there are reinvested distributions, stock splits, gifts, inherited assets, multiple lots, or broker adjustments. Use the calculator for a clean price-return estimate, then check your records before relying on the dollar gain for reporting.
If you are comparing this position with a dividend-paying stock or bond, do not stop at capital gains yield. Add income to evaluate total return, and use after-tax analysis when the decision depends on spendable proceeds.
According to IRS Publication 551, basis is the investment in property for tax purposes, and the basis of property bought is generally its cost plus certain buying costs.
For stocks where expected dividends drive value, the Dividend Discount Model Calculator focuses on dividend cash flows rather than realized price gain.
Frequently Asked Questions
Q: What is capital gains yield?
A: Capital gains yield is the percentage return from price change alone. It compares the gain or loss on an asset with the amount invested. In this calculator, fees are included in cost basis and proceeds, but dividends, interest, and taxes are not included.
Q: How do I calculate capital gains yield?
A: Calculate cost basis, calculate net sale proceeds, subtract basis from proceeds, then divide that gain or loss by cost basis. Multiply by 100 to show the result as a percentage. The calculator also annualizes the result from your holding period.
Q: Is capital gains yield the same as total return?
A: No. Capital gains yield isolates price appreciation or depreciation. Total return can include dividends, interest, distributions, and other income. A dividend-paying stock can have a modest capital gains yield but a higher total return once income is included.
Q: Should brokerage fees be included?
A: Include fees when you want a result that reflects actual cash paid and received. Buy fees increase cost basis, and sell fees reduce proceeds. If you are only studying raw market-price movement, set the fee fields to zero.
Q: Can capital gains yield be negative?
A: Yes. A negative result means net sale proceeds are lower than cost basis. That can happen because the sale price is below the purchase price, because fees are large relative to the position, or because both effects apply.
Q: Does this calculate capital gains tax?
A: No. This calculator estimates price-only gain and yield before tax. Capital gains tax depends on jurisdiction, holding period, income, losses, asset type, and other rules. Use the gain dollars as an input for a tax-focused workflow when needed.