Portfolio RebalanceTOOL
Dividend Calc
Zero-Commission & Fee Accounting • Real-Time P&L

Stock Profit Calculator

Calculate your exact profit or loss on stock trades. Account for buying and selling commissions, model multi-lot DCA purchases, find your break-even price, and estimate after-tax take-home returns.

Multi-Lot DCA SupportBreak-Even Target PriceCapital Gains Tax Deductions

⚡ Fast Trade Scenarios1-Click

Test common trading scenarios or input your exact execution prices below.

Real-time calculation
$
$
$
$
Capital Gains Tax Estimator
Calculate net take-home profit after tax deductions
Net Profit / Loss
+$1,980.00
+19.78% Return
Break-Even Sell Price:$100.20
Required Gain to Break Even:+0.20%
Total Shares:100
Average Purchase Price:$100.00
Initial Investment (Cost Basis):$10,010.00
Total Net Sell Value:$11,990.00
Total Trading Fees / Commission:$20.00
Part 1: The Mathematics

How to Calculate Stock Profit & Return on Investment (ROI)

Calculating your net financial gain on a stock trade requires accounting for both price appreciation and the frictional costs of trading (brokerage commissions, exchange fees, and regulatory surcharges). Even with modern zero-commission brokers, many platforms, options trades, international stock exchanges, and ADRs still levy transaction fees.

Standard Net Profit Equation:
Total Cost Basis = (Purchase Price × Shares) + Buy Commission
Net Sell Proceeds = (Selling Price × Shares) - Sell Commission
Net Profit = Net Sell Proceeds - Total Cost Basis
Return on Investment (ROI %) = (Net Profit / Total Cost Basis) × 100
Part 2: Break-Even Mastery

Understanding the Break-Even Price

Many traders mistakenly assume their break-even price is equal to their purchase price. However, because you pay transaction fees both entering and exiting a position, your stock must rise high enough to cover both fees before you achieve a true \$0.00 net return.

Example Scenario:

If you purchase 100 shares of Apple (AAPL) at \$200 per share with a \$10 purchase fee and expect a \$10 exit fee:

Break-Even Sell Price = (\$20,010 + \$10) / 100 = \$200.20 per share (+0.10% gain required).

Part 3: Cost Averaging

Dollar-Cost Averaging & Multi-Lot Scaling

Investors frequently scale into positions across multiple days, weeks, or market pullbacks ("averaging down"). If you buy 50 shares at \$120 and later buy 50 shares at \$100, your average purchase price is \$110. Our calculator's Multi-Lot DCA Mode enables you to model unlimited entry points with independent commissions, accurately establishing your true weighted breakeven threshold.

Part 4: Tax Strategy

After-Tax Returns: Short-Term vs. Long-Term Capital Gains

The difference between trading short-term versus holding past 365 days can be the difference between paying 37% federal tax or 15% long-term tax. Our built-in tax estimator helps swing traders and long-term investors calculate their true take-home cash after Uncle Sam's deduction.

Frequently Asked Questions: Stock Profit Calculation

How do you calculate stock profit and loss with commissions?
To calculate your true net stock profit or loss: multiply your sell price by the number of shares and subtract the selling commission to get your net proceeds. Then, multiply your purchase price by the number of shares and add the buying commission to get your total cost basis. Subtract your total cost basis from your net proceeds. If positive, you made a net profit; if negative, you realized a loss.
What is a stock break-even price and how is it calculated?
The break-even price is the exact price per share you must sell at so that your net profit after all buying and selling commissions equals zero. The formula is: Break-Even Price = (Total Cost Basis + Sell Commission) / Total Number of Shares. This is critical for active traders to ensure small percentage gains are not entirely wiped out by brokerage fees.
How does Dollar Cost Averaging (averaging down) affect my cost basis?
When you buy additional shares of a stock at different price points over time, your cost basis is calculated using a weighted average: sum the total cash spent across all buy lots (including buy commissions), and divide by the total cumulative number of shares purchased. Our Multi-Lot DCA calculator automates this calculation across unlimited purchase entries.
What is the difference between short-term and long-term capital gains tax on stocks?
In the United States and many tax jurisdictions, holding periods determine tax liabilities. Stocks held for one year or less (365 days or fewer) trigger short-term capital gains, which are taxed at ordinary income tax brackets (up to 37%). Stocks held for more than one year qualify for preferential long-term capital gains rates (0%, 15%, or 20% depending on income bracket).
Can I calculate profits for fractional shares?
Yes. Our calculator supports any arbitrary decimal number of shares (for example, 0.4512 or 12.875 shares), which is standard across modern brokerages like Robinhood, Fidelity, Charles Schwab, and Interactive Brokers.