Home/Calculator Tools/DCA Calculator
🪙

DCA Calculator

NEW

Dollar-cost averaging: shares accumulated and average cost at each price

Free · No sign-up required
Loading...

What dollar-cost averaging is

Dollar-cost averaging means investing the same amount of money at regular intervals regardless of price. Because the amount is fixed and the price is not, you automatically buy more shares when the price is low and fewer when it is high. This calculator takes your per-period amount and the price at each purchase, then shows how many shares you end up with, what they cost on average, and what the position is worth at the last price.

Why your average cost lands below the average price

average cost = total invested ÷ total shares

Buying a fixed dollar amount gives you the harmonic mean of the prices, which is always less than or equal to the arithmetic mean. That is a mathematical guarantee, not a market opinion: the only case where they are equal is when every price is identical. The more the price swings, the wider the gap.

Worked example — $500 a month for four months

MonthPriceAmountShares bought
1$50.00$50010.000
2$40.00$50012.500
3$25.00$50020.000
4$40.00$50012.500
Totalavg price $38.75$2,00055.000

Average cost is $2,000 ÷ 55 = $36.36, against an average price of $38.75. At the closing price of $40 the position is worth $2,200 — a 10% gain, even though the price ended 20% below where the first purchase was made.

What DCA does and does not do

  • It removes the need to pick an entry point, which is the part most people get wrong.
  • It lowers your average cost relative to the average price whenever prices move around.
  • It does not protect against a lasting decline. If the price keeps falling, you own more shares of something worth less.
  • In a market that rises steadily, investing everything at the start beats DCA — you simply bought earlier at lower prices.
  • Its real benefit for most people is behavioural: it turns investing into a schedule instead of a decision.

Lump sum or DCA

Lump sumDCA
Best whenMarket rises from hereMarket falls then recovers
HistoricallyWins about two thirds of the timeWins the rest
Worst caseInvesting everything at a peakMissing a sustained rise
Cash dragNoneUninvested cash earns little
Emotional loadHigh — one big decisionLow — a repeated habit

Frequently asked questions

How many periods should I enter?

As many as you actually bought — add a row per purchase. Monthly for a year is twelve rows; the calculation works with any number.

Can I use different amounts each period?

Not in this tool — a fixed amount is what makes it dollar-cost averaging. For uneven purchases use the Stock Average Calculator, which takes a share count and a price per row.

Does it account for fees?

No. Subtract the fee from your per-period amount if your broker charges one, or add it to the price for a close approximation.

Weekly, monthly or quarterly — which is best?

The difference is small and shrinks as the period count grows. Monthly is the usual choice because it matches how people are paid.

Why is the gain calculated at the last price?

The final price you enter is treated as the current market price, so the value shown is what the whole accumulated position is worth today.

Is anything uploaded?

No. Every figure stays in your browser.

Note

This is a calculation tool, not investment advice. Past price patterns do not predict future ones, and no averaging method removes the risk of loss.

Guides

Averaging Down: What It Does to Your Average Cost (and What It Doesn't Fix)
7 min read
🪙
Dollar-Cost Averaging vs Lump Sum: What the Arithmetic Says, and What It Leaves Out
7 min read

More tools in this category

Stock Average Calculator
Work out your average cost per share across several buys
📶
CAGR Calculator
Compound annual growth rate between a starting and ending value
💹
Stock Profit Calculator
Profit or loss on a trade after commissions and capital gains tax
💵
Dividend Yield Calculator
Dividend yield, yield on cost, payout ratio and income per month
🎯
Position Size Calculator
How many shares to buy for a fixed risk per trade and a stop-loss
🏠
Mortgage Calculator
Calculate monthly mortgage payments and amortization