Stock Gain
Calculator

Calculate your stock trading profit and return on investment instantly. Enter your buy price, sell price, and number of shares to see your total profit, percentage gain, and ROI — with real-time visual breakdowns.

Stock Gain Formula
Profit = (Sell Price − Buy Price) × Shares
Scroll
Total Profit
Gain
$2,750
ROI61.11%
Total Invested$4,500
Total Value$7,250

Stock Gain Visualized

See your investment performance through real-time interactive charts.

Investment Breakdown

Live
Invested
$4,500
Current Value
$7,250
Profit
+$2,750

ROI Gauge

Animated
61%return

Profit Calculation

Step-by-Step
1
Per-Share Gain$72.50 − $45.00 = $27.50
2
Total Profit$27.50 × 100 = $2,750
3
ROI$2,750 ÷ $4,500 × 100 = 61.11%
Result$2,750 profit (61.11% ROI)

Investment Split

Interactive
Original Investment
Profit (61%)

What Is Stock Gain?

Stock gain (or capital gain) is the profit you make when you sell a stock for more than you paid. It's calculated by subtracting your purchase price from your selling price, then multiplying by the number of shares.

Return on Investment (ROI) expresses your gain as a percentage of your original investment, making it easy to compare different trades regardless of the amounts involved. A 61% ROI means you earned $0.61 for every $1 invested.

Capital gains are classified as short-term (held less than 1 year) or long-term (held 1+ years). Long-term gains are taxed at preferential rates (0%, 15%, or 20%), while short-term gains are taxed as ordinary income.

Stock Return
$4,500
Invested
+61.11%
$7,250
Value

How to Calculate Stock Gains

Track Your Cost Basis

Your cost basis is the total amount you paid — buy price × shares + any commissions. This is your starting point for calculating gains or losses.

Calculate Profit

Subtract buy price from sell price for per-share gain, then multiply by the number of shares. Don't forget to account for trading fees if applicable.

Understand ROI

ROI = (Profit ÷ Total Invested) × 100. This gives you a comparable metric. A $100 gain on a $200 investment (50% ROI) is better than a $100 gain on a $1,000 investment (10% ROI).

Stock Gain Tax Guide

Short-Term Gains

Stocks held less than 1 year are taxed as ordinary income (10-37% depending on bracket). Day traders and swing traders face higher tax rates.

Long-Term Gains

Stocks held 1+ years qualify for preferential rates: 0% (up to ~$44K), 15% (up to ~$492K), or 20% (above ~$492K). Holding longer saves significantly on taxes.

Tax-Loss Harvesting

You can offset gains by selling losing positions. Up to $3,000 in net losses can offset ordinary income per year, with excess carrying forward to future years.

Dividends

Qualified dividends are taxed at long-term capital gains rates. Non-qualified dividends are taxed as ordinary income. This calculator focuses on capital gains only.

Stock Trade Examples

Click any example to load it into the calculator.

🍎

Apple Stock

Bought 50 AAPL at $150, sold at $210.

= $3,000 profit (40% ROI)
📈

Growth Stock

200 shares: $25 → $45.

= $4,000 profit (80% ROI)
📉

Loss Scenario

30 shares: bought at $350, sold at $310.

= -$1,200 loss (-11.4%)
🚀

Big Winner

500 shares of a startup: $10 → $180.

= $85,000 profit (1700% ROI)

Stock Gain FAQs

How do I calculate stock profit?

Profit = (Sell Price − Buy Price) × Number of Shares. For example, buying 100 shares at $45 and selling at $72.50 gives you ($72.50 − $45) × 100 = $2,750 profit.

What is ROI on stocks?

ROI = (Profit ÷ Total Investment) × 100. If you invested $4,500 and made $2,750 profit, your ROI is 61.11%. This lets you compare returns across different investments regardless of the amounts involved.

Does this include dividends?

This calculator focuses on capital gains (price appreciation). To include dividends in your total return, add any dividends received to your total profit before calculating ROI.

How are stock gains taxed?

Short-term gains (held <1 year) are taxed as ordinary income (10-37%). Long-term gains (held 1+ years) are taxed at 0%, 15%, or 20% depending on your income bracket. Always consult a tax professional.

What about trading fees?

Most major brokerages now offer commission-free trading. If you do pay fees, add them to your buy price or subtract from your sell price for a more accurate profit calculation.

Contact Us

Have questions, feedback, or partnership inquiries? We'd love to hear from you.

Email

support@percentageincrease-calculator.com

Response Time

We aim to respond within 24 hours on business days.