---
slug: stock-return-calculator
title: "Stock Return Calculator"
category: finance
updated: 2026-11-17
canonical: https://calcseed.com/c/finance/stock-return-calculator/
html: /c/finance/stock-return-calculator/
---

# Stock Return Calculator

Calculate stock trading profit and return percentage from buy price, sell price, shares and dividends. Free and instant.

## Quick answer

**Quick answer:** with the default inputs ($50, $60, 100, $50), the profit is **$1,050.00**. At these inputs: return = **21**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| Buy price | 50 | $ |
| Sell price | 60 | $ |
| Shares | 100 |  |
| Dividends received | 50 | $ |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Profit | 1050 |  |
| Return | 21 |  |

## Formula

```text
profit = (sellPrice − buyPrice) × shares + dividends    return% = profit ÷ (buyPrice × shares) × 100
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| Buy price | number | $ | 50 |
| Sell price | number | $ | 60 |
| Shares | number |  | 100 |
| Dividends received | number | $ | 50 |

## Outputs

| Result | Format |
| --- | --- |
| Profit | primary |
| Profit | currency |
| Return | percent |

## How it works

### What the calculator returns

Enter the buy price, the sell price, the number of shares and the total dividends collected while you held the position. The calculator returns total profit in dollars and the return as a percentage of what you invested. At the defaults — bought at **$50**, sold at **$60**, **100** shares, **$50** of dividends — the profit is **$1,050** on a $5,000 cost, a **21.00%** return.

### How the formula works

The first term is the capital gain: the price difference multiplied by the number of shares. The second term is the cash the company paid you while you owned it. Adding them gives total profit, which is the only figure that matches what actually lands in the account.

Return divides that profit by the original cost, not by the current value. The denominator is buy price × shares, so a $1,050 profit on $5,000 is 21.00%. Dividing by the sale value instead would give 17.36% and understate the result, because the sale value already includes the profit.

### Worked example at the defaults

Price gain: ($60 − $50) × 100 = **$1,000**. Add $50 of dividends: total profit **$1,050**. Cost basis: $50 × 100 = $5,000, so the return is $1,050 ÷ $5,000 = **21.00%**.

The $50 of dividends is 1% of the cost basis, which is the entire difference between a 20% price return and a 21% total return. Small in this example, but a 3% yield held for five years contributes roughly 15 points of return before any reinvestment, which is why ignoring dividends systematically understates long-term performance.

### The same position at four exit prices

| Sell price | Price gain | Dividends | Total profit | Return |
| --- | --- | --- | --- | --- |
| $40 | −$1,000 | $50 | −$950 | −19.00% |
| $50 | $0 | $50 | $50 | 1.00% |
| $60 | $1,000 | $50 | $1,050 | 21.00% |
| $70 | $2,000 | $50 | $2,050 | 41.00% |

The flat row is the useful one. A stock that goes nowhere but pays $50 still returns 1.00%, and that is the floor a dividend provides. The loss row shows the other side: a 20% price decline costs 19% once dividends are counted, not 20%, and the dividend cushion is larger for higher-yielding positions.

Dividends are small per share but they are not small in the return once a position is held for years.

| Dividends received | Total profit | Return on $5,000 |
| --- | --- | --- |
| $0 | $1,000 | 20.00% |
| $50 | $1,050 | 21.00% |
| $200 | $1,200 | 24.00% |
| $500 | $1,500 | 30.00% |

Each $50 of dividends is exactly one point of return on a $5,000 position, because $50 ÷ $5,000 = 1%. On a $50,000 position the same $50 is a tenth of a point, which is why the return percentage depends on position size while the dividend per share does not.

### Cumulative return is not annual return

#### Converting to a yearly figure

The 21.00% here is a cumulative return over however long you held the shares. To compare it with a savings account or an index fund, convert it to a compound annual rate: (1 + 0.21)^1/t − 1. Held for three years, 21% is 6.56% a year; held for five years, it is 3.89% a year; held for one year, it is simply 21%.

#### Why the conversion matters

A 21% gain sounds better than a 7% annual return until you notice it took three years. The annualized figure is the only one that lets you compare investments held for different periods, and it is also the figure that exposes a big percentage gain on a small position as less impressive than it looks.

### What moves the number

- Exit price. Each $1 of price change on 100 shares is $100 of profit, or 2 points of return on a $5,000 basis.
- Holding period. The same 21% is 21% a year over one year and 6.56% a year over three.
- Dividends. Each $50 received adds exactly 1 point of return on the default cost basis.
- Share count. Profit scales linearly, but the return percentage does not change if the buy price is the same.
- Fees and commissions. A $10 round-trip commission on $5,000 cuts a 21.00% return to 20.80%.

### Mistakes that flatter the result

- Ignoring commissions, platform fees and bid-ask spreads, which turn a small gain into a loss
- Comparing a cumulative multi-year return with a one-year benchmark
- Using the sale proceeds rather than the cost as the denominator
- Forgetting that dividends are taxable in the year received, even if reinvested

Taxes are the largest omission for a taxable account. The default $1,050 profit held less than a year is short-term and taxed at ordinary rates: at 22% the bill is $231, cutting the net return from 21.00% to 16.38%. Held over a year, the same gain at 15% costs $158 and nets 17.85%.

The denominator error is subtler. Dividing $1,050 by the $6,050 sale value gives 17.36%, which is not a return on anything — it is the profit margin on the exit transaction. Return on investment always divides by what you put in, and that is the $5,000 cost basis.

### What the estimate leaves out

It assumes one purchase and one sale at a single price. Real positions are often built in tranches, which requires an average cost basis, and partial sales leave a remaining position with its own return. The calculator also ignores reinvested dividends, which raise the cost basis and the share count at the same time.

Currency, corporate actions and taxes are outside the model as well. A stock split changes the share count and price without changing the return; a spinoff creates a second cost basis; and a foreign holding adds a currency return that can dominate the local price move. For a single round-trip trade in one currency, the arithmetic above is exact.

## FAQ

### How do I calculate stock return?

Subtract the buy price from the sell price, multiply by shares, add dividends, then divide by the original cost. At $50 to $60 on 100 shares with $50 of dividends, profit is $1,050 on a $5,000 cost, or 21.00%.

### Does this include dividends?

Yes, if you enter them. The $50 of dividends in the default example is the difference between a 20.00% price return and a 21.00% total return.

### What is a 21% return over three years annualized?

6.56% a year. The conversion is (1 + 0.21)^1/3 − 1. Over five years the same 21% is 3.89% a year, and over one year it stays 21.00%.

### What about fees and commissions?

They are not included, so the result is a gross return. A $10 round-trip commission on the $5,000 default position reduces profit to $1,040 and the return to 20.80%.

### How much tax do I owe on a $1,050 profit?

It depends on the holding period. Short-term at a 22% rate costs $231 and nets 16.38%; long-term at 15% costs $158 and nets 17.85%. State tax is additional.

### Why is my return different from the price change?

Dividends and costs. A 20% price gain plus 1% of dividends is a 21% total return; fees and taxes pull the net figure below that. Position size changes the percentage only through the dividend and fee amounts.

### Does a stock split change the return?

No. A 2-for-1 split halves the price and doubles the share count, leaving the cost basis and the profit unchanged. Enter the split-adjusted buy price and the current share count.

### Can I use this for a losing position?

Yes. Selling at $40 instead of $60 on 100 shares produces a $950 loss after $50 of dividends, which is −19.00% on the $5,000 cost.

### What if I bought at several prices?

Use the average cost per share as the buy price and the total share count. If you bought 50 at $45 and 50 at $55, the average is $50 and the position behaves exactly like the default example.

### Is a 21% return good?

It depends on the period and the risk taken. Annualized at 21% it is exceptional; spread over three years at 6.56% it is close to long-run U.S. equity averages before inflation. Always compare annualized figures.

## Method and sources

Methodology: Calculations follow standard financial mathematics (amortization, compound interest and time-value formulas) and reference 2026 U.S. federal parameters, such as IRS mileage and contribution rates, where applicable.

Last updated: 2026-11-17.
- Total stock return: profit = (sell - buy) x shares + dividends; return% = profit / (buy x shares) x 100.
