Stock Profit Calculator

See exactly how much you made (or lost) on a trade. Punch in your buy price, sell price, and shares.

Trade Details

$
$

Commissions (optional)

$
$
Frequently Asked Questions

Stock Profit: The Complete Guide

Everything about calculating stock profit, understanding returns, and taxes on gains.

Stock profit (or loss) is the difference between what you received when selling and what you paid when buying, minus any fees. The core formula is straightforward:

Profit = (Sell Price - Buy Price) x Shares - Commissions

Here's how each piece works:

  • Total Cost — The buy price per share multiplied by the number of shares, plus any buy-side commission or broker fee. This is your total cash outlay.
  • Total Revenue — The sell price per share multiplied by the number of shares, minus any sell-side commission. This is the cash you actually receive.
  • Net Profit / Loss — Total Revenue minus Total Cost. A positive number means you made money; a negative number means you lost money.
  • Return Percentage — Profit divided by Total Cost, multiplied by 100. This tells you how efficiently your capital was deployed, regardless of the dollar amount.

For example, if you bought 50 shares at $100 and sold them at $120 with no commissions, your profit is (120 - 100) x 50 = $1,000, and your return is $1,000 / $5,000 = 20%. The return percentage is what lets you compare trades of different sizes on equal footing.

Yes, always. Commissions and fees are a real cost of trading, and ignoring them overstates your actual returns. Even in the era of "zero-commission" brokers, there are often hidden costs you should be aware of.

Types of trading costs:

  • Explicit commissions — The per-trade fee charged by your broker. Traditional brokers may charge $5-$10 per trade, while many modern platforms charge $0.
  • Payment for order flow (PFOF) — Even with "free" trades, brokers like Robinhood route your orders to market makers who may give you a slightly worse price. This hidden cost is typically fractions of a cent per share but adds up on larger trades.
  • SEC and FINRA fees — Tiny regulatory fees (fractions of a cent per share) that apply to sell transactions. Most brokers pass these through.
  • Spread cost — The difference between the bid and ask price. If a stock has a bid of $99.95 and an ask of $100.05, you're paying a $0.10 spread each way. This is the biggest hidden cost for most retail traders.

For this calculator, enter your explicit commissions in the commission fields. The spread cost is already baked into your actual buy and sell prices. If you're trading frequently or with large positions, even small per-trade fees can significantly eat into your returns over time.

In the United States, profits from selling stocks are subject to capital gains tax. The rate you pay depends on how long you held the stock before selling. This is one of the most important concepts in investing because it directly impacts your after-tax returns.

Short-term capital gains (held less than 1 year):

  • Taxed at your ordinary income tax rate, which can range from 10% to 37% depending on your tax bracket.
  • For a high earner in the 37% bracket, nearly 40% of your short-term gains go to taxes (including the 3.8% Net Investment Income Tax).
  • Day traders and swing traders are almost always paying short-term rates, which is why consistent profitability in short-term trading is so difficult after taxes.

Long-term capital gains (held 1 year or more):

  • Taxed at preferential rates: 0%, 15%, or 20% depending on your taxable income.
  • Most middle-income investors pay the 15% rate. The 0% rate applies to lower income levels, and 20% kicks in for high earners.
  • High earners may also owe the 3.8% Net Investment Income Tax (NIIT), bringing the effective top rate to 23.8%.

Tax-loss harvesting: If you sell a stock at a loss, you can use that loss to offset gains from other trades. If your losses exceed your gains, you can deduct up to $3,000 per year against ordinary income and carry the rest forward. This is why some investors intentionally sell losing positions before year-end.

This calculator shows pre-tax profit. To estimate your after-tax return, multiply your profit by (1 minus your applicable tax rate). Always consult a tax professional for your specific situation.

"Good" depends entirely on your time horizon, the risk you took, and what the broader market did during the same period. A 10% return sounds great until you realize the S&P 500 returned 25% that same year.

Useful benchmarks:

  • S&P 500 historical average — About 10% per year (nominal) or 7% after inflation. If your individual stock picks consistently beat this, you're doing better than most professional fund managers.
  • Risk-adjusted returns — A 15% return on a volatile small-cap biotech isn't necessarily better than a 12% return on a diversified index fund. The Sharpe Ratio measures return per unit of risk, and it's a more meaningful way to evaluate performance.
  • Your cost of capital — If you're borrowing on margin at 8% to buy stocks, you need to earn more than 8% just to break even. Your return should comfortably exceed your cost of capital.
  • Inflation — A 5% nominal return in a year with 4% inflation means your real (purchasing power) return was only about 1%. Always think in real terms for long-term planning.

As a rough guide: beating the market by 2-3% annually over a long period puts you in elite company. Even Warren Buffett has acknowledged that consistently outperforming the index is extremely difficult, which is why he recommends low-cost index funds for most investors.

Unrealized gains (or losses) are profits that exist on paper but haven't been locked in by selling. The calculation is identical to a realized profit — you just use the current market price as your "sell price."

Unrealized Profit = (Current Price - Buy Price) x Shares

To use this calculator for unrealized gains, simply enter the current stock price in the "Sell Price" field. Don't include sell commissions since you haven't sold yet (or include estimated commissions if you want a more realistic picture).

Key differences between realized and unrealized gains:

  • Taxes — You don't owe taxes on unrealized gains. Capital gains tax only applies when you actually sell. This is the core advantage of a "buy and hold" strategy: you defer taxes and let your full investment compound.
  • Volatility — Unrealized gains can vanish quickly. A stock might be up 30% one month and flat the next. That's why many investors use trailing stop-losses to protect unrealized gains.
  • Portfolio reporting — Brokerage accounts typically show both your unrealized P&L (open positions) and realized P&L (closed trades). Both matter, but only realized gains/losses affect your tax bill.

A common investor mistake is treating unrealized gains as "house money" and taking more risk with them. Your unrealized profit is real money that you could convert to cash at any time. Treat it with the same respect as your original investment.

This calculator focuses on price-based returns — the profit from buying low and selling high. It does not automatically include dividends, but you can factor them in manually.

How dividends affect your total return:

  • Total return = Price return + Dividend return — If you bought a stock at $100 and it's now at $110 with $3 in dividends received, your total return is $13 per share (13%), not just $10 (10%).
  • Dividend reinvestment (DRIP) — If you reinvested dividends to buy more shares, your effective cost basis is lower and you hold more shares. To calculate this accurately, you'd need to track each reinvestment as a separate purchase.
  • Dividend taxes — Qualified dividends are taxed at the long-term capital gains rate (0-20%), while non-qualified dividends are taxed as ordinary income. Unlike capital gains, dividend taxes are owed in the year they're received, even if you reinvest.

Quick workaround: To include dividends in this calculator, add the total dividends received to your sell price. For example, if you received $500 in dividends total during your holding period and sold at $185/share for 100 shares, you could enter $190/share as the sell price ($185 + $5 per-share dividend equivalent). This gives you an approximate total return figure.

For high-dividend stocks and REITs, dividends can represent a significant portion of total return. The S&P 500's historical 10% annual return includes roughly 2% from dividends, meaning price appreciation alone averaged about 8%.

Stock splits change the number of shares you own and the price per share, but they do not change the total value of your position or your profit. Think of it like cutting a pizza into more slices — you have more pieces, but the same amount of pizza.

How splits work in practice:

  • Forward split (e.g., 4-for-1) — You receive 4 shares for every 1 you owned, and the price divides by 4. If you owned 100 shares at $400 pre-split, you now own 400 shares at $100. Total value: $40,000 either way.
  • Reverse split (e.g., 1-for-10) — Your shares consolidate. If you owned 1,000 shares at $2, you now own 100 shares at $20. Companies do this to meet exchange listing requirements or to appear more "institutional."

Using this calculator with splits: The easiest approach is to use split-adjusted prices. Most financial data providers (Yahoo Finance, Google Finance) show historical prices that are already adjusted for splits. If you're using split-adjusted prices, simply enter them as-is along with your current share count.

Alternatively, you can use pre-split prices with your pre-split share count, or post-split prices with your post-split share count — both give the same profit result. Just don't mix pre-split prices with post-split share counts or vice versa, as that will produce wildly incorrect numbers.

Important note: Your broker automatically adjusts your cost basis when a split occurs. If you bought 100 shares at $400 and a 4-for-1 split happens, your broker records your cost basis as 400 shares at $100 each. This adjusted cost basis is what you use for tax calculations when you eventually sell.

Want to know what a stock is actually worth?