Stock Profit & Loss Calculator
Input Parameters
Computed Results
The stock calculator helps you determine the estimated net profit or loss from a stock trade. By factoring in the number of shares, purchase and sale prices, brokerage commissions, and capital gains tax, it provides a clear breakdown of your total costs, net proceeds, and return on investment (ROI).
This calculator is for informational purposes only and does not constitute financial, investment, or tax advice.
Practical Use Cases
Understanding the true cost and potential return of a stock trade requires more than just comparing the buy and sell prices. Brokerage commissions and capital gains taxes can significantly impact your final earnings. This calculator is useful for estimating the net outcome of a trade before executing it, evaluating the impact of different fee structures (fixed vs. percentage-based), and determining the exact break-even price needed to cover all associated costs.
How to Use the Calculator
Follow these steps to estimate your stock trade's profitability:
- Enter the Number of Shares: Input the total quantity of shares you bought and sold.
- Input Prices: Provide the purchase price paid per share and the expected or actual sell price per share.
- Specify Commissions: Enter the brokerage fees for buying and selling. You can select whether these fees are a fixed amount or a percentage of the transaction value.
- Apply Capital Gains Tax: If applicable, enter your estimated capital gains tax rate. This percentage is applied only to your net trading profit.
- Review the Results: The calculator will display your estimated net profit or loss, ROI, total purchase cost, net sale proceeds, total commissions paid, capital gains tax, and the break-even sell price.
Formula & Explanation
The calculator determines your net profit and ROI using a series of calculations to account for all costs and revenues.
Total Purchase Cost
First, the gross purchase amount is calculated, and the buy commission is added.
Net Sale Proceeds
Next, the gross sale amount is calculated, and the sell commission is deducted.
Net Profit and ROI
The pre-tax profit is the difference between net proceeds and total cost. If the trade is profitable, the capital gains tax is subtracted to find the net profit.
Break-Even Sell Price
The break-even price is the exact price per share you must sell at to cover the total purchase cost and the sell commission, resulting in a net profit of zero.
Verified Scenario Walkthroughs
Here are examples of how different variables affect the outcome of a trade.
Small Trade with Fixed Fees
If you buy 5 shares at $20 each and sell them at $25 each, with a fixed $2 commission for both buying and selling, and a 0% tax rate:
- Total Cost: $102
- Net Proceeds: $123
- Net Profit: $21
- ROI: 20.59%
- Break-Even Price: $20.80
Large Volume Trade with Percentage Fees
If you trade 1,000 shares, buying at $150 and selling at $165, with a 0.5% commission on both sides and a 15% tax rate:
- Total Cost: $150,750
- Net Proceeds: $164,175
- Capital Gains Tax: $2,013.75
- Net Profit: $11,411.25
- ROI: 7.57%
Loss Scenario with Tax Impact
If you buy 50 shares at $100 and sell at $90, with fixed $10 commissions and a 20% tax rate:
- Total Cost: $5,010
- Net Proceeds: $4,490
- Capital Gains Tax: $0 (taxes are not applied to losses)
- Net Profit: -$520
- ROI: -10.38%
Mixed Fee Types and High Tax
If you buy 200 shares at $50 and sell at $75, with a fixed $15 buy commission, a 1% sell commission, and a 35% tax rate:
- Total Cost: $10,015
- Net Proceeds: $14,850
- Capital Gains Tax: $1,692.25
- Net Profit: $3,142.75
- ROI: 31.38%
Inputs & Outputs
| Field | Type | Description |
|---|---|---|
| Number of Shares | Input | The total number of shares bought and sold. |
| Purchase Price (per share) | Input | The purchase price paid per individual share. |
| Sell Price (per share) | Input | The price per share when selling. |
| Buy Commission | Input | Brokerage commission or trading fee incurred when buying. |
| Sell Commission | Input | Brokerage commission or trading fee incurred when selling. |
| Capital Gains Tax Rate | Input | Estimated capital gains tax rate applied to net trading profit. |
| Net Profit / Loss | Output | The final estimated profit or loss after all fees and taxes. |
| Return on Investment (ROI) | Output | The percentage return on the total purchase cost. |
| Total Purchase Cost | Output | The gross purchase amount plus buy commissions. |
| Net Sale Proceeds | Output | The gross sale amount minus sell commissions. |
| Total Commissions Paid | Output | The sum of buy and sell commissions. |
| Capital Gains Tax | Output | The estimated tax amount deducted from pre-tax profit. |
| Break-Even Sell Price | Output | The sell price per share required to exactly cover all costs. |
Frequently Asked Questions
How is the break-even price calculated?
The break-even price is calculated by determining the sell price per share needed to cover the total purchase cost plus the sell commission. If the sell commission is a percentage, the formula divides the total cost by the number of shares multiplied by one minus the commission rate.
Does the calculator apply capital gains tax to losses?
No. The calculator only applies the capital gains tax rate if the pre-tax profit is greater than zero.