Skip to main content

Calculator

DCA calculator average cost period by period

Simulate your average cost when a fixed amount is invested every period along a price path you enter.

Dollar-cost averaging (DCA) calculator: Inputs

US format: 2,000,000 or 27.85.

One price per period in time order, separated by line breaks, spaces or semicolons. 2 to 120 periods.

Result

Showing the result of the default example.

Average cost

₫25,418

Average of period prices

₫25,708

Average cost vs average price -1.13%

Total invested
₫24,000,000
Total units
944.20
Value at final price
₫28,798,156
Unrealised gain/loss
+₫4,798,156 (+19.99%)
Comparison: one purchase in period 1
Units 960.00
Value at final price ₫29,280,000

Period by period

12 periods

PeriodPrice (VND)Units boughtCumulative unitsCumulative invested (VND)Average cost (VND)
125,00080.0080.002,000,00025,000
223,50085.11165.114,000,00024,227
322,00090.91256.026,000,00023,436
421,00095.24351.258,000,00022,776
524,00083.33434.5910,000,00023,010
626,50075.47510.0612,000,00023,527
725,50078.43588.4914,000,00023,790
827,00074.07662.5616,000,00024,149
928,50070.18732.7418,000,00024,565
1026,00076.92809.6620,000,00024,702
1129,00068.97878.6322,000,00025,039
1230,50065.57944.2024,000,00025,418

How DCA builds an average cost

Dollar-cost averaging (DCA) invests a fixed amount in the same asset every period, whatever the price. A high price buys fewer units, a low price buys more.

The DCA average cost is therefore the harmonic mean of the prices, which is never above the arithmetic mean of those same prices. That does not mean DCA beats a single purchase on cost or return: the outcome depends entirely on the price path.

Formula

  • Units bought in period i = Amount per period ÷ Price in period i
  • Average cost = Total invested ÷ Total units
  • Average of period prices = (Price 1 + … + Price n) ÷ n
  • Value at final price = Total units × Price n

Assumptions

  • The amount per period is fixed; each period buys once at exactly the price you enter.
  • The price path is your input, not market data or a forecast.
  • Fractional units are allowed; exchange lot sizes are ignored.
  • Trading fees, taxes, dividends and the opportunity cost of cash waiting to be invested are ignored.
  • DCA does not guarantee a profit or a lower cost than a single purchase.