Finance calculators

Stock Profit Calculator

Updated Aug 31, 2026 By Jehan Wadia
Rate Formulas
Currency & Settings
Trade Details
Enter a valid positive number
Enter a valid positive price
Enter a valid positive price
Commissions & Fees
Enter a valid non-negative number
Enter a valid non-negative number
Tax Settings
Tax is only applied on net gains. Set to 0% for tax-free accounts.
Enter a rate between 0 and 99.99

Net Profit / Loss (After Tax & Fees)
$2,331.02
Return on Investment: +44.68%
Total Cost (Buy + Fees)
$5,019.98
Total Revenue (Sell - Fees)
$7,490.01
Gross Profit (Before Tax)
$2,470.03
Tax Owed
$370.50
Total Commissions Paid
$19.98
Break-Even Sell Price
$50.24
Net Profit Per Share
$23.31
Effective Gain/Loss %
+46.43%
Detailed Cost Breakdown
Shares100
Buy Price Per Share$50.00
Sell Price Per Share$75.00
Total Buy Cost (Shares × Buy Price)$5,000.00
Buy Commission$9.99
Total Investment (Buy Cost + Buy Commission)$5,009.99

Total Sell Revenue (Shares × Sell Price)$7,500.00
Sell Commission$9.99
Net Sell Proceeds (Revenue - Sell Commission)$7,490.01

Gross Profit (Net Proceeds - Total Investment)$2,480.02
Capital Gains Tax (15%)$372.00
Net Profit / Loss$2,108.02
What-If Price Scenarios

See how your profit changes at different sell prices. Based on your current shares, commissions, and tax rate.

Profit vs. Sell Price
Cost & Profit Composition
Trade Comparison History

Click "Add to Comparison" above to log trades here for side-by-side comparison.

# Shares Buy Price Sell Price Total Cost Revenue Commissions Tax Net Profit ROI Action
No trades added yet. Calculate a trade and click "Add to Comparison".

Introduction

The Stock Profit Calculator helps you figure out how much money you made or lost on a stock trade. Just enter the price you bought a stock at, the price you sold it at, and the number of shares you traded. The calculator will show you your total profit or loss in dollars and as a percentage. You can also include broker fees and commissions to get a more accurate result. This tool makes it quick and simple to see how your stock investments performed.

How to Use Our Stock Profit Calculator

Enter your stock purchase and sale details below to find out how much profit or loss you made on your investment.

Buy Price Per Share: Type in the price you paid for each share of stock when you bought it. This is your cost per share in dollars.

Number of Shares: Enter the total number of shares you bought. This tells the calculator how many shares were part of your trade.

Sell Price Per Share: Type in the price you sold each share for. This is the amount you received per share when you closed your position.

Buying Commission: Enter any fee or commission you paid when you bought the stock. If your broker charges no fees, type in zero.

Selling Commission: Enter any fee or commission you paid when you sold the stock. If your broker charges no fees, type in zero.

Stock Profit Calculator – Figure Out Your Real Gains

When you buy and sell stocks, the price change is only part of the story. Your actual profit depends on several other costs that eat into your returns. This stock profit calculator helps you find your true net profit by accounting for the number of shares traded, broker commissions, and capital gains taxes, all in one place.

What Is Stock Profit?

Stock profit is the money you make (or lose) after buying shares at one price and selling them at a different price. If you buy 100 shares at $50 each and sell them at $75 each, your gross profit is $2,500. But that's not the whole picture. You still need to subtract fees and taxes to find your net profit, the money that actually stays in your pocket.

Costs That Affect Your Profit

Two main costs reduce your stock profit:

  • Broker Commissions: These are fees your brokerage charges when you buy or sell shares. Some brokers charge a flat fee per trade (like $9.99), while others charge a percentage of the trade value. Many modern online brokers now offer commission-free trading, which means you can set these to $0.
  • Capital Gains Tax: When you sell a stock for more than you paid, the government taxes that gain. In the United States, short-term capital gains (stocks held for one year or less) are taxed at your regular income tax rate, which can range from 10% to 37%. Long-term capital gains (stocks held for more than one year) are taxed at lower rates, typically 0%, 15%, or 20%, depending on your income. If you hold stocks in a tax-advantaged account like a Roth IRA or 401(k), you can set the tax rate to 0%.

