Skip to main content
All Articles
Financial Guide
6 min read July 26, 2026
Verified July 2026

How to Calculate Percentage Gain or Loss on Any Investment

Most investors track dollar profits and miss the number that actually matters. Percentage gain or loss is the only metric that lets you compare a $4,200 stock position to a $180,000 real estate deal on equal footing. If you're not calculating it correctly, you're ranking your investments by the wrong scorecard.

How to Calculate Percentage Gain or Loss on Any Investment

Key Takeaways

  • A $12,000 gain on a $200,000 position is only a 6% return. The same gain on a $40,000 position is 30%. Dollar size is irrelevant without the percentage.
  • Ignoring fees and cost basis inflates apparent returns. A 15% gross gain shrinks to 11.4% after a 1.5% advisory fee and $800 in transaction costs on a $20,000 position.
  • Calculate percentage gain as: (End Value minus Begin Value) divided by Begin Value, multiplied by 100. Then subtract all costs before drawing any conclusion.
  • Tool: Run your exact numbers in the CalcMoney Investment Calculator →

Put Your Money to WorkSPONSORED

Betterment builds and rebalances your portfolio automatically. No guesswork.

Interactive Calculator
Full screen
Loading Calculator
calcmoney.io/calculatorsOpen full screen

The Formula Every Investor Needs to Know

The core calculation is a single line of arithmetic.

Percentage Gain or Loss = ((End Value - Begin Value) / Begin Value) x 100

A negative result is a loss. A positive result is a gain. The percentage sign makes the output portable: you can compare it against any other investment, any benchmark, and any time period.

That said, the raw formula above is the starting point, not the finish line. Two adjustments transform it from a rough estimate into a decision-grade number.

Adjustment 1: Use True Cost Basis, Not Purchase Price

Your beginning value is not always the share price you paid. It includes every dollar it cost to enter the position.

  • Brokerage commissions (still present on options and some fixed-income trades)
  • Load fees on mutual funds (front-end loads range from 3% to 5.75% at some brokerages)
  • Transfer taxes on international equities
  • Closing costs on real estate or private placements

If you bought 500 shares at $42.00 per share but paid a $9.95 commission, your true cost basis is $21,009.95, not $21,000.00. On a small position, that difference is rounding noise. On a $500,000 position with a 1% advisory fee embedded in the purchase, the error is $5,000.

Adjustment 2: Account for Distributions and Income

End value is not always the closing price either. Dividend payments, rental income, interest distributions, and return-of-capital payments all belong in the calculation.

Adjusted End Value = Current Market Value + All Distributions Received

Skipping this step understates returns on income-generating assets. A REIT that paid $3,400 in distributions over 18 months while its share price declined by $1,900 has a net gain of $1,500. The price chart alone shows a loss.


Worked Example 1: Individual Stock Position

An investor buys 300 shares of a mid-cap industrial company at $67.40 per share on January 14, 2024. Fourteen months later, the position is worth $84.10 per share. The stock paid $0.68 per share in dividends over that period. The brokerage charged no commission.

Step 1: Calculate true cost basis.

300 shares x $67.40 = $20,220.00 (no additional fees in this case)

Step 2: Calculate adjusted end value.

Market value: 300 x $84.10 = $25,230.00 Dividends received: 300 x $0.68 = $204.00 Adjusted end value: $25,230.00 + $204.00 = $25,434.00

Step 3: Apply the formula.

($25,434.00 - $20,220.00) / $20,220.00 x 100 = 25.79%

If the investor had ignored dividends, the calculated gain would be 24.78%. That 1.01 percentage point gap is not cosmetic. Across a portfolio of dividend-paying positions, it compounds into a material misread of total return.


Worked Example 2: Real Estate Investment with Costs

An investor purchases a single-family rental property for $312,000. Closing costs total $8,750. After 26 months, the property sells for $361,500. Closing costs on the sale come to $10,840 (agent commissions, title, transfer taxes). Net rental income collected over the holding period, after operating expenses, is $19,200.

Step 1: Calculate true cost basis.

$312,000 + $8,750 = $320,750.00

Step 2: Calculate adjusted end value.

Sale proceeds after selling costs: $361,500 - $10,840 = $350,660.00 Add net rental income: $350,660 + $19,200 = $369,860.00

Step 3: Apply the formula.

($369,860 - $320,750) / $320,750 x 100 = 15.31%

