Stock Profit Calculator – Gain or Loss After Fees

Use the free Stock Profit Calculator below: your data never leaves your browser — all work happens on your device, and nothing is uploaded to any server. All results are estimates only and are not financial or tax advice.

What This Stock Profit Calculator Shows You

Buying low and selling high sounds simple, but fees sit on both sides of the trade and quietly eat into the gain. This calculator accounts for them. You enter the buy price per share, the sell price per share, the number of shares, and the fee on each side, and the tool reports your total cost, your sale proceeds after the sell fee, your gross gain before fees, your net profit or loss, and your return on investment as a percentage. A trade that looks profitable before fees can break even or lose money after them, especially on small positions, and the calculator shows that boundary exactly. All results are estimates only, not financial or investment advice, and taxes are not included.

How the Calculation Works

Total cost is the buy price multiplied by shares, plus the buy fee. Sale proceeds are the sell price multiplied by shares, minus the sell fee. Net profit is proceeds minus cost, and return on investment is net profit divided by total cost, expressed as a percentage. Take 100 shares bought at 50 with a 5 fee and sold at 68 with a 5 fee: cost is 5,005, proceeds are 6,795, net profit is 1,790, and return is about 35.8 percent. Now shrink the trade to 10 shares with the same fees: cost is 505, proceeds are 675, net profit is 170, and return falls to about 33.7 percent.

Break-Even Price and Why It Matters

Your break-even sell price is the price at which proceeds exactly cover cost, including both fees. For the 100-share example above, break-even is about 50.10, barely above the buy price, because the fees are small relative to the position. For a 10-share trade with 10 fees on each side, break-even rises to about 52, so the share must rise 4 percent before you make a cent. Knowing your break-even price before you trade changes how you judge a small gain: a 2 percent rise that looks like a win can still be a loss after fees. The calculator does not print break-even separately for stocks, but you can find it by lowering the sell price until net profit reaches zero, or by adding total fees to total cost and dividing by shares.

Fees, Spreads, and Taxes Beyond the Calculator

Brokerage fees are only part of trading costs. The bid-ask spread, which is the gap between the price buyers offer and sellers ask, costs a little on every trade, and it is wider for less liquid shares. Some brokers charge currency conversion fees if you trade in another currency. Taxes are the largest missing item in this calculator: capital gains tax, dividend tax, and differing rates for short-term versus long-term holdings vary by country and can take a large share of a gain. Account fees and market data subscriptions add further drag. The calculator’s job is to make the visible costs exact, so you can judge the trade before the hidden costs arrive.

A Worked Example With a Loss

Not every trade wins, and the calculator is equally useful for losses. Buy 200 shares at 40 with a 10 buy fee, and sell at 35 with a 10 sell fee: cost is 8,010, proceeds are 6,990, net loss is 1,020, and return is about minus 12.7 percent. The price fell 12.5 percent, but fees deepened the loss slightly. Seeing the loss stated precisely helps with two decisions: whether to sell and accept it, or hold and hope, and how large a position to take next time. Position sizing is risk management in disguise: a loss you can absorb without changing your plan is a lesson, while a loss that forces you to sell other holdings is a problem. Never risk money you need for essentials on a single trade.

Common Mistakes to Avoid

One common mistake is celebrating a gross gain while ignoring fees, which flatters small trades most. Another mistake is comparing trades by profit in money terms without looking at return percentage, which makes large positions look better regardless of efficiency. A third mistake is forgetting taxes, which can turn a good year into a tax bill you did not budget for. A fourth mistake is averaging down without a plan, buying more of a falling share until it dominates the portfolio. A fifth mistake is trading on a tip without checking the company’s earnings, debt, and valuation; a calculator can price a trade, but it cannot judge whether the share deserves your money.

Frequently Asked Questions

Does the calculator include dividends received while holding? No, it models buy and sell only; add any dividends received to your net profit manually. What if I buy in several lots at different prices? Use the average buy price across lots, weighted by shares, as the buy price input. Does return on investment include the time held? No, it is a simple return, not an annualised one; a 20 percent gain in one month and in five years are very different achievements. Can I use this for funds or ETFs? Yes, the same maths applies to any asset bought and sold in units with fees on each side. Is this investment advice? No, it is an educational estimate; check with a qualified professional before trading.

Related tools

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top