Stock Profit/Loss Calculator
Calculate your investment returns, profit/loss, and percentage gains
Investment Details
How It Works
This calculator helps you determine the profit or loss from your stock investments. Enter your purchase details, current or selling price, and any transaction fees to see your net return.
Investment Results
Total Investment
$15,010
Current Value
$17,500
Profit / Loss
+$2,490
Return %
+16.59%
Detailed Breakdown
Investment Insights
Long-Term Growth
Stocks historically outperform other investments over the long term, despite short-term volatility.
Diversification
Spreading investments across different sectors can reduce risk and improve returns.
Compound Returns
Reinvesting dividends and gains can significantly boost returns through compounding over time.
Benefits of This Tool
- Real-Time Profit/Loss – Updates instantly as you change buy/sell prices.
- Visual Doughnut Chart – See investment vs. profit/loss at a glance.
- Brokerage Fees Included – Factor in real-world trading costs.
- Partial Sell Support – Sell only part of your shares (e.g., 50 of 100).
- Dynamic Stock Title – Enter symbol (e.g., AAPL) to personalize the page.
- Color-Coded Results – Green for profit, red for loss — no confusion.
- Percentage Return – Know exactly how much % you gained or lost.
- 100% Free & Private – No login, no tracking, all in-browser.
- Mobile-Optimized – Works perfectly on phones and tablets.
Pro Tip: Use partial sell to calculate tax lots or trim positions!
About This Tool
The Stock Profit/Loss Calculator is a powerful, investor-focused tool that helps you track real-world returns on any stock trade — from day trading to long-term holds.
Enter your:
- Buy Price & Quantity – Your original investment
- Sell Price & Quantity – Current value or exit price
- Brokerage Fees – Real costs from platforms like Robinhood, E*TRADE, etc.
The tool instantly calculates:
- Total Investment – Cost + fees
- Current Value – Sell price × quantity
- Net Profit/Loss – With color coding
- Return % – (Profit / Cost) × 100
A **beautiful doughnut chart** shows your investment vs. profit (or loss) in real time — perfect for presentations, journaling, or tax prep.
Key features:
- Dynamic page title with stock symbol (e.g., “AAPL Profit/Loss Calculator”)
- Auto-sync sell quantity with buy quantity (editable for partial sells)
- Live updates on every input change
- Supports decimal prices (e.g., $150.75)
Built with Chart.js for smooth visuals and pure JavaScript — no backend, no data sent. All calculations run locally in your browser.
Ideal for:
- Day traders tracking P&L
- Long-term investors evaluating performance
- Tax preparers calculating capital gains
- Students learning finance
Remember: Profit isn’t real until you sell — but this tool makes it feel real.