Stock Profit / Loss Calculator
Track multiple purchases of the same stock at different prices. Enter each lot separately to see per-lot P&L, your weighted average cost basis, and a visual breakdown of each position's contribution to your total gain or loss.
Add a row per purchase. Bought at different prices? That's cost averaging — add each batch separately to see how each lot performs.
| # | Purchase Price | Shares | Cost Basis | Current Value | P&L ($) | P&L (%) | Weight |
|---|
// Cost Basis
The total amount you paid across all purchase lots. This is your break-even reference — you need the current value to exceed this to be in profit.
// Average Purchase Price
Total cost basis ÷ total shares. When you buy more at lower prices you "average down" — bringing this number closer to the current price speeds up recovery.
// Lot Weight
Each lot's share of your total cost basis. A 40% weight means that lot represents 40% of your invested capital, so its performance has a proportionally larger impact.
// Unrealised P&L
The profit or loss you would make if you sold right now at the current price. It only becomes realised — and potentially taxable — when you actually sell.
// How to Use Online Stock Profit / Loss Calculator
- Enter or paste your source data into the tool input.
- Click the primary action button to run Online Stock Profit / Loss Calculator.
- Review the output, then copy or export your result.
// FAQ: What does Online Stock Profit / Loss Calculator do?
Online Stock Profit / Loss Calculator helps you track multiple purchases of the same stock at different prices. enter each lot separately to see per-lot p&l, your weighted average cost basis, and a visual breakdown of each position's contribution to your total gain or loss in your browser with instant results.
// FAQ: How do I use Online Stock Profit / Loss Calculator?
Paste or type your input, choose the needed action, and copy the generated output when the result is ready.
// FAQ: Is my data safe when using Online Stock Profit / Loss Calculator?
Yes. Processing runs in your browser session for this page, so your content is not uploaded by this tool workflow.
// FAQ: Can I use Online Stock Profit / Loss Calculator on mobile devices?
Yes. Online Stock Profit / Loss Calculator works on modern mobile browsers, so you can run it from phones and tablets.