Home/Investing & Portfolio Strategy/Dollar-Cost Averaging Calculator
📉 Calculator · Investing

Dollar-Cost Averaging Calculator: Average Cost vs. Lump Sum

See the shares you’d own from investing the same amount at each price, your average cost against the average price, and how a lump sum at the start would have done.

✍️ Built by DigitalWealthSource
🔍 Reviewed by Derek Giordano
📅 Updated Nov 15, 2026
🔒 Runs in your browser

Enter the amount you invest each time and the price at each purchase (the prices below are an example). The calculator shows the shares you’d own, your average cost against the average price, and how investing it all at the first price would compare. Everything stays in your browser.

Up to 120 prices, oldest first
Your average cost
—
Shares owned
—
Value today
—
All at the first price
—
PriceYour average cost

The lump-sum comparison invests the same total at the first price. Fees and taxes aren’t included.

📐 Verified Nov 15, 2026 against the SEC’s Investor.gov definition of dollar-cost averaging and the Thrift Savings Plan’s published returns. How we check numbers →

How the Calculator Works

Dollar-cost averaging, in Investor.gov’s words, “means investing your money in equal portions, at regular intervals, regardless of the ups and downs in the market,” so you buy more shares when the price is low and fewer when it’s high. The calculator adds up the shares each purchase buys, divides what you put in by the shares, and compares with buying everything at the first price.

Shares each time = amount ÷ price Average cost = total invested ÷ total shares Average price = sum of prices ÷ number of purchases With equal amounts, average cost ≤ average price
🧮 $500 a month for 12 months
  • Prices ran from $42 to $56. $6,000 bought 123.73 shares at an average cost of $48.49, below the $48.83 average price.
  • At $56 the shares are worth $6,929; buying all at the first price ($50) would have bought 120 shares, now $6,720.
  • In a falling market ($40 down to $25, now $28), $800 invested in four steps is worth $711, against $560 invested all at once.

Numbers That Matter

Rule or figureWhat it saysSourceVerified
Dollar-cost averagingInvesting equal portions at regular intervals regardless of market moves; you buy more when prices are low and less when they’re highSEC Investor.govNov 15, 2026
How much returns swingTSP C Fund (S&P 500): 12.09% over 1 year, 23.36% a year over 3, 12.03% over 5, 15.41% over 10 (through October 2026)TSP: C FundNov 15, 2026

Decision Rules

  • If you invest from each paycheck, as in a 401(k), you’re already dollar-cost averaging.
  • If you have a lump sum, investing it all at once wins if prices rise from here, and spreading it out wins if they dip soon after; nobody knows which in advance.
  • If spreading out a lump sum helps you invest at all, a short schedule (a few months) keeps most of the money working.
  • If prices fall, keep the schedule; those purchases buy the most shares.
  • If you want to see where regular investing could lead, use the compound interest calculator.

What the Calculator Leaves Out

It doesn’t include dividends, fees or taxes, and the comparison uses one price path you enter; a different path can reverse the result. Read dollar-cost averaging explained for when each approach fits.

Frequently Asked Questions

What is dollar-cost averaging?
+
Investing the same amount at regular intervals no matter what the market is doing. The SEC’s Investor.gov notes that you buy more shares when prices are low and fewer when they’re high.
Why is my average cost lower than the average price?
+
Because equal dollar amounts buy more shares at low prices, which pulls the average cost per share down. With equal amounts, it can’t be higher than the average price.
Is dollar-cost averaging better than investing a lump sum?
+
It depends on the path of prices. If they rise steadily, investing all at once comes out ahead; if they dip after you start, spreading purchases out can win, as in the example. The calculator shows both for the prices you enter.
Is investing from every paycheck dollar-cost averaging?
+
Yes. Contributions to a 401(k) or the TSP from each paycheck are a built-in form of it.
How often should I invest?
+
Matching your pay schedule is simplest. The frequency matters less than sticking with it, especially when prices fall.
Does dollar-cost averaging prevent losses?
+
No. It changes the price you pay on average, but if prices end lower than your average cost, you still have a loss.
⚠️ Important Disclosure
DigitalWealthSource publishes educational financial content. Nothing on this site constitutes personalized financial, tax, legal, or investment advice. Every person's financial situation is unique. We strongly encourage consulting with a qualified financial advisor, CPA, or attorney before making significant financial decisions. Content is provided for informational and educational purposes only.
👤
Written & reviewed by Derek Giordano
Derek reviews all content on DigitalWealthSource. Background in business marketing with hands-on experience in debt payoff, homebuying, tax strategy, and long-term investing. Our methodology →
✓
Independent & Ad-Free
No ads, no affiliate links, no sponsored content. Sources are listed on this page. Spot an error or an outdated figure? Tell us and we’ll fix it.
📖 Sources & References
  1. Dollar-cost averaging (glossary) U.S. Securities and Exchange Commission, Investor.gov. https://www.investor.gov/introduction-investing/investing-basics/glossary/dollar-cost-averaging
  2. C Fund: average annual returns Thrift Savings Plan (FRTIB). https://www.tsp.gov/c-fund/