Stock Profit Calculator
This stock profit calculator determines your net profit or loss, total return percentage, and break-even exit price for any share trade.
You enter four numbers: your purchase price, your sale price, your total share count, and any broker transaction fees. At ModernWallet, we build tools that eliminate math confusion so you can evaluate the true financial result of an investment before committing cash. When you purchase multiple share lots across different dates rather than a single block, calculate your blended cost basis with our stock average cost calculator.
How it's calculated
Realized profit on a stock trade measures the net cash left over after accounting for all trade expenses. To compute the true dollar return, start with your net purchase cost. Multiply your share count by the purchase price per share, and add any buy-side brokerage commission. Next, determine your net sale proceeds by multiplying the shares sold by the execution price, and subtract any sell-side commission. Subtracting net purchase cost from net sale proceeds yields your realized profit or loss. Dividing that net dollar profit by your total initial outlay delivers your return percentage. The Securities and Exchange Commission (SEC) Investor.gov glossary defines profit as the money an investment earns after subtracting the original capital and related expenses. Many traders look only at gross sale proceeds, but ignoring transaction fees understates actual acquisition costs.
Your break-even stock price identifies the exact sale price per share required to exit a trade with zero net gain and zero net loss. To determine this figure, take your total purchase cost, add both the buy commission and the anticipated sell commission, and divide that combined sum by your total share count. Selling above this calculated threshold yields a positive cash return. Selling below this threshold produces a net loss. Factoring both entry and exit fees into your target exit price prevents unexpected losses on narrow price swings. A position that rises slightly in market value can still lose money once two separate transaction charges hit your account balance.
Tax liability directly reduces the final cash an investor keeps from a profitable trade. The Internal Revenue Service (IRS) divides investment gains into two distinct tax categories based on holding duration. Under IRS Topic No. 409 on capital gains and losses, shares held for one year or less generate short-term capital gains, which face taxation at your ordinary income tax rate. Shares held for more than one year qualify for long-term capital gains rates, which are generally lower than ordinary income tax brackets. When a trade ends in a loss, you can use that capital loss to offset other capital gains realized during the same calendar year. If your total losses exceed your total capital gains, IRS Publication 550 on investment income and expenses permits you to deduct up to $3,000 of net capital losses against your ordinary income per year. Any remaining unused losses carry forward into future tax years.
Transaction fees alter net trading returns, even in modern low-cost brokerage accounts. Many online brokerages now provide zero-dollar commissions on standard online stock trades. Even so, transaction charges still occur across specific trade channels, order types, and specialty account structures. Broker-assisted telephone orders, foreign market routing, physical certificate processing, and illiquid over-the-counter securities often incur explicit transaction fees. Assuming an account charges zero fees on every trade can skew your break-even calculations. Reviewing trade confirmation slips before executing high-volume or specialized orders ensures your calculation matches your true settlement statement.
A worked example
Consider an investor who buys 200 shares of an illustrative company at $50 per share, paying a $10 brokerage commission on the trade. The gross stock cost equals $10,000 (200 shares multiplied by $50). Adding the $10 buy commission produces a total net purchase cost of $10,010. Six months later, the investor sells all 200 shares at $65 per share, paying another $10 transaction fee to execute the sale. Gross proceeds from this sale total $13,000 (200 shares multiplied by $65). Subtracting the $10 sell commission leaves net sale proceeds of $12,990.
To calculate the realized dollar gain, subtract the total net purchase cost from the net sale proceeds. Subtracting $10,010 from $12,990 yields a net profit of $2,980. Dividing $2,980 by the total initial outlay of $10,010 results in a net return of 29.77%. Because the investor held the shares for six months (one year or less), this $2,980 gain represents a short-term capital gain taxed at ordinary income rates under IRS rules.
Now examine the break-even price for this same trade. The investor paid $10,010 to acquire the position and faces a $10 fee to exit, making total round-trip expenses equal $10,020. Dividing $10,020 by 200 shares gives a break-even price of $50.10 per share. Selling at exactly $50 per share would generate an actual cash loss of $20 because of the two $10 commissions. The investor must sell at or above $50.10 per share to avoid losing money on the completed trade.
Common mistakes to avoid
- Omitting commissions from both sides of the trade. Investors often deduct the fee paid when buying shares but forget to account for the transaction charge when selling, which inflates the reported profit.
- Confusing gross sale proceeds with net profit. Gross proceeds equal total shares multiplied by sale price, whereas net profit subtracts your original purchase cost and all associated transaction expenses.
- Overlooking the tax impact of holding duration. Selling shares held for one year or less triggers short-term capital gains rates at ordinary income levels, whereas holding beyond one year qualifies for preferential long-term capital gains rates.
- Assuming every brokerage trade carries zero fees. While standard online equity orders often feature zero-dollar commissions, specialty routing, telephone orders, and foreign securities frequently incur specific transaction charges that change your net return.
- Neglecting break-even requirements before setting exit limit orders. Placing a sell order right at your entry price guarantees a cash loss if your brokerage assessed trade commissions on either side of the position.
Frequently asked questions
How do you calculate profit on a stock trade?
To calculate profit on a stock trade, subtract your total net purchase cost from your net sale proceeds. Net purchase cost equals the shares bought multiplied by the purchase price per share, plus any buy-side commission. Net sale proceeds equal the shares sold multiplied by the sale price per share, minus any sell-side commission. Subtracting the net cost from the net proceeds gives your realized dollar profit or loss. To find your return percentage, divide that dollar profit by your total initial cost outlay and multiply by 100.
What is the break-even price on a stock trade?
The break-even price is the exact sale price per share where your net sale proceeds equal your total purchase cost. To compute it, add all buy-side and sell-side transaction fees to your gross purchase amount, then divide by the total number of shares. Selling above this price yields a net profit, while selling below it produces a net loss. This calculation ensures that trade commissions do not turn an apparent flat trade into an unexpected loss of cash.
Do I pay taxes on stock trading profit?
Yes, you generally pay capital gains taxes when you realize a profit by selling shares in a taxable brokerage account. If you hold the shares for one year or less, the Internal Revenue Service (IRS) treats the return as a short-term capital gain taxed at your ordinary income tax rate. If you hold the shares for longer than one year, the gain qualifies for lower long-term capital gains tax rates. You can review tax rules in IRS Publication 550. Investment gains inside tax-advantaged retirement accounts, like traditional or Roth individual retirement arrangements (IRAs), follow separate tax distribution guidelines.
Does holding a stock longer change how it is taxed?
Yes, the length of time you hold a stock determines whether you pay short-term or long-term capital gains tax rates. According to IRS Topic No. 409, the critical threshold is one calendar year. Assets sold after being held for one year or less generate short-term capital gains, which are taxed at the same rate as wages and salaries. Positions held for more than 365 days qualify for long-term capital gains rates, which are typically lower. If your strategy involves multi-year growth, you can evaluate your compound performance over extended holding windows using our annualized return calculator.
Do online brokers still charge commissions on stock trades?
Many major retail brokerages offer zero-dollar commissions on standard online equity transactions. However, fees can still apply depending on the trade channel and order characteristics. Broker-assisted orders placed over the telephone, foreign stock market trades, and certain illiquid securities still carry transaction fees. Review your trade confirmation slips for unusual or assisted orders so you can record accurate commission inputs.
How does a stock split affect my trade profit?
A stock split changes your total share count and your per-share cost basis without changing the overall dollar value of your holding. In a standard two-for-one split, you receive double the shares, while your cost basis per share cuts in half. Your total invested capital and overall dollar profit remain identical before and after the corporate action. If a company you hold undergoes a restructuring, use our stock split calculator to adjust your share count and adjusted cost basis correctly before running profit figures.
Sources
We prioritize primary sources for rules, formulas, rates, limits, and definitions. See our calculator methodology and editorial policy.