Bufetico Join the waitlist

Stock average calculator

Your real average cost per share, with fees, sales, splits and reinvested dividends, and the price you need to break even after the fee to sell.

Want these tools on your phone? They’re coming to the Bufetico app. Join the waitlist »

bufetico.com/tools/stock-average-calculator ·

An educational tool, not investment advice. The result comes from the numbers you put in.

Your numbers

Try an example:

Your buys and sells, oldest first

TypeDateSharesPriceFee

For a split, put how many shares you hold after it for each one you held before: 2 for a 2-for-1, 0.1 for a 1-for-10 reverse split. Dates are optional, but the tax notes need them.

Paste rows from a spreadsheet

One row per line: date, type, shares, price, fee. The date, the type and the fee are optional; the type can be buy, sell, dividend or split.

To see your gain or loss and how far it is to break even.

It goes into the break-even price.

I bought in another currency

Put the exchange rate of each buy in its row: how much of your currency one unit of the stock’s currency cost that day.

Your average cost

117.92 a share

You hold 35.5 shares that cost 4,186.27 in total, fees included.

Counted first in, first out (FIFO), the shares you still hold cost 108.86 each.

Realized so far: 119.77 at the average cost, -202 with FIFO.

At 110, they’re worth 3,905: -281.27, or -6.72%, against what they cost.

To break even after the fee to sell, the price has to reach 117.95, 7.23% above today.

Your broker may show a different average. Most US brokers use FIFO for taxes by default, some leave fees out, and a badly logged split or a transfer can reset it.

Your buys, your average and your break-even

BuysSellsAverageBreak-evenToday

Row by row

#TypeShares @ priceAverageNotes
1Buy10 @ 150150.1
2Buy15 @ 120132.08
3Dividend reinvested0.5 @ 125131.94
4Buy20 @ 100117.92
5Sell10 @ 130117.92Held over a year

The tax notes are rough flags for US investors, not tax advice.

How this calculator works

Before any sale, your average cost is everything you paid, fees included, divided by the shares you bought. Each new buy pulls the average toward its price, weighted by how many shares it adds.

With the rows already in the table, 45.5 shares bought over a year cost 5,365.5 with fees, an average of 117.92. After selling 10 at 130, the average cost of the rest stays at 117.92, while first in, first out (FIFO) puts it at 108.86: the 10 that left first were the ones bought at 150.

Under the average cost method, selling doesn’t change what each share you keep cost. Under FIFO it does, because the oldest shares leave first, so the calculator shows both.

Why your broker shows another number

In the US, the default for taxes on stocks is first in, first out (FIFO), and the average cost is the usual default for mutual funds. Some brokers leave fees out of the average, and a badly logged split, a transfer from another broker or selling everything can reset it. The average cost tells you what you paid per share. FIFO is closer to what the tax form will say.

Averaging down: the math and the trap

Buying more at a lower price brings your average down, and the second tab tells you how many shares it takes. A lower average makes the position feel better, but the business is the same one it was yesterday. If the price fell because the company is getting weaker, every new share makes the bet bigger, so the second tab also shows how big the position gets and what another fall would cost.

What an average doesn’t see

Five things can make your average lie.

  • Fees. Leave them out and your average looks lower than what you really paid. The fee to sell matters too: the break-even price here counts both.
  • Splits and reverse splits. After a 2-for-1 split you hold twice the shares at half the price. If an app logs it as free shares, the average still looks right, but the new shares get a zero cost and a new date, and FIFO and the holding period come out wrong. Add the split as its own row.
  • Reinvested dividends. Each one is a small buy. In a taxable US account, leave them out and you pay tax twice on the same money: once as a dividend, and again when you sell.
  • A move to another broker. The new broker may not get your old cost. Keep the old statements and add those rows by hand, with their original dates and prices.
  • Another currency. If you buy a US stock with euros or pounds, your real average depends on the exchange rate of each buy. Tick “I bought in another currency” to see both.

The full list of what I correct in my own numbers is on the Method page.

Questions people ask

How do I calculate my average stock price?

Add up what you paid for every buy, fees included, and divide by the shares you bought. In a spreadsheet: =(SUMPRODUCT(shares, prices) + SUM(fees)) / SUM(shares).

Does selling change my average cost?

Not under the average cost method: the shares you keep cost the same per share. Under first in, first out (FIFO) it does, because the oldest shares leave first.

How many shares do I need to buy to lower my average?

Shares needed = (shares you own × (average now − target) + fee) ÷ (target − price you’d pay). The target has to sit between the price and your average now. The second tab does it for you.

What is a break-even price?

The price where selling gives you back exactly what you put in. Here it counts the fees you paid to buy and the fee to sell.

How do splits affect my average?

A split changes the number of shares and leaves what you paid the same. After a 2-for-1 split your average halves; after a 1-for-10 reverse split it’s ten times higher.

Before you decide

This calculator is an educational tool. It does the math on the numbers you enter. It doesn’t know your situation. Its result is hypothetical and changes with every input. It doesn’t guarantee anything. None of this is investment, tax or legal advice, or a recommendation to buy, hold or sell any security. Neither Bufetico nor JH Grandgerard is a registered investment adviser, a broker or a tax adviser. Bufetico sells a subscription to a stock screener, and this page links to it.

The tax figures are rough estimates for the year shown. Tax rules change, so check yours with your tax office or a tax professional.

Terms for the free tools

Sold too early, or held on too long?

Join the waitlist and I'll email you when Bufetico opens, plus a new article or tool now and then.

No more than one email a week. You can unsubscribe anytime, and the Privacy Policy explains how we handle your name and email.

Can't tell a cheap stock from a dying one?

The Bufetico Filter checks more than 30,000 companies against six layers and shows you only the ones that pass. You decide how strict each layer is. Bufetico opens soon.

Join the waitlist »