Stock Profit Calculator

Calculate stock trade profit or loss, ROI, and after-tax gains. Supports multiple lots, FIFO/LIFO cost basis, short sales, and capital gains tax estimates.

$
$
$
Total Profit / Loss
Return on Investment (ROI)
Total Cost (Buy)
Total Revenue (Sell)
Extended More scenarios, charts & detailed breakdown
$
$
$
$
Profit / Loss
ROI %
Total Cost Basis
Net Proceeds
Professional Full parameters & maximum detail
$
$
$
$
%

Cost Basis

Lot 1 Cost Basis
Lot 2 Cost Basis
Total Cost Basis
Total Sale Proceeds

Gains & Tax

Long-Term Gains
Short-Term Gains
Estimated Total Tax
Net After-Tax Profit

Performance

Annualized Return (Lot 1)

How to Use This Calculator

  1. Enter Buy Price and Sell Price per share.
  2. Enter the Number of Shares.
  3. Add any Commission per trade (often $0 at modern brokers).
  4. See Profit/Loss and ROI instantly.
  5. Use the After Tax tab to see net profit after capital gains tax.

Formula

Profit/Loss = (Sell Price − Buy Price) × Shares − Total Commissions

ROI = Profit ÷ Total Cost Basis × 100

Annualized Return = (Sell / Buy)^(1/Years) − 1

Example

Example: Bought 100 shares at $50, sold at $75, no commission.

  • Total Cost: $5,000 | Total Revenue: $7,500
  • Profit: $2,500 | ROI: 50%
  • Long-term (held > 1 yr) at 22% bracket: 15% LTCG tax = $375
  • Net After-Tax Profit: $2,125

Frequently Asked Questions

  • Profit = (Sell Price − Buy Price) × Shares − Commissions. ROI = Profit ÷ Total Cost × 100. If the result is negative, you have a loss.
  • Stocks held over 1 year qualify for long-term capital gains rates (0%, 15%, or 20% depending on income). Stocks held 1 year or less are taxed at your ordinary income rate, which can be up to 37%.
  • FIFO (First In, First Out) assumes the oldest shares are sold first. LIFO (Last In, First Out) assumes the newest shares are sold first. The method affects which lots are sold and therefore your tax liability.
  • A wash sale occurs when you sell a stock at a loss and buy the same or substantially identical stock within 30 days before or after. The IRS disallows the loss deduction in this case.
  • Annualized Return = (Ending Value / Beginning Value)^(1/Years) − 1. This converts a multi-year return to an equivalent annual rate, allowing fair comparison between investments held for different periods.

Related Calculators

Sources & References (5)
  1. IRS — Topic 409: Capital Gains and Losses — Internal Revenue Service
  2. SEC — Investor Bulletin: Stocks — U.S. Securities and Exchange Commission
  3. FINRA — Understanding Investment Returns — Financial Industry Regulatory Authority
  4. IRS — Publication 550: Investment Income and Expenses — Internal Revenue Service
  5. SEC — Beginners Guide to Investing in Stocks — U.S. Securities and Exchange Commission