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
- Enter Buy Price and Sell Price per share.
- Enter the Number of Shares.
- Add any Commission per trade (often $0 at modern brokers).
- See Profit/Loss and ROI instantly.
- 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) ▾
- IRS — Topic 409: Capital Gains and Losses — Internal Revenue Service
- SEC — Investor Bulletin: Stocks — U.S. Securities and Exchange Commission
- FINRA — Understanding Investment Returns — Financial Industry Regulatory Authority
- IRS — Publication 550: Investment Income and Expenses — Internal Revenue Service
- SEC — Beginners Guide to Investing in Stocks — U.S. Securities and Exchange Commission