USD
🌍 Select Currency
Auto-detected from your IP · Select any currency
⚡ Free Online Tool

Stock Profit & Loss Calculator

Calculate net profit, ROI, annualized return, break-even price, and capital gains tax for any stock trade. Includes brokerage and commission costs.

📅 Last updated: May 2026 | ✍️ Reviewed by John Miller | 🔄 Formulas verified against current financial standards
📉 Stock Profit & Loss Calculator
Calculate profit, loss, ROI, and break-even for any stock trade. Accounts for brokerage commissions and capital gains tax.
📊 Trade Analysis
Total Invested
Total Received
Gross Profit / Loss
Net Profit (after tax)
Return on Investment
Annualized Return
Break-Even Sell Price
Capital Gains Tax Paid

❓ Frequently Asked Questions

What is the break-even sell price? +
The break-even price is the minimum sell price to cover your total buy cost (including brokerage). Selling above this generates profit; below it generates a loss.
What is annualized return? +
Annualized return converts any holding period's return into a yearly rate for fair comparison. A 30% return in 6 months = ~69% annualized. A 30% return in 3 years = ~9.1% annualized.
How is capital gains tax calculated? +
Tax = Net Profit × Tax Rate. In India: STCG 20% (<1 year), LTCG 12.5% (>1 year, above ₹1.25L). In USA: STCG at income tax rate, LTCG at 0%, 15%, or 20%.
What are brokerage commissions? +
Fees charged by your broker for executing trades. Include these to get accurate net profit. Most brokers charge 0.01-0.5% or a flat fee per trade. Always account for both buy and sell commissions.

How Stock Profit and Loss is Calculated

Calculating profit or loss on a stock trade sounds simple, but accounting for brokerage fees, taxes, and currency effects can significantly change your actual net return. This calculator computes the complete picture — gross profit, all applicable costs, and your true net gain or loss after everything is accounted for.

The basic formula is straightforward:

P&L = (Sell Price − Buy Price) × Quantity − Total Transaction Costs

However, the real-world complexity lies in the costs. Brokerage commissions, exchange fees, Securities Transaction Tax (STT), Goods and Services Tax on brokerage, stamp duty, and capital gains tax all reduce your actual return — sometimes substantially on short-term trades.

Short-Term vs Long-Term Capital Gains

One of the most important tax concepts for stock investors is the difference between short-term and long-term capital gains tax rates. In most countries, holding a stock for longer earns you significantly lower tax rates — a powerful incentive for long-term investing.

USA: Stocks held under 1 year are taxed as ordinary income (up to 37%). Stocks held over 1 year qualify for long-term capital gains rates of 0%, 15%, or 20% depending on income — a massive difference for high earners.

India: Short-term capital gains (under 1 year) on equity are taxed at 20%. Long-term capital gains (over 1 year) above ₹1.25 lakh are taxed at 12.5%. Long-term gains below ₹1.25 lakh are tax-free.

UK: Capital gains above the annual exempt amount are taxed at 18% (basic rate taxpayers) or 24% (higher rate) for residential property, and 10% or 20% for other assets.

Always factor the holding period into your investment decisions — the tax difference between selling one day before and one day after the long-term threshold can be thousands of dollars on a profitable trade.

Understanding Brokerage Costs and Their Impact

Brokerage costs have fallen dramatically in recent years — many brokers now offer zero-commission trades. However, other costs still apply and deserve attention:

Exchange fees and STT. Stock exchanges charge small transaction fees, and countries like India levy Securities Transaction Tax on every equity trade. On large trades these become meaningful.

Bid-ask spread. The difference between the buying and selling price of a stock at any given moment. For liquid large-cap stocks this is tiny; for illiquid small-caps it can be 0.5–2% — a significant hidden cost on each trade.

Currency conversion costs. When buying international stocks, currency conversion fees (typically 0.5–1.5%) apply twice — once when buying and once when selling. These costs compound over multiple trades.

The cumulative impact of trading costs is one reason why frequent short-term trading rarely outperforms a simple buy-and-hold strategy for most retail investors.

Tax-Loss Harvesting: Turning Losses into Tax Savings

Tax-loss harvesting is a strategy where you intentionally sell investments at a loss to offset capital gains elsewhere in your portfolio, reducing your overall tax bill. The loss from the sold investment cancels out an equal amount of gains from profitable trades.

For example, if you have $5,000 in capital gains from profitable trades and $2,000 in unrealized losses from another holding, selling that losing position creates a $2,000 loss that offsets your gains — you pay tax only on $3,000 instead of $5,000.

In many countries, capital losses can also be carried forward to offset gains in future years if they exceed gains in the current year. This makes tracking your stock P&L carefully throughout the year — not just at tax time — a valuable financial habit.

📌 Disclaimer: Stock P&L calculations are based on the prices, quantities, and costs you enter. Actual tax liability depends on your country's tax laws, holding period, income level, and other factors. Consult a tax advisor for guidance specific to your investment situation.