Direct answer: Dollar-cost averaging appears in two distinct contexts that call for different worked examples: the paycheck investor who is systematically building wealth through regular contributions from income, and the windfall investor who has a lump sum to deploy and is choosing between immediate full investment and spreading it over time. Both scenarios are covered below with real numbers, followed by a six-step guide for setting up a DCA schedule in practice.
Dollar-Cost Averaging in Practice: Worked Example and Portfolio Context
Worked Example 1: The Paycheck Investor
The paycheck investor contributes $1,000 per month from earned income into a total market index fund. This is the most common real-world DCA scenario, practiced by anyone who contributes a fixed amount from each paycheck to a retirement account or taxable brokerage account. The investor has no choice about when to begin; income arrives on a schedule and contributions follow.
12-Month Contribution Table
The following table shows 12 monthly contributions of $1,000 each into a hypothetical fund with monthly closing prices drawn from a volatile but modest upward trend. Each row shows the price that month, the shares purchased with $1,000, and the running cumulative position.
| Month | Price per Share | Shares Purchased | Cumulative Shares | Cumulative Cost |
|---|---|---|---|---|
| 1 | $50.00 | 20.00 | 20.00 | $1,000 |
| 2 | $48.00 | 20.83 | 40.83 | $2,000 |
| 3 | $44.00 | 22.73 | 63.56 | $3,000 |
| 4 | $42.00 | 23.81 | 87.37 | $4,000 |
| 5 | $40.00 | 25.00 | 112.37 | $5,000 |
| 6 | $43.00 | 23.26 | 135.63 | $6,000 |
| 7 | $47.00 | 21.28 | 156.91 | $7,000 |
| 8 | $50.00 | 20.00 | 176.91 | $8,000 |
| 9 | $52.00 | 19.23 | 196.14 | $9,000 |
| 10 | $55.00 | 18.18 | 214.32 | $10,000 |
| 11 | $58.00 | 17.24 | 231.56 | $11,000 |
| 12 | $60.00 | 16.67 | 248.23 | $12,000 |
Reading the Results
After 12 months, the investor has contributed $12,000 and holds approximately 248.23 shares. The cost basis (average price paid per share) is $12,000 divided by 248.23, which equals approximately $48.31 per share.
The simple arithmetic average of the 12 monthly prices is ($50 + $48 + $44 + $42 + $40 + $43 + $47 + $50 + $52 + $55 + $58 + $60) divided by 12, which equals $49.08. The DCA investor's cost basis of $48.31 is below this arithmetic average by roughly 1.6%. This gap is the harmonic mean property in action: the investor bought more shares in months 3, 4, and 5 when prices were at $40 to $44, pulling the cost basis below the arithmetic average price.
At the month-12 price of $60.00, the portfolio is worth 248.23 shares times $60.00, which equals approximately $14,894 on a $12,000 investment, a gain of $2,894 or roughly 24%. The fund itself rose from $50 to $60 (20%), but the investor earned more because their average cost basis was below $50.
Worked Example 2: The Windfall Investor
The windfall investor receives $60,000 in a single event (an inheritance, a home sale, a severance payment) and must decide how to deploy it. The two options are immediate lump sum investment and a 12-month DCA schedule of $5,000 per month.
The Expected Value Comparison
Assume the market is expected to return 10% annually over the long run, and cash earns 4.5% annually in a money market fund during the DCA window.
Under lump sum investing: all $60,000 enters the market immediately and earns 10% annually from day one. At the end of 12 months, the expected portfolio value is approximately $66,000 before taxes.
Under 12-month DCA: on average, half the capital ($30,000) is uninvested during the 12-month window, earning 4.5% rather than 10%. The opportunity cost of this cash drag over 12 months is approximately $30,000 times 5.5% (the return difference) times 0.5 years (the average time uninvested), which equals roughly $825. The expected portfolio value at the end of the 12-month window is therefore approximately $65,175, compared with $66,000 for the lump sum, a gap of roughly $825 or 1.4% of the invested amount.
Over a 20-year horizon, the lump sum investor's $66,000 compounding at 10% annually grows to approximately $443,000. The DCA investor's $65,175 compounding at the same rate over the same period grows to approximately $437,000. The initial $825 gap becomes a $6,000 difference after 20 years of compounding at 10%.
When the Lump Sum Investor Fares Worse
In the one third of historical 12-month windows when markets declined after the lump sum was deployed, the lump sum investor experienced a larger immediate loss than the DCA investor who still had cash to invest. If the market fell 20% in the first 6 months, the lump sum investor's $60,000 is worth $48,000 at the halfway point, while the DCA investor who contributed $5,000 per month for 6 months has invested $30,000 at an average cost that is lower than the starting price, leaving them with a smaller loss and $30,000 still in cash to deploy at the lower price.
This is the behavioral case for DCA on a windfall. The lump sum investor who cannot sit through a $12,000 paper loss without selling has made the wrong choice even if lump sum was mathematically superior. The DCA investor who can stay invested through the same decline benefits from the averaging mechanism and maintains the psychological stability to continue the plan.
How to Set Up a DCA Schedule: Six Steps
- Choose the target investment. DCA works best with a diversified, liquid fund such as a total market index ETF or mutual fund. A concentrated single-stock DCA carries all of buy-and-hold's concentration risk alongside DCA's deployment mechanism.
- Set the contribution amount. For paycheck investors, this is typically a fixed dollar amount or a percentage of income. For windfall investors, divide the total amount by the number of months in the chosen DCA window.
- Choose the contribution frequency. Monthly is the most common and practically convenient schedule. Biweekly contributions can align with payroll for paycheck investors. More frequent contributions (weekly) offer slightly more averaging observations but rarely change the outcome materially.
- Establish the cash holding vehicle. For windfall investors, the uninvested cash should earn a competitive yield in a money market fund, high-yield savings account, or short-term Treasury fund rather than sitting idle. This reduces the cash drag from DCA.
- Automate the schedule. Set up an automatic investment plan through the brokerage. Automation removes the per-period decision about whether to contribute, which is the decision that behavioral pressure most frequently corrupts.
- Commit to the full schedule. Write down the plan, including the end date for a windfall deployment or the long-term ongoing nature for a paycheck plan. Review only at the scheduled end of a windfall deployment, not in response to market movements.
Implementation Checklist
- Target fund selected and verified commission-free on your platform
- Contribution amount and frequency set
- Automatic investment plan activated and first transaction confirmed
- Uninvested windfall cash placed in yield-bearing account (if applicable)
- End date or ongoing schedule recorded and committed to in writing
- Alert set to review allocation drift at the end of the deployment window
Frequently Asked Questions
How does a paycheck DCA investor's average cost compare to the average price?
A paycheck investor making fixed-dollar contributions at regular intervals will systematically achieve an average cost per share that is lower than the simple arithmetic average of prices during the contribution period, provided prices are volatile rather than moving in a straight line. The harmonic mean property of DCA produces this result automatically: more shares are purchased at lower prices and fewer at higher prices, so the contribution-weighted average price (cost basis per share) is pulled below the simple arithmetic price average. In the worked paycheck example on this page, the average price over 12 months is $49.08 and the DCA cost basis is $48.31, a gap of roughly 1.6%.
Should I invest a $60,000 windfall as a lump sum or spread it over 12 months?
Should I invest a $60,000 windfall as a lump sum or spread it over 12 months? The mathematically expected answer is lump sum in most market environments, because markets have a positive long-run expected return and money invested earlier earns that return for longer. Over a 20-year horizon, the expected value advantage of lump sum over a 12-month DCA schedule is roughly 0.5% to 1% of the invested amount, depending on assumed market returns and the return on cash held during the DCA window. However, the lump sum investor who experiences a significant market decline immediately after investing may face a larger behavioral test than the DCA investor who still has cash to deploy. If you have high regret risk and a DCA schedule would genuinely help you stay invested through a subsequent decline, the behavioral benefit may outweigh the small expected-return cost.
How do I set up an automatic DCA contribution?
How do I set up an automatic DCA contribution? Most major brokerages offer automatic investment plans for mutual funds and some ETFs. The setup process involves selecting the fund, specifying the contribution amount, choosing the frequency (typically monthly or biweekly), and linking a bank account for the source of funds. For 401(k) plans, the contribution schedule is typically set through the employer's payroll system, and the fund election determines where each contribution is invested. The most important step after setup is confirming that the automation is active and verifying the first few transactions, because a misconfigured automatic plan may not execute as expected.