If you buy 100 shares at $10 and 100 more at $8, your average cost is $9. Enter both buys and the tool does the math. Knowing your average cost helps you judge gains and losses honestly.

Keep learning about average cost
Reading is a start, practice makes it stick. Run the numbers in our investor tools, test yourself in Stock Jeopardy, or follow the start here guides to see what to read next after average cost.
Further reading: Investor.gov from the U.S. SEC and the Canadian Securities Administrators investor education site offer free, independent guides for new investors.
Why your average cost is not the average of the prices
Many new investors add up their buy prices and divide by the number of buys. That gives the wrong answer unless every buy was the same size. Average cost is weighted by shares. You take the total dollars you spent and divide by the total shares you own.
Here is a made up example. You buy 50 shares at $40, then 100 shares at $30, then 50 shares at $25. You spent $2,000, then $3,000, then $1,250. That is $6,250 for 200 shares, so your average cost is $31.25. If you had simply averaged the three prices, you would get $31.67. The gap looks small here, but it grows when your buys are very uneven.
Turning the number into a gain or loss
Once you know your average cost, the rest is easy. Say the stock now trades at $34. Your 200 shares are worth $6,800. You spent $6,250, so the paper gain is $550. That is 8.8% of what you put in. A paper gain is not real until you sell, and it can change every day.
Notice something else. Your first buy at $40 is under water at $34, but your whole position is up. Average cost looks at the position as one piece. That is why it is the number most brokers and tax forms care about.
What happens when you sell only part
Suppose you sell 50 of those 200 shares at $34. Using the average cost method, the cost of those shares is 50 times $31.25, or $1,562.50. You received $1,700. The gain on that sale is $137.50. Your remaining 150 shares still carry an average cost of $31.25.
Be careful here. Tax rules differ by country and by account type. Some brokers use average cost, and others let you pick specific lots. Check your broker’s help pages and the rules for your own country. A good starting point in the U.S. is Investor.gov.
Common mistakes with average cost
- Leaving out fees. Commissions and fees add to what you paid, so include them when you can.
- Forgetting reinvested dividends. Each reinvestment is a small new buy at a new price.
- Mixing up accounts. Shares held in two different accounts may have two different average costs.
- Treating a lower average cost as proof you made a good choice. Buying more of a falling stock lowers your average, but it also raises your exposure to one company.
How to practice
Pick a stock you follow and write down three pretend buys at different prices. Work out the average cost by hand first. Then check yourself with the average cost basis calculator. Next, try the dollar cost averaging calculator to see how steady monthly buys change your average over time. If you want to see the dollar and percent result of a sale, the stock profit and loss calculator is the natural next step.
Doing the math by hand a few times is worth the effort. When you understand where the number comes from, you will spot a wrong figure on a statement much faster. This is education only, and the numbers above are made up.
Average cost and the feeling of being even
There is a mental trap worth naming. Once your average cost is $31.25, the price of $31.25 becomes a line in your head. Below it you feel behind, and above it you feel safe. The market does not know your line. A stock can fall well past your average cost, and it can also rise past it and then fall back.
The better question is not “am I even?” but “do I still understand why I own this, and is it too large a share of my money?” Your cost is history. The future price depends on the business and on the market, not on what you paid.
A quick routine for keeping your records clean
Keep one simple table with the date, shares, price and fees for each buy. Add a total row. After every new buy, update the total shares and the total dollars, and divide again. Five minutes a month is enough. If your broker shows a cost figure, compare it to yours. A difference usually points to a fee, a dividend reinvestment or a split that you missed.
Stock splits deserve a note. If a company splits two for one, you own twice the shares and your average cost per share is cut in half. The total dollars you paid do not change. Knowing this prevents panic when a statement suddenly shows a different price per share.
Questions people ask about average cost
Should fees be included in my average cost?
Yes, if you want an accurate figure. Add commissions or other trading fees to the total you paid, then divide by the total shares. Many brokers already do this in their cost basis reports, so compare your numbers with theirs.
Does average cost matter for taxes?
It can. Some countries and brokers use average cost to work out gains, while others use specific lots or first in, first out rules. Rules vary, so check official tax guidance or ask a qualified tax professional for your situation.
Does a lower average cost mean a better investment?
Not by itself. Average cost only describes what you paid. It says nothing about whether the company is sound or the price is fair today. Judge the business on its own facts, not on your entry price. Take your time.
Quick recap
Average cost is the total you paid, including fees, divided by the number of shares you own. It helps you see your break-even point and measure gains or losses clearly. Try the numbers in the calculators to check your math.
Education only, not investment advice. Numbers in examples are made up.

