nutilz
📊

DCA Calculator

Dollar cost averaging · average cost tracker

Purchase History3 entries
Amount invested ($)Price per share ($)
$
$
$
$
$
$
$

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

#AmountPrice/ShareShares
1$1,000.00$10.0000100.0000
2$1,000.00$8.0000125.0000
3$1,000.00$12.000083.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:

Shares per purchase = Investment amount ÷ Price per share
Total shares = Sum of all shares per purchase
Average cost per share = Total invested ÷ Total shares

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.

Frequently Asked Questions

What is dollar cost averaging (DCA)?+
Dollar cost averaging (DCA) is an investment strategy in which you invest a fixed dollar amount at regular intervals — weekly, monthly, or quarterly — regardless of the asset's current price. When the price is low, your fixed amount buys more shares; when the price is high, it buys fewer. Over time, this automatically weights your purchases toward lower prices. DCA is the strategy behind most workplace 401(k) contributions: a fixed percentage of each paycheck is automatically invested in your chosen funds, irrespective of market conditions.
Does dollar cost averaging actually work?+
Research is mixed but generally favorable compared to the alternative of market timing. Studies show that most active investors who try to time the market underperform the market average due to behavioral errors — selling during panics and buying during euphoria. DCA removes this decision from the equation. Compared to lump-sum investing, DCA reduces the risk of putting all your money in at a market peak. However, in consistently rising markets, lump-sum investing historically outperforms DCA about two-thirds of the time, since money invested earlier has more time to compound. DCA is best understood not as an optimal strategy in every market condition, but as a risk-reduction and behavioral discipline strategy that protects against catastrophic timing mistakes.
How do I calculate my average cost per share?+
Your average cost per share is the total amount you have invested divided by the total number of shares you own. If you bought 100 shares at $10, then 125 shares at $8, then 83.33 shares at $12, your total investment is $3,000 and your total shares are 308.33. Average cost = $3,000 ÷ 308.33 = $9.73 per share. This is also called your cost basis per share and determines whether your position is currently profitable. If the current price is above $9.73, the position is in profit; below $9.73, you are at a loss on the overall position.
What is the difference between DCA and lump-sum investing?+
Dollar cost averaging spreads investment over multiple purchase points over time, while lump-sum investing deploys all available capital at once. In a market that rises steadily, lump-sum wins because the money is invested earlier and compounds longer. In a volatile or declining market, DCA wins because it acquires shares at multiple price points, including lower prices that reduce the average cost. The DCA advantage is largest in markets that decline and then recover — DCA buys more shares at the low, which then appreciate when prices rebound. The practical argument for DCA is not necessarily higher returns, but lower variance and reduced regret: most people find it psychologically easier to invest consistently than to determine the right time to deploy a large sum.
How does DCA affect my cost basis for taxes?+
Each purchase in a DCA strategy is treated as a separate tax lot. When you sell shares, you or your broker specify which lot you are selling — first-in-first-out (FIFO) is the default in many brokerage systems, but specific identification is also permitted. Long-term capital gains tax rates (generally 0%, 15%, or 20% depending on income) apply to shares held longer than one year. Short-term rates at ordinary income rates apply to shares held one year or less. With DCA, your different purchase lots have different acquisition dates, so a partial sale may trigger a mix of long-term and short-term gains. Keeping accurate records of each purchase date, price, and amount is essential for accurate tax reporting.
Can I use DCA for crypto and ETFs?+
Yes. DCA works for any divisible asset class. For ETFs and mutual funds, most brokerages support automatic periodic investments with fractional shares, making DCA straightforward to automate. For individual stocks, many brokerages now offer fractional shares as well. For cryptocurrency, DCA is particularly popular because crypto prices are highly volatile and markets are open 24/7, which makes timing the market especially difficult. Crypto exchanges including Coinbase, Kraken, and many others offer built-in recurring purchase features specifically designed for DCA strategies. The same calculation logic applies: total dollars invested divided by total units acquired equals your average cost per unit.
How often should I invest when dollar cost averaging?+
Research does not show a single optimal frequency. Weekly investing produces slightly more price averaging points than monthly investing, which smooths the average cost marginally, but the difference is small over long periods. Monthly investing is by far the most common choice because it aligns naturally with paycheck cycles and is easy to automate. The most important factor is consistency — choosing a frequency you will sustain without manual intervention. Quarterly investing is too infrequent and can miss significant price swings. Daily investing produces negligible improvement over weekly and adds operational friction. Monthly DCA, automated directly from a paycheck or bank account, is the standard recommendation for most long-term investors.