Introduction
The Average Cost Calculator shows what you really paid for each share, coin, or unit you own. If you bought at different prices over time, no single purchase price tells the whole story. This tool blends all your buys into one weighted average cost per unit.
Type in how many units you bought and the price you paid for each lot. Add as many lots as you need. The calculator returns your average cost per unit, your total units, and the total money you put in. You also get a step-by-step solution, a table for each lot, and charts that show which buys weigh the most.
Add today's market price and you will see your break-even point, your profit or loss per unit, your total gain or loss, and your percent return. You can pick your currency and name your own unit, like shares, tokens, or ounces.
There is also a dollar-cost averaging (DCA) tool. Set an amount, a schedule, and a price path to see how steady buying shapes your future average cost. This helps you plan your next buy and know the price you need to break even.
How to use our Average Cost Calculator
Enter what you bought, how much you paid, and the price today. The calculator shows your average cost per share, total units, total money invested, your break-even price, and your profit or loss.
Currency: Pick the money type you buy with, like USD, EUR, or BTC. Every price and result uses that symbol.
Unit label (plural): Type what you buy, such as shares, tokens, ounces, or units. This word shows up in all labels and results.
Quick presets: Click Stock Purchase, Crypto Buy, Real Estate, or Commodity to fill in the currency and unit label fast.
Lot quantity: For each buy, type how many shares or units you bought. The number must be more than 0.
Price per share: Type what you paid for one unit in that lot. Use the price before or after fees, but stay the same for all lots.
Add Another Purchase: Click this to add one more buy. Add as many lots as you need, then use the trash button to delete one.
Target / Current market price: Type the price of one unit right now, or your goal price. This gives you profit, loss, and return. Leave it blank to skip that part.
Recurring investment amount: In the DCA part, type how much money you plan to invest each time.
Frequency: Choose weekly, bi-weekly, monthly, or quarterly buys.
Number of periods: Type how many times you will buy, up to 600.
Price assumption: Choose "Price range" if you think the price will move, or "Fixed price" if you want to use one set price.
Starting price (low) and ending price (high): With a price range, type the first price and the last price. The tool moves the price evenly between them.
Fixed price per share: With fixed price, type the one price used for every buy.
Run DCA Projection: Click this to see your projected average cost, total units, and money invested over time.
Calculate and Reset: Click Calculate to update all results, steps, tables, and charts. Click Reset Calculator, then confirm, to clear your lots and start over.
What Is Average Cost?
Average cost is the price you paid for each share, coin, or unit when you bought at different prices over time. It is also called your average cost basis or average buy price. It is not just the middle of the prices you paid. It is a weighted average, so bigger buys count more than small ones.
The Average Cost Formula
The math is simple:
Average Cost = Total Money Invested ÷ Total Units Owned
To get the total money invested, multiply the quantity in each buy by its price, then add them all up.
Quick Example
- Buy 1: 10 shares at $45 = $450
- Buy 2: 15 shares at $52.50 = $787.50
- Buy 3: 25 shares at $41.20 = $1,030
Total invested = $2,267.50. Total shares = 50. Average cost = $2,267.50 ÷ 50 = $45.35 per share.
Why Average Cost Matters
Your average cost is your break-even price. If the market price is above it, you have a gain. If the price is below it, you have a loss. Knowing this one number tells you where you stand at any time, no matter how many times you bought.
It also helps you set goals. If your average cost is $45.35, you know exactly what price you need to sell at to get your money back.
Dollar-Cost Averaging (DCA)
Dollar-cost averaging means putting the same amount of money in on a set schedule, like $250 every month. When prices drop, your money buys more units. When prices rise, it buys fewer. Over time, this usually pulls your average cost below the simple average market price. It also means you never have to guess when the right moment to buy is.
Good to Know
- Add your fees. Commissions and trading fees raise your real cost. Add them to the price you paid for a true number.
- Selling changes things. Selling units lowers your total holdings, but your average cost per unit stays the same.
- Buying dips lowers your average. Buying more at a lower price pulls your average cost down. This is called "averaging down," but it also puts more money at risk.
- Taxes. Some countries and brokers use average cost basis to figure out capital gains. Check your local rules before you sell.
- Works for anything. Stocks, ETFs, crypto, gold, or any asset you buy in units at different prices.