Updated on April 28th, 2026

Stock Profit Calculator

Created By Jehan Wadia

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. Whether you are a beginner learning about investing or an experienced trader tracking your returns, 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. To understand how your returns stack up over time, you can also use our ROI Calculator to measure performance across different investments.

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%. For a deeper look at how taxes impact your trades, try our Capital Gains Tax Calculator.

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. Our ROI Calculator can help you analyze returns across your entire portfolio.
  • 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. For a broader look at break-even analysis in business and investing, check out our Break Even Calculator.
  • 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. For dividend-paying stocks, our Dividend Calculator and Dividend Yield Calculator can help you estimate the income side of your returns. And to see how your gains compound over the long run, our Compound Interest Calculator and Investment Calculator are valuable planning tools. If you're investing within a retirement account, our Roth IRA Calculator and 401k Calculator can help you project your tax-advantaged growth.


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.

Can I enter fractional shares?

Yes. The calculator supports fractional shares up to four decimal places. For example, you can enter 10.5 or 0.7523 shares. This is useful if your broker allows you to buy partial shares of expensive stocks.

What does Return on Investment (ROI) mean in this calculator?

ROI shows your net profit as a percentage of your total investment cost (including commissions). For example, an ROI of 40% means you earned 40 cents for every dollar you put in. A negative ROI means you lost money on the trade.

What is the difference between ROI and Effective Gain/Loss percentage?

ROI is based on your total investment, which includes the stock purchase cost plus buy commissions. Effective Gain/Loss percentage is based only on the stock purchase cost (shares times buy price), without including commissions in the base. Both measure your return but from slightly different starting points.

How do the What-If Price Scenarios work?

The What-If scenarios show your net profit and ROI at different sell prices. They take your current buy price and show results if the stock moves up or down by set percentages like -30%, -10%, +10%, +50%, and more. Your shares, commissions, and tax rate stay the same for each scenario.

How does the Trade Comparison History work?

After you calculate a trade, click Add to Comparison to save it to the history table. You can add multiple trades with different inputs to compare them side by side. Each row shows shares, prices, costs, commissions, tax, net profit, and ROI. You can remove individual trades or clear all at once.

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.

Can I use this calculator for currencies other than U.S. dollars?

Yes. Use the currency dropdown at the top to switch between Dollar ($), Pound Sterling (£), Euro (€), and Yen (¥). All displayed values and charts will update to show the selected currency symbol.

What does the Profit vs. Sell Price chart show?

This chart plots your net profit and gross profit across a range of possible sell prices. It helps you see how much you would make or lose at different price levels. A red dashed line marks the break-even point, and a vertical line marks your current sell price.

What does the Cost and Profit Composition chart show?

This donut chart breaks down where your money goes. It shows the stock purchase cost, total commissions, capital gains tax, and net profit as slices of the total. If you had a loss, it shows the net loss instead of profit and tax.

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.


Related Calculators

Rule of 72 Calculator

Visit Rule of 72 Calculator

IRR Calculator

Visit IRR Calculator

Payback Period Calculator

Visit Payback Period Calculator

DCF Calculator

Visit DCF Calculator

Bond Yield Calculator

Visit Bond Yield Calculator

Bond Value Calculator

Visit Bond Value Calculator

Annuity Calculator

Visit Annuity Calculator

DCA Calculator

Visit DCA Calculator

Future Value Calculator

Visit Future Value Calculator

Present Value Calculator

Visit Present Value Calculator

ROI Calculator

Visit ROI Calculator

CAGR Calculator

Visit CAGR Calculator

Investment Calculator

Visit Investment Calculator