Stock Average Price Calculator

Enter each buy and sell with quantity, price and fee, then see shares held, average cost, profit, the break-even sell price and how to average down.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Enter your trades

    Add a lot for each buy and sell with date, quantity, price and fee, or import a CSV.

  2. 2
    Set selling costs

    Type the percentage and fixed fee you pay when you sell.

  3. 3
    Read the position

    Check shares held, average cost, realised profit and break-even price.

  4. 4
    Add today's price

    Enter the current price to see market value and unrealised profit.

  5. 5
    Plan a target

    On the target tab, solve for shares or buy price needed for a target average.

  6. 6
    Build a ladder

    List planned buys at lower prices, watch the average change and print the report.

About this tool

When you buy the same share several times at different prices, your real entry price is the weighted average of all those buys, including the commissions you paid. Broker apps show that figure, but they do not answer the questions that come next. How many more shares would I need to buy at today's price to bring my average down to a certain level? At what price do I need to sell to get all my money back after selling costs? What happens to my average if I buy a little more at each of three lower prices? This calculator answers all three. Enter each trade as a lot with a date, buy or sell, quantity, price and fee, or import them from a CSV export. The tool sorts the lots by date and keeps a running position using the average cost method: fees are added to cost, and a sale removes shares at the current average and records the realised profit. The summary shows shares held, average cost, the money still invested and the unrealised profit at the current price after selling costs. The target tab solves for the number of shares or the buy price needed to reach a target average, and the ladder tab lets you plan a series of buys and watch the average move after each one.

How the average is kept

For each buy, quantity times price plus the fee is added to the cost, and the quantity is added to the shares held. For each sale, the shares sold are removed at the average cost of that moment, so the average itself does not change, and the difference between the sale proceeds after fee and that cost is booked as realised profit.

Reaching a target average

If you hold Q shares at an average A and buy q more at price P with fee f, the new average is (Q times A plus q times P plus f) divided by (Q plus q). Solving for q gives the shares needed to reach a target T. This only works when P is below T and T is below A; the tool tells you when the target is out of reach.

Break-even

To get your money back you must sell at the cost of the shares held plus the fixed selling fee, divided by the number of shares times one minus the selling percentage. That price is shown in the summary.

Limits

Average cost is one of several methods. Tax rules in many countries use first-in first-out or chosen lots, which can give a different gain on a sale. Dividends, splits and currency changes are not adjusted. The calculator does arithmetic only and does not say whether buying more is wise.

Worked example

You bought 50 shares at $61.20, 40 at $54.80 and 60 at $47.10, sold 30 at $52.50 and then bought 80 at $41.30, paying $1 per trade. You now hold 200 shares at an average cost of $48.85, with $9,769.80 invested, and the earlier sale realised a small loss of about $42. At today's $38.50 the position is down about $2,078 or 21 percent after a 0.1 percent selling cost. To pull the average down to $42 you would need to buy 275 more shares at $37. With only 100 more shares, you would have to buy at $28.29 or lower. A three-step ladder of 50 at $36, 75 at $33 and 100 at $30 brings the average to about $40.11.

Quick facts

Frequently asked questions

Are fees included in the average?

Yes. Each buy fee is added to the cost of that lot, so the average reflects what you really paid per share.

What happens to my average when I sell?

Under the average cost method it stays the same. The shares leave at the current average, and the difference to the sale price becomes realised profit or loss.

Why can I not reach my target?

Buying only lowers the average toward the new buy price. If the buy price is at or above the target, no number of shares will get you there.

Can I import trades from my broker?

Yes, from a CSV with columns for date, side, quantity, price and fee. Column names are matched loosely, and you can edit the rows afterwards.

Does it handle stock splits?

Not automatically. Adjust older lots by the split ratio before entering them, for example double the quantity and halve the price for a two-for-one split.

Is this investment advice?

No. Averaging down adds money to a falling position. The tool shows the numbers so you can make your own decision.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages