finance calculator

Stock Profit Calculator

Calculate profit, ROI, and totals for a stock trade with optional fees.

Results

Profit
$1,500 USD
ROI
30.00%
Cost basis
$5,000 USD
Sale proceeds
$6,500 USD

How to use this calculator

  1. Enter shares, buy price, and sell price.
  2. Add any fees/commissions you pay on the trade.
  3. See profit, ROI, cost basis, and sale proceeds.

Inputs explained

Shares
Number of shares you bought and sold.
Buy price
Price per share when purchasing.
Sell price
Price per share when selling.
Fees/commissions
Total trading costs; subtracts from profit.

How it works

Profit = (sell − buy) × shares − fees.

ROI = profit ÷ cost basis.

Formula

Profit = (Sell − Buy) × Shares − Fees
ROI = Profit / Cost basis

When to use it

  • Checking if a target sell price hits your profit goal after fees.
  • Comparing ROI across multiple trades.
  • Quick what-if for taxes before harvesting gains/losses.

Tips & cautions

  • Include all fees to avoid overestimating profit.
  • Use ROI to compare trades with different sizes.
  • Pair with capital gains tax calculator to estimate after-tax results.
  • Does not include taxes, FX effects, or partial fills with different prices.
  • Assumes a single buy and sell price; complex lots may need weighted cost basis.

Worked examples

100 shares, buy $50, sell $65, $0 fees

  • Profit = $1,500
  • ROI = 30%

50 shares, buy $120, sell $135, $10 fees

  • Profit = $740
  • ROI ≈ 12.3%

Deep dive

This stock profit calculator shows profit, ROI, and totals for a trade after fees. Enter shares, buy/sell prices, and commissions to see cost basis, proceeds, and ROI instantly.

Use it for quick profit checks, setting target exits, or comparing trades—then pair with a capital gains calculator for after-tax planning.

FAQs

Does this include taxes?
No. It shows gross profit after fees. Use a capital gains calculator for estimated taxes.
What about FX conversion?
Not included. If trading foreign markets, account for FX gains/losses separately.
Can I use this for crypto?
Yes—the math works for any asset with buy/sell price and fees.
How do I handle multiple fills?
Use your weighted average buy/sell price and total fees to approximate combined profit.
Why include ROI?
ROI normalizes profit relative to cost basis so you can compare trades of different sizes.

Related calculators

Excludes taxes and FX effects. Not investment advice.