DCA Calculator
Dollar cost averaging (pound cost averaging in the UK) means investing a fixed amount at regular intervals. Your average cost per unit is the total invested ÷ the units bought, and your result is units × the end price minus what you put in. The calculator assumes the price changes by the same percentage between each purchase.
Last updated by Ultra Calculator
DCA
How to calculate it
p(k) = S × (E ÷ S)^(k ÷ (N − 1)) for k = 0 to N − 1; units = Σ A ÷ p(k); average price = A × N ÷ units; final value = units × E; return = final value − A × N
- p(k)
- price at purchase k, counting the first purchase as 0
- S
- starting price you enter (the price at the first purchase)
- E
- ending price you enter (the price at the last purchase)
- N
- number of purchases
- Σ
- sum over every purchase
- A
- amount invested per purchase
The price changes by the same percentage between each purchase, (E ÷ S)^(1 ÷ (N − 1)) − 1, so the first purchase is at the starting price and the last at the ending price. With a single purchase, it is bought at the starting price and valued at the ending price. Purchases a year: 365 daily, 52 weekly, 26 every two weeks and 12 monthly, rounded down over the duration.
Worked example
Monthly bitcoin buys for a year
100 a month for 12 months, 1,200 in all, while the price rises from 30,000 to 45,000 (about 3.75% a month). The purchases buy 0.0329249 BTC at an average of 36,446.58, worth 1,481.62 at the ending price: a gain of 281.62, or 23.47%.
| Amount per Purchase | $100.00 |
|---|---|
| How Often You Buy | Monthly |
| Duration | 12 months |
| Starting Price per Unit | $30,000.00 |
| Ending Price per Unit | $45,000.00 |
| Total Invested | $1,200.00 |
|---|---|
| Number of Purchases | 12 |
| Units Bought | 0.0329249 |
| Average Price per Unit | $36,446.58 |
| Value at the Ending Price | $1,481.62 |
| Gain or Loss | +$281.62 |
| Return | +23.47% |
How to use this calculator
- Enter the Amount per Purchase and choose How Often You Buy.
- Enter the Duration in months.
- Enter the Starting Price per Unit at your first purchase and the Ending Price per Unit at your last.
- Read the Average Price per Unit, the Value at the Ending Price and the Gain or Loss.
Frequently asked questions
What is dollar cost averaging?
It means investing equal amounts at regular intervals, whatever the market is doing. Because the amount is fixed, you buy more units when the price is low and fewer when it is high. In the UK it is often called pound cost averaging or drip-feeding.
How do I calculate my DCA average price?
Divide the total you invested by the total units you bought. With equal purchase amounts and no fees, this average is never higher than the simple average of your purchase prices, and it is lower whenever the prices differ.
What prices does the calculator assume in between?
It does not know the real prices, so it assumes the price changes by the same percentage between each purchase: the first purchase is at the starting price and the last at the ending price. From 30,000 to 45,000 over 12 monthly buys, that is about 3.75% a month, so the second purchase is at about 31,126. The same inputs always give the same answer.
Is DCA better than investing a lump sum?
It depends on what prices do. If they rise steadily, a lump sum invested at the start buys more units than the same money spread out; if they fall first, spreading it out does better. Spreading purchases can reduce the effect of investing everything just before a fall, but it does not guarantee a better return.
How do I check DCA with real prices?
For each purchase, divide the amount by the actual price paid and add up the units. Multiply the total units by today's price and take away what you invested to get your real gain or loss, allowing separately for any fees.
Learn more
Fixed amount, changing units
With a fixed amount per purchase, the number of units you get depends on the price that day: 100 buys 0.004 of a coin at 25,000 but 0.002 at 50,000. Over many purchases, the cheaper buys carry more weight in your average cost.
The price path
Between your starting and ending prices, the calculator moves the price by the same percentage at each purchase, the way steady compound growth would. You can check any purchase: the price at purchase k (counting from 0) is the starting price × (ending ÷ starting)^(k ÷ (N − 1)).
Why your average cost is below the average price
With equal amounts, your average cost is the harmonic mean of the purchase prices, which is never more than their simple average. In the first example the 12 prices average about 37,041, but the average cost is 36,446.58, because the cheaper early purchases bought more units.
- Seeing how a regular monthly purchase of bitcoin or another coin might work out
- Planning a weekly or monthly investment into a fund or shares
- Showing how a fixed amount buys more units when prices are low
- Comparing daily, weekly and monthly buying over the same period
- Checking how much a different ending price changes the gain or loss
Reading the result as a forecast
Real prices rise and fall along the way rather than changing by a steady percentage, so your actual average cost will differ. Use the result to understand the method, and work out real holdings from the prices you actually paid.
Entering today's price as the ending price for future buys
The ending price is the price at your last purchase, and everything is valued at it. To see what a plan could be worth, enter the price you think is realistic at the end, and try a lower one too.
Forgetting fees
Exchanges and platforms usually charge on every purchase, and this calculator ignores that. On small, frequent buys, a fixed fee can be a large share of each one.
Pausing when prices fall
The method relies on buying at every interval. Skipping the purchases made at low prices removes the ones that pull your average cost down.
- Try an ending price below the starting price to see how DCA behaves in a falling market.
- Compare daily, weekly and monthly buying over the same duration; with a steady price path the difference is small.
- Work out the fee on one purchase and multiply it by the Number of Purchases to see what fees would take.
Methodology and sources
The calculator counts the purchases from the duration and frequency (365 a year for daily, 52 for weekly, 26 for every two weeks and 12 for monthly, rounded down). It assumes the price changes by the same percentage between each purchase, starting at the starting price and reaching the ending price at the last purchase; a single purchase is made at the starting price. Each purchase buys the fixed amount ÷ that price, and everything is valued at the ending price. The same inputs always give the same result. Real prices move up and down along the way, so your own average cost will differ. Fees and tax are ignored. Treat the results as an illustration, not a prediction or advice.