Stock Profit Calculator

Work out the gross and net profit of a share trade, the return and the break-even price — in your browser.

Informational content. This tool does not replace advice from a qualified professional. Use the results as a reference only.

How to use

  1. Type the purchase price per share, how many shares you bought and the price you sold — or plan to sell — them at.
  2. Add the brokerage fees for each side of the trade, either in reais or as a percentage of the amount traded.
  3. Read the net result, the return on what you invested, and the break-even price you would need just to get your money back.

About this tool

A share trade only becomes profit after the costs are paid. The gross result is the simple part: the difference between the sale price and the purchase price, multiplied by the number of shares. Buying 100 shares at R$ 25.00 and selling them at R$ 32.00 is a gross gain of R$ 700.00. What turns that into the number reaching your account is everything the broker charges — brokerage on the buy, brokerage on the sell, exchange and settlement fees. Twenty reais of total costs turn that R$ 700.00 into R$ 680.00 net, and the calculator keeps both figures side by side so the gap is always visible.

Two percentages describe the same trade and they are not the same number. The price change compares the two prices only: from R$ 25.00 to R$ 32.00 is +28.00%. The net return compares what came back with what actually left your pocket — the purchase amount plus the buying fee — so R$ 680.00 on R$ 2,510.00 invested is +27.09%. The third figure is the one traders check before pressing the button: the break-even price. With fees in reais it is the purchase amount plus both fees divided by the number of shares, R$ 25.20 in the example. With percentage fees the sell-side cost grows with the sale price, so the break-even becomes the purchase price multiplied by (1 + buying fee) and divided by (1 − selling fee).

The calculator deliberately stops before income tax. Tax rules for stock trades depend on the asset, on whether the operation was a day trade, on losses carried over from previous months and on rules that change from one year to the next — a tax table baked into a web page would be wrong sooner or later. As general information, individual investors in Brazil have long had an exemption for ordinary share sales up to R$ 20,000 in a single month, with day trades and other assets following different rules; treat that as the starting point for a conversation with an accountant, not as a calculation. Everything here runs in your browser: no prices, quantities or results are sent anywhere.

The formula

Gross result = (sale price − purchase price) × number of shares. Net result = gross result − buying fees − selling fees. Net return = net result ÷ (purchase price × shares + buying fees). Break-even sale price with fees in reais = (purchase amount + buying fee + selling fee) ÷ shares; with percentage fees = purchase price × (1 + buying fee %) ÷ (1 − selling fee %).

Frequently asked questions

How do I calculate the profit on a share trade?

Subtract the purchase price from the sale price, multiply by the number of shares, then subtract every fee charged on both sides. Selling 100 shares bought at R$ 25.00 for R$ 32.00 with R$ 10.00 of fees on each side gives R$ 700.00 gross and R$ 680.00 net.

What is the break-even price?

It is the sale price at which the trade closes at exactly zero after fees. Below it you lose money even when the share is worth more than you paid, because the fees eat the difference — in the example above, R$ 25.20 against a purchase at R$ 25.00.

Does the calculator work out income tax?

No, and that is deliberate. Tax rules vary by asset, by type of trade and by year, and accumulated losses change the result. As background, ordinary share sales up to R$ 20,000 in a month have long been exempt for individuals in Brazil, but check the rules in force or ask an accountant.

Should I enter fees in reais or as a percentage?

Use whichever your broker charges. A fixed brokerage per order goes in reais; a percentage of the amount traded goes in the percentage mode, which also makes the break-even price rise as the sale price rises.

Do my numbers leave my browser?

No. Every calculation runs in JavaScript on your device — the prices, quantities and results are never transmitted or stored.

Related tools

Long links? Shorten them for free

Vai.la turns any URL into a short link with click statistics, QR Code and your own biolink.

Vai.la is not responsible for how the tools are used or for decisions made based on their results.