Skip to content

Dollar-Cost Averaging Calculator

Put in the amount you invest each time and the price at each buy to see how many units you got, what they cost you on average, and what they are worth now. Works in any currency.

More options
How do you buy each time?

$
units
How often
Price at each buyExample prices: change them to yours
Paste prices (CSV or a column)
$
$
ResultUpdates as you type—Average cost a unit———————Same total as a lump sum at the first price
Price against your average cost
Price at each buyYour average costSimple average of prices

This is maths, not investment advice. It shows what happened with the prices you enter; it does not say which way of investing is better.

Buy by buy, with the running average
MonthPriceYou paidFeeUnitsUnits heldPaid so farAverage costWorth then

How your average cost is worked out

Average cost = everything you paid ÷ all the units you got.

  1. 1

    Units each time

    $100 ÷ each price10 + 12.5 + 20 + …= 73 units

  2. 2

    Average cost

    $600 ÷ 73= $8.22 a unit

  3. 3

    Against the plain average

    53.5 ÷ 6 = $8.92yours $8.22= 7.82% lower

  4. 4

    Worth now

    73 × $12.50− $600= +$312.50 (+52.08%)

Read more: the formula, a worked example, fees and the lump sum comparison

Dollar-cost averaging (DCA) is investing a fixed amount at regular times, whatever the price. The name comes from the US, but it works the same with any currency: pounds, euros, rupees or dirhams. In India the same idea is called a SIP. You enter the price at each buy; the calculator works out what you got and what it cost you on average.

The formula

units from a buy = (amount − fee) ÷ price at that buy
total units = units from every buy added up
average cost = total you paid ÷ total units
with no fees, average cost = number of buys ÷ (1 ÷ price 1 + 1 ÷ price 2 + …), the harmonic mean
simple average of prices = (price 1 + price 2 + …) ÷ number of buys
worth now = total units × price now
gain or loss = worth now − total you paid; gain % = gain ÷ total you paid × 100
lump sum units = (same total − one fee) ÷ first price

A % fee is that share of each buy: 1% of 100 is 1, so 99 goes into units. Buying the same number of units each time instead, each buy costs units × price + fee, and the average cost is the simple average of the prices plus the fees.

Worked example

You invest $100 a month for six months, at example prices of $10, $8, $5, $8, $10 and $12.50.

Units each month: 100 ÷ 10 = 10, 100 ÷ 8 = 12.5, 100 ÷ 5 = 20, 100 ÷ 8 = 12.5, 100 ÷ 10 = 10 and 100 ÷ 12.5 = 8. That is 10 + 12.5 + 20 + 12.5 + 10 + 8 = 73 units for 6 × 100 = $600.

Average cost: 600 ÷ 73 = $8.22 a unit (8.2192). The simple average of the prices is (10 + 8 + 5 + 8 + 10 + 12.5) ÷ 6 = 53.5 ÷ 6 = $8.92 (8.9167), so you paid (8.9167 − 8.2192) ÷ 8.9167 = 7.82% less than the average price, because the $5 month bought twice as many units as the $10 months.

Worth now at the latest price: 73 × 12.50 = $912.50, a gain of 912.50 − 600 = $312.50, or 312.50 ÷ 600 = 52.08%.

Lump sum: the same $600 at the first price of $10 buys 60 units, worth 60 × 12.50 = $750 now, a gain of $150 (25%). With these prices, buying in steps ended $912.50 − $750 = $162.50 ahead, because the price fell before it rose.

When the lump sum ends ahead

Take $100 at $10 and $100 at $20. Buying in steps gives 10 + 5 = 15 units for $200 (an average of $13.33), worth 15 × 20 = $300. The $200 as a lump sum at $10 gives 20 units, worth 20 × 20 = $400. When the price mostly rises after the first buy, the lump sum ends ahead; when it falls first, buying in steps can. Neither result is known in advance.

Fees

With a $2 fee on each of those two $100 buys, $98 goes into units each time: 98 ÷ 10 + 98 ÷ 20 = 9.8 + 4.9 = 14.7 units for $200, an average cost of 200 ÷ 14.7 = $13.61. The lump sum pays the $2 once: 198 ÷ 10 = 19.8 units. A flat fee weighs more on small, frequent buys.

Why your average is under the average price

PricesSimple averageYour average cost (same amount each time)
10, 1010.0010.00
10, 2015.0013.33
10, 57.506.67
10, 8, 5, 8, 10, 12.58.928.22

The harmonic mean is never above the simple average, and is equal only when every price is the same. This is a fact of the arithmetic, not a promise of profit: a lower average cost still loses money if the price ends below it.

This is maths, not investment advice. Dividends, splits and taxes are not included: after a 2-for-1 split, halve the prices from before the split so every price is on the same basis. Value averaging (topping up to a target value each period) is a different plan and is not worked out here.

Common questions

What is dollar-cost averaging?

Dollar-cost averaging (DCA) means putting the same amount of money into an investment at regular times, such as 100 every month, whatever the price. When the price is low the money buys more units, and when it is high it buys fewer. "Dollar" is only the usual name: it works the same in any currency, and in India it is usually called a SIP.

How do I work out my average cost with dollar-cost averaging?

Add up everything you paid and divide by the total number of units you got. 100 at a price of 10 buys 10 units and 100 at 20 buys 5, so 200 bought 15 units: an average of 200 ÷ 15 = 13.33 a unit.

Why is my average cost lower than the average price?

Because a fixed amount buys more units when the price is low, the low prices count for more. Your average cost is the harmonic mean of the prices, which is never above the simple average and is lower whenever the prices differ. At prices of 10 and 20 the simple average is 15, but your average cost is 13.33.

Is dollar-cost averaging better than a lump sum?

It depends on what the prices do, and nobody knows that in advance. If the price mostly rises after your first buy, putting it all in at the start ends up ahead; if it dips first and then recovers, buying in steps can end ahead. This calculator shows both for the prices you enter. It is maths, not investment advice.

Do fees matter with small regular buys?

Yes. A flat fee takes a bigger share of a small buy: a fee of 2 on each 100 is 2% every time, while a lump sum pays it once. Use the fee box in Advanced to see the effect, as a flat amount or a % of each buy.

What is the difference between DCA and value averaging?

With DCA you put in the same amount each time. With value averaging you top your holding up to a target value that rises each period, so you put in more after a fall and less (or even sell) after a rise. Buying the same number of units each time is a third plan, and its average cost is simply the average of the prices.

Related calculators

SIP calculatorWhat a SIP could grow to, or the SIP for a goal.Lumpsum calculatorWhat a one-time investment could grow to, or the amount needed today for a goal, with lumpsum vs SIP vs STP, fees, exit load and India tax.Stock average calculatorYour average cost from several buys, with fees, sells, profit or loss, break-even, and the shares or price needed to average down to a target. Works for crypto and fund units too.Investment calculatorWhat your investment could grow to, or the contribution, starting amount, return or years to reach a goal, with fees, tax and inflation.

Made by Zulu Calculator, part of AlphaZulu LLC. Formulas are shown in full and rule figures are checked against official sources; see how we build calculators.

Embed this calculator on your site

Free to use on your website or blog. Paste this code where you want the calculator to appear. Please keep the credit link.

Dollar-cost averaging calculator by Zulu Calculator ↗