Key Terms Explained

  • Return on Investment (ROI): This tells you how much profit you made compared to how much you spent. An ROI of 40% means you earned 40 cents for every dollar you invested.
  • Break-Even Sell Price: This is the minimum price per share you need to sell at just to get back all the money you put in, including commissions. Selling above this price means profit; selling below means a loss.
  • Net Profit Per Share: Your total net profit divided by the number of shares you traded. This makes it easy to compare trades of different sizes.

How to Use This Calculator

Enter the number of shares you bought, the price you paid per share, and the price you sold (or plan to sell) at. Then add your broker commissions and your tax rate. The calculator instantly shows your net profit, ROI, break-even price, and a full cost breakdown. You can also explore "What-If" scenarios to see how your profit would change at different sell prices, and use the comparison table to evaluate multiple trades side by side.

Tips for Maximizing Stock Profit

Keeping costs low is one of the simplest ways to increase your returns. Choose a broker with low or zero commissions. Hold investments for more than one year when possible to qualify for the lower long-term capital gains tax rate. And always calculate your break-even price before entering a trade so you know exactly what target you need to hit just to avoid a loss.

If you're building wealth over time rather than making individual trades, consider exploring strategies like dollar-cost averaging to reduce the impact of market volatility.


Formulas used

Total Investment (Buy Cost + Commission)
C_{\text{total}} = (N \times P_{\text{buy}}) + C_{\text{buy\_comm}}
Net Sell Proceeds
R_{\text{net}} = (N \times P_{\text{sell}}) - C_{\text{sell\_comm}}
Gross Profit
G = R_{\text{net}} - C_{\text{total}}
Capital Gains Tax Owed
T = \begin{cases} G \times \dfrac{r_{\text{tax}}}{100} & \text{if } G > 0 \\ 0 & \text{otherwise} \end{cases}
Net Profit / Loss
P_{\text{net}} = G - T
Return on Investment (ROI)
\text{ROI} = \frac{P_{\text{net}}}{C_{\text{total}}} \times 100\%
Break-Even Sell Price (Flat Commission)
P_{\text{BE}} = \frac{C_{\text{total}} + C_{\text{sell\_flat}}}{N}
Break-Even Sell Price (Percentage Commission)
P_{\text{BE}} = \frac{C_{\text{total}}}{N \times \left(1 - \dfrac{r_{\text{sell}}}{100}\right)}

Frequently asked questions

How is stock profit calculated?

Stock profit is calculated by subtracting your total costs from your total revenue. First, multiply the number of shares by the buy price and add the buy commission to get your total investment. Then multiply shares by the sell price and subtract the sell commission to get your net proceeds. The difference is your gross profit. If there is a gain, capital gains tax is subtracted to give you the final net profit.

What is the difference between gross profit and net profit on a stock trade?

Gross profit is the money you made before taxes. It equals your sell proceeds minus your total investment (including commissions). Net profit is what you actually keep after capital gains tax is also subtracted. If your trade results in a loss, there is no tax, so gross profit and net profit are the same.

Should I use flat fee or percentage for commissions?

Use flat fee if your broker charges a fixed dollar amount per trade, like $9.99. Use percentage if your broker charges a percent of the trade value, like 0.1%. Check your brokerage account to see which type they use. Many modern brokers charge $0 commissions, so you can leave both at zero.

What tax rate should I enter?

Enter your capital gains tax rate. In the U.S., short-term gains (held one year or less) are taxed at your income tax rate, which can be 10% to 37%. Long-term gains (held over one year) are usually taxed at 0%, 15%, or 20%. If your stocks are in a tax-free account like a Roth IRA, enter 0%.

What is the break-even sell price?

The break-even sell price is the lowest price per share you need to sell at to get back all the money you spent, including commissions. At this price, your profit is exactly zero. Selling above this price means you make money. Selling below it means you lose money.

Is tax applied when I lose money on a stock?

No. The calculator only applies capital gains tax when there is a net gain after subtracting all commissions. If your trade results in a loss, the tax owed is $0. In real life, losses may offset gains on other trades, but this calculator handles one trade at a time.

How do I calculate profit if my broker charges zero commission?

Set both the buy commission and sell commission to 0. The calculator will then only factor in the share prices and tax rate. Many popular brokers like Robinhood, Fidelity, and Charles Schwab offer commission-free stock trades.