Had the investor used raw purchase and sale prices only, the apparent gain would have been ($361,500 - $312,000) / $312,000 x 100 = 15.87%. That calculation ignores $19,450 in combined transaction costs, overstating the net return by 0.56 percentage points on a 26-month hold. It also ignores $19,200 in rental income, understating total return by nearly 6 full percentage points. The two errors move in opposite directions and do not cancel out cleanly.

The correct total return is 15.31%. The quick calculation yields 15.87%. Neither version is the same number, and only one of them belongs in a performance report.


Why Percentage Gain Beats Dollar Profit for Comparison

Dollar gains tell you how much money moved. Percentage gains tell you how hard your capital worked.

Consider two positions closed in the same tax year:

PositionCapital InvestedDollar GainPercentage Gain
Tech ETF$28,500$5,13018.0%
Municipal Bond Fund$142,000$8,8046.2%

The bond fund produced 72% more dollars. The ETF produced nearly three times the return per dollar deployed. If you had $28,500 to allocate, the ETF was the stronger performer. If your objective was income with low volatility on a large sum, the bond fund may have been the right choice regardless. The point is that without percentage gain, you cannot even frame the comparison correctly.


How to Calculate Percentage Loss (Same Formula, Negative Result)

No separate formula required. If end value falls below begin value, the result of (End Value - Begin Value) / Begin Value x 100 is negative. That negative number is your percentage loss.

An investor buys $15,000 of a sector fund. The position drops to $11,400 before they sell.

($11,400 - $15,000) / $15,000 x 100 = -24.0%

A 24.0% loss requires a 31.6% gain just to return to breakeven. That asymmetry is one of the most underappreciated facts in portfolio management. A 50% loss requires a 100% gain to recover. Calculating loss percentage accurately keeps that math visible.


Annualizing the Return: One More Step for Cross-Period Comparisons

A 25% gain over 14 months and a 25% gain over 4 years are completely different outcomes. Annualizing the return creates a fair comparison.

Annualized Return = ((1 + (Percentage Gain / 100)) ^ (1 / Years Held)) - 1, multiplied by 100

For the stock position in Example 1 (25.79% gain over approximately 1.17 years):

(1.2579 ^ (1 / 1.17)) - 1 x 100 = approximately 21.8% annualized

For a position that gained 25% over 4 years:

(1.25 ^ (1 / 4)) - 1 x 100 = approximately 5.74% annualized

Same headline gain. One is more than three times as productive on an annualized basis.


Common Errors That Distort Your Calculation

Using average cost basis incorrectly on partial sales. If you bought shares in three tranches at different prices and sell only a portion, your cost basis depends on which tax lot you designate. FIFO, LIFO, and specific identification produce different cost bases and different reported gains.

Ignoring reinvested dividends. Most brokerage accounts reinvest dividends automatically. Each reinvestment creates a new tax lot at a new cost basis. If you calculate gain using only your original purchase price, you overstate the percentage gain on the shares purchased through reinvestment.

Conflating unrealized and realized returns. A position showing 40% on paper has not produced a 40% return. Transaction costs, taxes, and market movement between decision and execution all reduce the realized figure.

Using nominal returns when inflation matters. A 7% nominal gain in a year when inflation runs at 4.1% is a real return of approximately 2.8%. For long-horizon planning, real returns are the number that governs purchasing power.


Run Your Numbers Before Drawing Any Conclusion

The formula is straightforward. The inputs are where precision matters. Cost basis errors, missing distributions, and unannualized returns all produce numbers that feel accurate but mislead allocation decisions.

The CalcMoney Investment Calculator applies this methodology automatically. Enter your purchase price, sale or current value, any distributions received, fees paid, and holding period. The calculator returns both the raw percentage gain or loss and the annualized rate. It handles partial positions and multiple tranches without requiring a spreadsheet.

If you manage multiple positions, run each one separately and compare the annualized figures. That output tells you which capital worked hardest, which positions are candidates for reallocation, and where your assumptions about performance were off.

The math takes 30 seconds. The decision it informs is the one that compounds.

Calculate your exact percentage gain or loss now →

You Might Also Like

Results are estimates for informational purposes only. Consult a licensed financial professional before making financial decisions.

Featured Partner
FIDELITY

Put These Numbers to Work

Open a Fidelity brokerage account. $0 commissions, no account minimums, fractional shares available.

Run the Numbers

Affiliated. We may earn a commission.

OR

One money insight per week.

Calculator deep-dives, rate alerts, and financial analysis written for real decisions. Unsubscribe anytime.

1 email/week. No spam. Unsubscribe in one click.

Free Tools

Run the actual numbers

Stop estimating. Plug in your numbers and get a precise answer in seconds. Free, no signup required.

Open Free Calculators