← Back to All Calculators
STOCK PROFIT CALCULATOR

How Much Will You Make on This Trade?

Enter your shares, buy and sell prices, commissions, dividends, and tax rate to see your net profit, ROI, annualized return, and break-even price instantly.

A stock profit calculator determines your net gain or loss from a stock trade by factoring in the number of shares, buy and sell prices, commissions, dividends, and capital gains tax. It gives you a complete picture of what you actually take home after all costs — not just the share price difference.

Trade Details

Include Tax & Holding Period
Tax & Holding Period
Results
Net Profit / Loss
Total Cost (Buy)
Total Revenue (Sell)
Dividends
Total Commissions
Capital Gains Tax
Return on Investment
Annualized Return (CAGR)
Break-Even Price
Track Your Trades in TradeZella →

How to Use This Stock Profit Calculator

1

Enter Your Trade Details

Input the number of shares, buy price per share, and sell price (or your target sell price if you're still holding). These three fields drive the core profit calculation.

2

Add Commissions and Dividends

If your broker charges commissions, enter them for both the buy and sell side. Toggle between a flat dollar amount or a percentage of the trade value. Add any dividends received during the holding period.

3

Toggle Tax (Optional)

Turn on the tax toggle if you want to factor in capital gains. Pick Short-Term (22%) for positions held under a year, Long-Term (15%) for over a year, or enter a custom rate that matches your bracket.

4

Read Your Results

The results panel shows your net profit, total cost, revenue, commissions paid, tax owed, ROI, CAGR (annualized return), and break-even price. The scenario table shows profit at seven different exit prices so you can plan targets.

5

Compare Exit Scenarios

The P&L chart visualizes your profit and loss across a range of sell prices. The purple dot marks your current sell price, and the dashed line shows break-even. Use this to evaluate whether your risk/reward makes sense before entering the trade.

Key Metrics Explained

What each output means and how to use it when evaluating a stock trade.

Profit

Net Profit / Loss

Your total gain or loss after all costs: commissions, dividends, and tax. This is what actually hits your account — the number that matters.

ROI

Return on Investment

Net profit divided by total cost, expressed as a percentage. A $500 profit on a $5,000 investment is a 10% ROI. Useful for comparing trades of similar duration.

CAGR

Annualized Return

Normalizes your return to a yearly basis so you can compare trades with different holding periods. A 10% gain in 30 days is roughly 242% CAGR — far better than 10% over two years.

Break-Even

Break-Even Price

The exact sell price where your trade goes from loss to profit, factoring in commissions and dividends. Knowing this before entering helps you set realistic targets.

Scenarios

Scenario Table

Shows profit, ROI, and after-tax return at seven exit prices around your sell target. Helps you visualize the upside/downside range of your trade before committing.

Chart

P&L Visualization

A visual chart plotting profit and loss across a range of sell prices. Green above break-even, red below. The purple dot marks your current sell price entry.

U.S. Capital Gains Tax Rates (2025-2026)

Short-term capital gains (positions held less than one year) are taxed as ordinary income. Long-term gains get preferential rates. These are federal rates — state taxes vary.

Holding PeriodRateApplies To
Under 1 year (short-term)10% - 37%Taxed at your ordinary income bracket
Over 1 year (long-term)0%, 15%, or 20%Depends on taxable income level
Net Investment Income Tax3.8% surchargeApplies if AGI exceeds $200K single / $250K married

Tip: Most active traders fall into the 22% short-term bracket or the 15% long-term bracket. The calculator defaults to these common rates, but use the Custom option if your tax situation is different. Day traders and swing traders who hold under a year should always check their short-term impact.

Stock Profit Formulas

The core formulas driving this calculator. Understanding them helps you see which variable has the biggest impact on your bottom line.

Net Profit

Net Profit = (Sell Price × Shares − Sell Commission) − (Buy Price × Shares + Buy Commission) + Dividends − Tax

This is the complete formula that accounts for every cost. Most simple calculators skip commissions and tax — this one doesn't.

Return on Investment

ROI = Net Profit ÷ Total Cost × 100

Where Total Cost = (Buy Price × Shares) + Buy Commission. This tells you what percentage of your invested capital you gained or lost.

Annualized Return (CAGR)

CAGR = ((Final Value ÷ Initial Cost) ^ (365 ÷ Days Held) − 1) × 100

CAGR compounds your return to show what it would look like stretched or compressed to exactly one year. A 5% return in one month is much more impressive than 5% over three years — CAGR makes that clear.

Break-Even Price

Break-Even = (Total Cost + Sell Commission − Dividends) ÷ Shares

The sell price where you'd walk away with exactly $0 profit. Everything above this line is green; everything below is red.

Why commissions matter more than you think: On a 100-share trade at $50, two $4.95 commissions only cost $9.90 — a 0.1% drag. But on a 10-share trade at $20, those same commissions eat 5% of your position. Smaller trades get hit disproportionately hard.

Worked Example: 100 Shares of AAPL

Let's walk through a complete trade to see every number in action.

InputValue
Shares100
Buy price$150.00
Sell price$175.00
Buy commission$4.95
Sell commission$4.95
Dividends received$52.00
Tax rateNone

Step 1 — Total Cost: (100 × $150) + $4.95 = $15,004.95

Step 2 — Total Revenue: (100 × $175) − $4.95 = $17,495.05

Step 3 — Net Profit: $17,495.05 − $15,004.95 + $52.00 = $2,542.10

Step 4 — ROI: $2,542.10 ÷ $15,004.95 × 100 = 16.94%

Step 5 — Break-Even: ($15,004.95 + $4.95 − $52.00) ÷ 100 = $149.58

What if you add tax? Toggling on short-term tax at 22% on the $2,542.10 profit reduces your take-home to $1,982.84. That's a $559.26 hit — which is why holding long-term (15% rate) can save you real money on winning trades.

Track Every Trade, Know Every Number

TradeZella automatically calculates your profit, ROI, commissions, and tax impact across every trade. Stop guessing — start journaling.

Get Started

Frequently Asked Questions

How do you calculate profit on a stock trade?

Multiply the number of shares by the sell price, subtract the buy cost (shares × buy price), then subtract any commissions on both sides. Add dividends received during the holding period. If applicable, subtract capital gains tax on the profit. The result is your net profit or loss.

What is a good ROI on a stock trade?

It depends entirely on your timeframe. The S&P 500 averages roughly 10% per year over the long run, so anything consistently above that is strong. For active traders, most professionals target risk-adjusted returns rather than raw ROI — a 5% gain with controlled risk often beats a 20% gain where you could have easily lost 15%.

Do I have to pay taxes on stock profits?

In the U.S., yes. Profits from selling stocks are subject to capital gains tax. If you held the stock for less than a year, gains are taxed at your ordinary income rate (up to 37%). If you held for over a year, you get the lower long-term rate of 0%, 15%, or 20% depending on your income. Tax-advantaged accounts like IRAs and 401(k)s are exempt from capital gains tax while the money stays in the account.

How do commissions affect stock trading profits?

Commissions eat into your profit on both ends of a trade — once when you buy and once when you sell. On a $5,000 trade, two $4.95 commissions reduce your profit by $9.90. That sounds small, but on frequent trades it compounds. Many brokers now offer zero-commission stock trading, but options, futures, and some international trades still carry fees.

What is the difference between realized and unrealized profit?

Unrealized profit is what your position is worth on paper — the gain if you sold right now. Realized profit is what you actually lock in when you close the trade. You only owe taxes on realized gains. This calculator shows both: enter your target sell price for unrealized estimates, or the actual sell price for realized numbers.

How does CAGR differ from simple ROI?

Simple ROI just tells you the total percentage gain or loss. CAGR annualizes that return so you can compare trades of different lengths. A 20% ROI in 6 months is more impressive than a 20% ROI over 3 years. CAGR makes this clear: the first is roughly 44% annualized, while the second is about 6.3% annualized.

Should I include dividends when calculating stock returns?

Yes. Dividends are part of your total return. A stock that gains 5% in price but pays 3% in dividends gave you an 8% total return. Ignoring dividends underestimates your actual performance, especially for income-oriented holdings. This calculator includes a dividends field so your total return reflects the full picture.