stock profit calculator

Stock Profit Calculator | Calculate Trade Profit, ROI & Net Gains

Stock Profit Calculator: Compute Trade Profit, ROI & Net Gains

When you sell a position, the price difference is only part of the story — commissions, fees, and the cost basis on each side determine your actual take-home. This calculator gives you the clean number: enter your buy price, sell price, share count, and commissions on each side to see net profit and ROI percentage. The capital-gains and time-horizon tables below help you reason about what to do with the proceeds.

Quick Trade Profit Estimator

Enter your trade details. The result updates as you type.

Total Cost $0
Net Proceeds $0
ROI %
Net Profit / Loss: $0 Enter trade details to compute profit

I. Capital Gains Tax Treatment (U.S. 2026)

Holding period and income bracket dramatically change what you keep. Long-term rates apply to positions held more than one year.

Holding PeriodTax TreatmentFederal Rate RangeNotes
Short-Term (≤ 1 yr)Ordinary income10% – 37%Same rate as your salary
Long-Term (> 1 yr)Long-term capital gains0%, 15%, or 20%Massive advantage vs short-term
+ Net Investment Income TaxNIIT surtax+ 3.8%Triggers above $200k single / $250k joint MAGI
State Capital GainsVaries by state0% – 13.3%FL/TX/WA/NV: $0 — CA/NY/HI: highest
Wash-Sale Loss DisallowedLoss deferred to new basisn/aRe-buying within 30 days kills the loss harvest

II. Profit Outcomes by Holding Period

Same $5,000 gross gain, different tax outcomes — illustrates why the one-year holding line is the single biggest decision in retail investing.

Scenario ($5k gross gain)Tax RateTax OwedNet Profit Kept
Sold at 11 months (24% bracket)24%$1,200$3,800
Sold at 13 months (24% bracket)15%$750$4,250
Sold at 13 months (12% bracket)0%$0$5,000
Held in Roth IRA (any period)0%$0$5,000

Expert Tips for Maximizing Trade Profit

  • Wait Past the One-Year Mark: The single highest-ROI move in retail investing — selling at month 13 instead of month 11 can cut your tax bill by 60% or more on the same dollar of gain.
  • Use Tax-Advantaged Accounts First: Hold high-turnover or short-term trades inside Roth IRAs, traditional IRAs, or 401(k)s. Outside them, every realized gain is a taxable event you have to net out before redeploying capital.
  • Harvest Tax Losses Strategically: Realize losses in losing positions to offset gains elsewhere — up to $3,000 of net losses per year offsets ordinary income, with the rest carrying forward indefinitely.
  • Avoid the 30-Day Wash-Sale Trap: Buying back the “substantially identical” security within 30 days disallows the loss for tax purposes and tacks it onto your new cost basis. Wait it out or rotate to a similar-but-not-identical fund.
  • Use Specific-Lot Identification: When selling part of a holding, instruct your broker which tax lot to sell (highest-cost-first to minimize gain, lowest-cost-first to maximize harvested loss). Default FIFO is rarely optimal.
  • Don’t Forget State and NIIT: A 15% federal LTCG rate becomes effectively 22%+ once you stack 3.8% NIIT and 3–13% state taxes. Plan in your full marginal rate, not the headline number.

Methodology: Total Cost = (Buy Price × Shares) + Buy Commission. Net Proceeds = (Sell Price × Shares) − Sell Commission. Net Profit = Net Proceeds − Total Cost. ROI % = (Net Profit / Total Cost) × 100. The calculator works for any direction — gains show in cyan, losses flip the result tile to red. Tax outcomes depend on holding period, account type, income bracket, and state — none of which this calculator computes; consult a tax professional for actual liability.

Keep planning View All Financial Tools