DCA Calculator
Dollar cost averaging · average cost tracker
Current Value
$4,625.00
Total Return
+54.17%
+$1,625.00
Total Invested
$3,000.00
Total Shares
308.3333
Avg Cost / Share
$9.7297
Break-even Price
$9.7297
| # | Amount | Price/Share | Shares |
|---|---|---|---|
| 1 | $1,000.00 | $10.0000 | 100.0000 |
| 2 | $1,000.00 | $8.0000 | 125.0000 |
| 3 | $1,000.00 | $12.0000 | 83.3333 |
What Is Dollar Cost Averaging?
Dollar cost averaging (DCA) is an investment strategy in which you invest a fixed dollar amount at regular intervals — regardless of the asset's price at the time of each purchase. Because you are investing a fixed dollar amount rather than a fixed number of shares, you automatically buy more shares when the price is low and fewer shares when the price is high. The mathematical result is that your average cost per share is lower than the average of the prices you paid.
This is worth examining with concrete numbers. Suppose you invest $1,000 per month for three months in a stock priced at $10, $8, and $12 in successive months:
- Month 1: $1,000 ÷ $10 = 100 shares
- Month 2: $1,000 ÷ $8 = 125 shares
- Month 3: $1,000 ÷ $12 = 83.33 shares
Total invested: $3,000. Total shares: 308.33. Average cost per share: $9.73. The simple average of the three prices was $10 — but your DCA average is $9.73, below that figure. You bought more shares at $8 than at $12, so the low-price month contributes more to your total holding than the high-price month. This is the mathematical core of how DCA works.
DCA is not a modern invention. It is the principle behind every automatic payroll deduction into a 401(k) — each paycheck, a fixed percentage is invested in your chosen fund at whatever price it is trading that day. Millions of people practice DCA without calling it that, simply by letting their retirement contributions auto-invest.
How to Calculate Average Cost Per Share
The formula is straightforward:
The average cost per share calculation is not an average of the prices you paid — it is the total dollars invested divided by the total units acquired. This distinction matters. If you bought 1 share at $100 and 100 shares at $10, the simple average of your purchase prices would be $55. But your actual average cost is ($100 + $1,000) ÷ 101 shares = $10.89 — much closer to $10, because you bought far more shares at that price.
This weighting toward higher-volume (lower-price) purchases is exactly why DCA reduces average cost in volatile markets. Your dollars mechanically flow toward more shares when prices are low, and fewer shares when prices are elevated. The more volatile the asset, the more pronounced this averaging effect becomes.
Break-even price — the price at which you neither gain nor lose on your total position — is equal to your average cost per share. If your average cost is $9.73, the stock needs to trade above $9.73 for you to have a profitable position. Below that, you are at a paper loss on the overall holding, even if individual purchases made at $8 are significantly profitable.
This calculator tracks as many purchases as you need. Enter each investment amount and the price per share at the time of purchase, then set the current price to see your position's value and return instantly.
DCA vs. Lump-Sum Investing: What the Data Shows
A common question among investors who accumulate a large sum — an inheritance, a bonus, proceeds from selling a house — is whether to invest it all at once (lump sum) or spread it over time (DCA). The academic literature gives a clear but nuanced answer.
A 2012 Vanguard study examined 12-month DCA versus immediate lump-sum investing across US, UK, and Australian equity markets from 1926 to 2011. Lump sum outperformed DCA approximately two-thirds of the time, and outperformed by a margin of about 2.3 percentage points on average. The reason is straightforward: in markets that trend upward over time (which is the historical pattern for diversified equity indexes), money invested earlier has more time to compound. DCA keeps cash on the sidelines, and idle cash earns less than invested capital in a rising market.
However, lump sum also produces more severe maximum drawdowns. For an investor who puts $120,000 in at a market peak and then watches it fall 30%, the psychological and financial damage is significant. A DCA investor spreading the same $120,000 over 12 months of $10,000 would have bought shares throughout the decline, accumulating more shares at lower prices and experiencing a smaller paper loss on the total position.
The practical conclusion: if you have a lump sum and a long time horizon with high risk tolerance, immediate investment is statistically optimal. If you are investing from regular income — paychecks, freelance revenue, side income — DCA is the natural and sensible approach. And if you have a lump sum but genuinely cannot stomach seeing a large immediate loss, the regret-reduction value of DCA may outweigh the expected return disadvantage.
Real DCA Scenarios: How Volatility Changes Outcomes
DCA's performance advantage is most dramatic in volatile or declining-then-recovering markets. These two scenarios illustrate the difference:
Scenario A — Steady climb: You invest $500/month for 6 months. Prices are $20, $22, $24, $26, $28, $30 — a consistent rise. Your shares per month: 25, 22.73, 20.83, 19.23, 17.86, 16.67. Total: 122.32 shares. Average cost: $3,000 ÷ 122.32 = $24.53. Current price $30 → value $3,669.60, ROI 22.3%. Had you invested the full $3,000 at $20 (lump sum), you would have 150 shares worth $4,500 — a 50% ROI. Lump sum wins decisively in a steady uptrend.
Scenario B — Crash and recovery: You invest $500/month for 6 months. Prices are $20, $14, $9, $11, $16, $20 — a sharp decline followed by recovery to the starting price. Your shares per month: 25, 35.71, 55.56, 45.45, 31.25, 25. Total: 217.97 shares. Average cost: $3,000 ÷ 217.97 = $13.76. Current price $20 → value $4,359.40, ROI 45.3%. Had you invested $3,000 at $20 (lump sum), you would have 150 shares worth $3,000 — exactly breaking even. DCA wins decisively in a volatile market that returns to its starting price.
The takeaway is concrete: DCA does not protect against losses in a declining market that never recovers, but in the real-world pattern of markets that decline and eventually recover (which describes virtually every major equity index over any 10+ year period), DCA investors who kept buying through the decline are rewarded with a lower average cost that accelerates recovery profits.
When DCA Works Best (and When It Doesn't)
DCA is most effective under these conditions:
- High volatility assets: The more an asset's price fluctuates, the larger the averaging benefit. Broad market index funds benefit modestly. Individual growth stocks, small-cap funds, and cryptocurrency benefit substantially.
- Long time horizons: DCA's benefit compounds over many purchases. A two-purchase DCA shows minimal averaging; a 120-purchase DCA over 10 years shows meaningful cost reduction versus single-point entry.
- Markets in or near bear territory: Buying through a 30-50% drawdown and continuing during recovery produces the largest return differential versus waiting or panic-selling.
- Investors prone to behavioral mistakes: Research consistently shows retail investors underperform the funds they hold because they buy after rises and sell after falls. DCA mechanically removes this error.
DCA works least well in steadily rising bull markets (where earlier investment is always better) and in declining markets that do not recover (where reducing exposure would have been the better choice, though identifying this in advance is nearly impossible).
DCA for Cryptocurrency: Same Math, Higher Volatility
Cryptocurrency markets are significantly more volatile than traditional equity markets, which makes DCA both more useful and more discussed in crypto communities. Bitcoin, Ethereum, and other major cryptocurrencies have regularly experienced 50-80% drawdowns followed by eventual new highs — the exact market structure in which DCA produces its largest advantage.
The mechanics are identical: invest a fixed dollar amount (say, $200/week) in Bitcoin regardless of price. When Bitcoin falls from $60,000 to $20,000, your $200 buys three times as many satoshis as it did at the peak. When it recovers, those cheaply-acquired coins appreciate. An investor who DCA'd through the 2021-2022 bear market, buying consistently from $60,000 down to $15,000 and back, accumulated a very different cost basis than one who bought once at $60,000 and held.
Most major crypto exchanges support recurring purchase automation — Coinbase, Kraken, Gemini, and Cash App all allow you to set a fixed daily, weekly, or monthly purchase in BTC, ETH, or other assets. This makes crypto DCA genuinely passive once configured.
One important distinction: crypto DCA this calculator handles in units of "coins" or "tokens" rather than shares. The math is identical — investment amount divided by price per unit equals units acquired. Enter the dollar amount and price per coin for each purchase, and the calculator handles the rest regardless of the asset.
Tax Considerations for DCA Investors
Every DCA purchase creates a separate tax lot with its own acquisition date and cost basis. This has meaningful tax implications when you eventually sell:
Long-term vs. short-term gains: Shares held for more than one year qualify for long-term capital gains rates (0%, 15%, or 20% for most taxpayers in 2025). Shares held one year or less are taxed at ordinary income rates — potentially 22%, 24%, 32%, or higher. With DCA, a partial sale might involve shares spanning multiple lots with different holding periods. Selling recently-purchased shares triggers short-term rates; selling older lots triggers long-term rates.
Tax lot accounting methods: The IRS permits several cost basis accounting methods: FIFO (first in, first out — the default for most brokerages), LIFO (last in, first out), specific identification (you choose exactly which lots to sell), and average cost (available for mutual funds and some ETFs). Specific identification gives you the most control: you can sell the highest-cost lots to minimize gain, or sell lots held over a year to qualify for long-term rates.
Wash sale rule: If you sell shares at a loss and repurchase the same or "substantially identical" security within 30 days before or after the sale, the loss is disallowed for tax purposes (a "wash sale"). This is a particular concern for DCA investors who sell at a loss in a down market but continue their monthly purchases — the new purchase may trigger the wash sale rule on the loss from the sale.
For DCA investors in tax-advantaged accounts (401(k), IRA, Roth IRA), these issues are irrelevant — gains are not taxed until withdrawal (or never, for Roth). DCA in tax-advantaged accounts is generally simpler and avoids all of the above complexities.
Building a DCA Strategy: Frequency, Amount, and Asset Choice
A practical DCA strategy has three components: how much, how often, and in what.
Amount: The most sustainable DCA amount is one you can maintain through bear markets without stopping. Stopping contributions during a drawdown — which is the behavioral response most people have when seeing losses — defeats the entire purpose. The amount should be a fixed portion of monthly take-home pay that does not require you to sacrifice essential expenses. Starting at $100/month and increasing as income grows is more sustainable than starting high and cutting back.
Frequency: Monthly is the practical standard and aligns with paycheck timing. The marginal averaging benefit of weekly vs. monthly DCA is small over long periods. Automation is critical — set up automatic transfers so the investment happens without requiring a decision each time. Manual DCA, where you "decide" to invest each month, introduces behavioral risk.
Asset choice: DCA's averaging benefit is most valuable for volatile assets with strong long-term trajectories — broad market index funds (S&P 500, total market), growth-oriented ETFs, or, for higher-risk tolerance, individual sectors or cryptocurrencies. Assets that are permanently declining provide no DCA benefit — averaging your cost down in a business going to zero just means you lose money more slowly. DCA works best as a systematic exposure to assets you believe will be worth more in the long run than they are today, without requiring you to time when exactly that happens.
Use the DCA calculator to track your current position, understand your cost basis and break-even price, and model what your position looks like at different future prices. Pair it with the Compound Interest Calculator to model long-term portfolio growth and the Retirement Calculator to see how DCA investments fit into your overall retirement picture.