\n\n

Stock Profit Calculator

How to Use This Calculator

Enter your buy price per share, sell price per share, number of shares, and any commission fees. Click Calculate to see total profit or loss, ROI percentage, and net proceeds.

$0
Profit/Loss
0%
ROI
$0
Net Proceeds
$0
Total Cost

How to Understand Your Results

Key Output — This is the primary number the calculator returns. It represents the answer to the question you asked, calculated using standard financial formulas.

Breakdown Details — These supporting numbers show you how the result was reached. They help you understand what's driving the outcome and where you might adjust your inputs.

What to Look For — Pay attention to how small changes in inputs affect the outputs. The relationship between your inputs and results is where the real insight lives — that's what helps you make better decisions.

Every calculation uses standard financial math — the same formulas banks, lenders, and investment platforms use. The inputs you provide determine the accuracy of the result.

Real-Life Scenarios: What Would You Do?

Scenario 1: Marcus, 28 — First-Time Investor Testing the Waters

Marcus bought 15 shares of a well-known tech company at $88 per share, with a $7 flat commission fee. He's been watching the stock for weeks and it's now at $103. He wants to see if selling now is worth it after fees and taxes — he's in the 22% federal capital gains bracket.

  • Input: Buy price $88/share, 15 shares, $7 commission, sell price $103/share, $7 commission, 22% long-term capital gains tax
  • Result: Gross profit: $225. Net after fees and taxes: $218.64. Return on investment: 16.2%
  • Key insight: Commissions and taxes shaved off only $6.36 — but if he held the stock for under a year, short-term rates (32% including state) would drop his net to $199.50.

"I honestly expected the fees to eat way more. But seeing how much higher the tax is for short-term sales makes me think I should hold at least a year before even considering selling."

Takeaway: Small profits can be surprisingly resilient to fees, but the holding period dramatically changes your net — always check before clicking "sell."

Scenario 2: Priya, 41 — Managing a Concentrated Position After a Merger

Priya inherited 200 shares of an industrial company at $34 per share. After a recent merger, the stock surged to $67. She wants to sell half to diversify, but needs to understand her exact gain and whether the inherited cost basis means she owes zero tax. She uses the calculator with the stepped-up basis of $34.

  • Input: Buy price $34/share, 100 shares (selling half), $0 commission (modern broker), sell price $67/share, $0 commission, 15% long-term capital gains tax
  • Result: Gross profit: $3,300. Net after tax: $2,805. Effective return: 97.1%
  • Key insight: Even with a stepped-up basis, the gain is still substantial. If she mistakenly used the original owner's cost of $12/share, her tax bill would more than double to $825 extra.

"I thought inherited stock was basically free money with no tax. Seeing the actual numbers — I still owe $495 on $3,300 gain. That's real money I need to set aside, not spend."

Takeaway: Inherited stock gets a stepped-up basis, but the gain from that new basis is still taxable — never assume "no tax" just because you didn't buy it yourself.

Scenario 3: Diane, 55 — The Wash Sale That Wiped Out Her Tax Deduction

Diane sold 50 shares of a REIT at a $12/share loss in late December to offset gains from other stocks. She bought back 50 shares of the same REIT 18 days later. She runs the calculator to see what actually happened, entering her original buy price of $45, sell at $33, and her repurchase date.

  • Input: Buy price $45/share, 50 shares, sell price $33/share, $0 commission, repurchased within 30 days
  • Result: Loss: $600. Disallowed loss due to wash sale rule: $600. Effective deductible loss: $0. Her cost basis on the new shares adjusts to $45/share instead of $33.
  • Key insight: The wash sale rule doesn't make the loss disappear forever — it defers it into the new shares' basis. But if she'd waited just 12 more days (30 days total), the entire $600 would be deductible this tax year.

"I thought I was being clever harvesting losses before year-end. Now I've got a $600 loss that's frozen and won't help my taxes this year. Next time I'll set a calendar alert for 31 days."

Takeaway: Tax-loss harvesting only works if you stay out of the same security for 30 full days — timing matters more than the size of the loss in a wash sale scenario.

Quick Comparison: What Changes the Outcome

See how different inputs affect the result:

Scenario Key Input Result A Result B
Marcus Holding period (tax rate) Long-term: $218.64 net Short-term: $199.50 net
Priya Cost basis method Stepped-up ($34): $495 tax Original ($12): $1,320 tax
Diane Repurchase timing 18 days: $0 deductible loss 31 days: $600 deductible loss
Diane (extended) Alternative: hold 1 year No wash sale: $600 loss now Loss deferred to basis: future gain lower

The single biggest variable across all three scenarios is timing — whether it's how long you hold, when you buy back, or the tax year you settle in. The calculator shows that a few days or months can change your net profit by hundreds of dollars.

Disclaimer: All calculations and scenarios are hypothetical and for illustrative purposes only. They assume constant conditions — real-world results may vary. These calculators are educational tools, not financial advice. Consult a qualified professional before making financial decisions.

Verified Math. Every formula is cross-checked against spreadsheet calculations using standard financial math. I don't invent formulas — I use the same ones banks and investment platforms use. Learn how I test →
Your Numbers Stay Private. This calculator runs entirely in your browser. Your loan amounts, savings goals, and investment figures never leave your device — not stored, not tracked, not seen by anyone. Privacy policy →
Not Financial Advice. This tool is for educational purposes. Results are estimates based on the numbers you enter — they're not guarantees. Always consult a qualified professional before making major financial decisions.
\`n \n