Stock Profit Calculator

Calculate your exact net return after brokerage fees, commissions, and capital gains taxes with institutional precision.

Number of Shares
Purchase Price (Per Share)
$
Sell Price (Per Share)
$
Buy Commission (Total) iTotal fee charged by your broker when buying the shares.
$
Sell Commission (Total) iTotal fee charged by your broker when selling the shares.
$
Tax Rate (Optional) iThe estimated capital gains tax percentage on your profit.
%
Investment Results
Net Return iYour total profit or loss after deducting all purchase costs, commissions, and taxes.
$0.00
Return on Investment (ROI)
0.00%
Break-Even Stock Price iThe exact price per share you need to sell at to neither make money nor lose money (covers all fees).
$0.00
Estimated Tax Amount
$0.00
Total Purchase Cost
$0.00
Total Payout
$0.00
*The accuracy of this calculator is not guaranteed and is intended for informational and educational purposes only.

Why “Gross Profit” is a Dangerous Illusion

Most brokerage apps show you a bright green number representing your “gains.” This number is often a lie because it ignores the friction of the real world.

Your broker doesn’t always deduct the commission you paid to enter the trade. They certainly don’t account for the capital gains tax you will owe when you finally sell.

Relying on gross figures leads to poor risk management. A 5% gain on paper can easily become a net loss after accounting for fees and taxes.

Use this calculator to determine exactly how much cash will actually hit your bank account after every stakeholder has taken their share.

Core Calculator Inputs

Number of Shares & Purchase Price

These two values determine your cost basis. Many traders overlook the “buy commission,” which adds to this initial expense.

Always enter the price you actually paid per share, not just the market price at the time. Your “fill price” often differs slightly from the ticker price due to market volatility and order type.

Sell Price (Target vs. Actual)

This input serves two distinct purposes. You can use it to forecast future profits by entering your “Price Target” to see if a trade is worth the risk.

Alternatively, enter your actual exit price to audit a completed trade. Comparing your projected profit to your realized profit reveals how much slippage or execution error is eating into your strategy.

Brokerage Commissions

While many retail brokers moved to a $0 commission model, many professional platforms still charge flat fees or per-share costs. Always include these in the “Buy Commission” and “Sell Commission” fields to avoid overestimating your performance.

The Myth of “Zero-Fee” Trading

You often pay for “free” trades through wider spreads and slippage. If your order fills at $50.05 when the ticker says $50.00, that $0.05 difference is a hidden cost. Use this calculator to see how those extra pennies per share drastically shift your break-even point.

Capital Gains Tax Impact

The IRS is your silent partner in every winning trade. Short-term capital gains (assets held for one year or less) are taxed at your ordinary income rate, which can be as high as 37%. Long-term gains (held for over a year) enjoy significantly lower rates, usually 0%, 15%, or 20%.

Output Metrics

Net Return (The Bottom Line)

Net return is the only number that matters for your bank account. It represents your profit after every fee, commission, and estimated tax dollar is stripped away. If this number is negative despite a higher sell price than buy price, your overhead is too high for your position size.

Return on Investment (ROI)

ROI measures the efficiency of your capital. A $1,000 profit is impressive on a $5,000 trade (20% ROI), but less so on a $100,000 trade (1% ROI). Use this percentage to compare your stock performance against “hands-off” benchmarks like the S&P 500.

Break-Even Stock Price

This is your “line in the sand.” It tells you exactly where the stock must trade for you to walk away with $0.00 after all expenses. Knowing this price allows you to set “stop-loss” orders that protect your principal capital rather than just your entry price.

Total Purchase Cost vs. Total Payout

These metrics track your liquidity. Total Purchase Cost shows the actual cash outlay required to open the position. Total Payout shows the gross cash returned to your brokerage account upon closing, which is essential for planning your next move.

Formulas

Gross Profit = (Shares × Sell Price – Sell Commission) – (Shares × Purchase Price + Buy Commission)

Break-Even Stock Price = ( (Shares × Purchase Price) + Buy Commission + Sell Commission ) / Shares

Tax Amount = Gross Profit × (Tax Rate / 100)
Net Profit = Gross Profit – Tax Amount

ROI = ( Net Profit / (Shares × Purchase Price + Buy Commission) ) × 100

Advanced Trading Scenarios

Dollar-Cost Averaging (DCA) Adjustments

If you buy 50 shares at $100 and another 50 at $80, your new cost basis is $90. You must use this weighted average in the “Purchase Price” field to get an accurate break-even point. Scaling into positions lowers your average cost, but it also increases your total buy commissions, which many traders forget to track.

Weighted Average Price = ( (Shares1 × Price1) + (Shares2 × Price2) + … ) / (Total Shares)

The Wash-Sale Rule Trap

The IRS forbids you from claiming a tax loss if you buy the same (or “substantially identical”) stock within 30 days before or after the sale. If you trigger a wash sale, you cannot deduct that loss on your current tax return. Instead, the loss is added to the cost basis of your new shares, making your “Break-Even” price significantly higher than you might think.

Dividend Yield & DRIP

Reinvesting dividends via a Dividend Reinvestment Plan (DRIP) increases your share count without an immediate out-of-pocket cash outlay. This effectively lowers your average cost per share over time. When using the calculator for long-term holds, ensure you use your updated “Adjusted Cost Basis” to see your true ROI.

How to Use This Tool Like a Pro

Pre-Trade Planning

Never enter a position without knowing your exit. Input your intended purchase price and the specific dollar amount you want to net after taxes.

Adjust the “Sell Price” field until the “Net Return” matches your profit goal. This tells you exactly where the market must move to justify the risk. If the required move is unrealistic based on the stock’s volatility, skip the trade.

Post-Trade Review

Your broker’s “Gain/Loss” tab is often a simplified estimate. Use this calculator to audit your trade fills and prepare for tax season.

Comparing your actual net return against your initial projections reveals “leaks” in your strategy. You may find that high commissions or short-term tax rates are neutralizing your edge, signaling a need to move to a different broker or hold positions longer.

FAQs

Q1. Do I owe taxes on stock profits if I leave the money in my brokerage account?

A: Yes. The IRS considers a profit “realized” the moment the sell order executes. It does not matter if you withdraw the cash to your bank or keep it in your brokerage account to reinvest.

Q2. How do margin interest rates factor into my net stock profit?

A: This calculator handles the transaction costs, but margin interest is a “carrying cost.” If you trade on margin, subtract the total interest charged by your broker during the holding period from the “Net Return” figure to find your true bottom line.

Q3. What happens to my break-even calculation if my stock undergoes a split?

A: A stock split changes the “Number of Shares” and the “Price per Share” but keeps the total value the same. For a 2-for-1 split, double your shares and halve your purchase price in the calculator to maintain an accurate break-even point.

Q4. Can I deduct commissions from my taxes?

A: Generally, yes. The IRS allows you to add buy commissions to your cost basis and subtract sell commissions from your proceeds. Our calculator does this automatically by factoring them into the Net Return.