Stock Return Calculator — Average Cost
Net profit, return and average cost from your trades, plus an averaging-down mode
Runs in your browser · nothing is uploaded
Updated 2026-10-04Calculation
The price you paid for one share. Up to 2 decimals.
The price you sold one share for.
A whole number of 1 or more.
The buy commission rate from your broker. This tool does not preset it.
The sell commission rate from your broker.
Choosing a market fills in the statutory rate. Edit it if you need another value.
For foreign stocks and other markets, type the sell-side tax rate yourself.
Stock return result
Enter the buy price, sell price and quantity to see the return and average cost. Broker commission is optional.
Commission is calculated from the rate you type and differs by broker and period. The sale tax uses the 2026 statutory rates, which can change yearly. Major-shareholder capital gains tax, dividends, FX and conversion fees are not included. Prices are handled to 2 decimals and fees are rounded to the smallest unit. This is not investment advice.
What it is
After you sell a stock, commissions and taxes make the real result differ from the price chart. This stock return calculator takes the buy price, sell price and quantity, and the commission and tax rates that you type in, and returns the net profit, the return, the average cost including commission and the break-even sell price. The average cost mode lets you enter several purchases to find your averaging-down cost, and a current price adds the unrealized profit. Everything is calculated in your browser.
How to use
- In Return mode, enter the buy price, sell price and quantity.
- Pick the market to fill in the sale tax rate, and add your buy and sell commission rates from your broker statement.
- Read the net profit, return, average cost and break-even sell price.
- In Average cost mode, enter the price and shares of each purchase, plus a commission rate and current price if you like.
- Use the add button to enter up to 10 purchases.
How it works
- Total cost = buy amount + buy commission, where commission is buy amount × rate.
- Net proceeds = sell amount − sell commission − transaction tax and special tax. KOSPI is 0.20% (0.05% + 0.15%), KOSDAQ 0.20% and KONEX 0.10%, effective 2026-01-01.
- Net profit = net proceeds − total cost, and return = net profit ÷ total cost.
- Average cost = total cost ÷ quantity, rounded to the smallest unit.
- Break-even sell price = total cost ÷ (quantity × (1 − sell commission rate − tax rate)).
- Averaging-down cost = sum of all purchase amounts ÷ total shares, with a commission-inclusive figure when you enter a rate.
- The broker commission rate is a value you type. Major-shareholder capital gains tax, dividends and exchange rates are not included.
- Amounts are computed as whole numbers in the smallest unit.
Examples
Buying at 70,000 and selling 10 shares at 80,000 on KOSPI. The 0.015% commission is a sample value for the illustration only, and the tax is the statutory KOSPI 0.2%.
| Item | Amount |
|---|---|
| Total cost | 700,105 |
| Net proceeds | 798,280 |
| Sale tax 0.2% | 1,600 |
| Net profit | 98,175 |
| Return | 14.02% |
For averaging down, buying 10 shares at 10,000 and 10 at 5,000 gives an average cost of 7,500. With a current price of 9,000 the unrealized profit is +30,000, a 20% return.
Common mistakes
Looking only at the sell price and ignoring commission and tax makes the return look higher than it is. Computing profit from an average cost that leaves out commission is another common slip. The average after averaging down must be weighted by shares, not a simple average of prices. The sale tax is the 2026 statutory rate and may change yearly, so check that it matches your trade date, and choose manual entry for foreign stocks. This is not investment advice.
FAQ
How is the return calculated?
Net profit divided by total cost. Cost is the buy amount plus buy commission, and proceeds are the sell amount minus sell commission and any transaction tax. Proceeds minus cost is the net profit.
How much tax is charged when I sell?
For 2026 (effective January 1), KOSPI stocks pay securities transaction tax of 0.05% plus agriculture and fishery special tax of 0.15%, 0.20% in total. KOSDAQ and K-OTC pay 0.20% with no special tax, and KONEX pays 0.10% (Securities Transaction Tax Enforcement Decree Article 5, Special Tax for Rural Development Act Article 5). Picking a market fills in the rate, and you can type your own for foreign stocks.
Why do I type the broker commission myself?
Commissions differ by broker and promotion, so the tool does not preset them. Enter the figures from your broker statement. Leaving them blank counts as 0%.
How is the average cost after averaging down worked out?
Add up the amount of every purchase and divide by the total shares. Buying 10 shares at 10,000 and 10 shares at 5,000 gives an average of 7,500. With a commission rate it shows the average with and without commission.
What is the break-even sell price?
The sell price at which the proceeds, after sell commission and tax, exactly recover your total cost. You must sell above it to make a profit.
Does it work for foreign stocks and decimal prices?
Prices accept up to 2 decimals. Exchange rates, currency conversion fees and capital gains tax are not included, so add those separately when you judge the result.
Related tools
Percentage Calculator
A percentage calculator that shows the formula behind every answer
Savings Calculator
Deposit and monthly savings interest, simple or compound, with optional tax
Loan Calculator
Monthly payment, total interest and a full amortization schedule with CSV download
Margin Calculator
Solve cost, price, margin and markup from any two, with fees, shipping and tax