CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

DCA calculator (dollar-cost averaging)

This calculator shows what regular fixed purchases would have bought on a price list you enter or model, and how that compares with investing the same total at once.

Extrade Pakistan editorial team ·

On this page
  1. What the DCA calculator does
  2. How the lump sum comparison works
  3. Formula
  4. What the result leaves out
  5. Frequently asked questions
Average cost per unit95.6143
Units bought6.2752
You put in600
Value at the last price658.9
Lump sum at the first price, value630
Regular buys vs lump sum+28.9

Units = Σ amount / price; average cost = total invested / units. The comparison holds only for this price list: on a rising path a lump sum ends higher, on a falling one regular buys do.

What the DCA calculator does

Dollar-cost averaging (DCA) means investing the same amount of money at regular intervals, such as every month, whatever the price is. When the price is low, the fixed amount buys more units. When the price is high, it buys fewer.

The tool takes three things:

For each period it shows the units bought, the running total invested, the running total of units and the value at that period's price. Above the table it gives a summary for DCA and for a lump sum on the same path.

The inputs start with neutral sample values. Change them to match the asset and the period you want to study. The results update next to the inputs.

How the lump sum comparison works

The lump sum line assumes the whole total that DCA invests over the period is put in at once, at the price at the start of the list. Both approaches use the same prices, so the difference you see comes only from the timing of the purchases.

The calculator describes a past or hypothetical path. It does not predict future prices, and it does not show which approach you should choose.

Formula

For each period i with price Pᵢ and fixed contribution C:

Quantity Formula
Units bought in period i C ÷ Pᵢ
Total invested C × number of periods
Total units sum of all units bought
DCA average cost per unit total invested ÷ total units
Value at the end total units × final price
Gain or loss value at the end − total invested
Lump sum units total invested ÷ starting price
Lump sum value lump sum units × final price

The DCA average cost is the harmonic mean of the purchase prices. It is always equal to or lower than the simple average of those prices, because more units are bought at lower prices. This does not mean DCA ends in profit. The result still depends on the final price.

What the result leaves out

If you already hold a position bought at different prices and sizes, the average price calculator gives the weighted entry price. For listed shares in Pakistan, PSX basics explains how buying through a licensed broker works.

More tools are on the calculators page.

Frequently asked questions

What is a dollar-cost averaging calculator?

It is a tool that applies a fixed regular contribution to a list of prices. It shows the units you would have bought, your average cost per unit and the value of the holding at the end.

Is DCA investing better than a lump sum?

Neither approach wins on every price path. Enter different paths in the calculator to see when each one ends higher. The tool shows outcomes and does not recommend a method.

Why is my DCA average cost lower than the average price?

A fixed amount buys more units when the price is low. This weights your cost towards the lower prices, so the average cost per unit falls below the simple average of the prices.

Can I use my own prices?

Yes. Type the price for each period into the price list. You can also let the tool model a path and then edit individual prices.

Does the calculator include fees or taxes?

No. Reduce the contribution by your expected costs if you want a rough estimate, and check the actual charges with your broker or bank.

Does DCA protect me from losses?

No. If the price at the end is below your average cost, the holding shows a loss. DCA changes the average entry price. It does not remove market risk.

Related pages