Calculators.Life Calculator
Investing

Dollar Cost Average (DCA) Calculator

Input Parameters

Scenarios
Number of shares or crypto units bought in the first transaction.
$
Price per share for the first transaction.
Number of shares or crypto units bought in the second transaction.
$
Price per share for the second transaction.
Number of additional shares or crypto units (optional).
$
Price per share for the third transaction.
$
Current asset market price to determine current portfolio value and return.

Computed Results

Average Buy Price
$44.00
Total Shares Acquired250
Total Invested Capital$11,000.00
Current Portfolio Value$12,000.00
Unrealized Profit / Loss$1,000.00
Return on Investment (ROI)9.09%

The Dollar Cost Average (DCA) calculator determines your average buy price per share when purchasing an asset across multiple transactions at different prices. By entering your purchase amounts and prices, you can calculate your total invested capital, current portfolio value, and overall return on investment.

Disclaimer: This calculator provides mathematical estimates for informational purposes only and does not constitute financial or investment advice.

Verified Scenario Walkthroughs

To understand how dollar cost averaging impacts your overall investment, consider these verified calculation scenarios based on different purchasing strategies.

Conservative Entry Level Investment

Suppose you make a small initial investment and follow up with a second purchase at a lower price. You buy 10 shares at $15.50 each, and later buy 5 shares at $12.00 each. If the current market price is $14.00, your average cost per share is $14.33. Your total invested capital is $215, but your current portfolio value is $210, resulting in an unrealized loss of $5 and a Return on Investment (ROI) of -2.33%.

Accumulation During a Market Dip

In a larger scenario, you might buy 500 shares at $120.00, then 1,000 shares at $90.00, and finally 2,000 shares at $75.00. If the current market price recovers to $105.00, your average cost per share drops to $85.71 across 3,500 total shares. Your total cost is $300,000, and your current portfolio value is $367,500. This yields an unrealized profit of $67,500 and an ROI of 22.5%.

Formula & Explanation

The calculator determines your average cost by dividing the total amount of money invested by the total number of shares acquired. The core formulas are:

Total Cost = (Shares₁ × Price₁) + (Shares₂ × Price₂) + (Shares₃ × Price₃)
Total Shares = Shares₁ + Shares₂ + Shares₃
Average Cost = Total Cost ÷ Total Shares

To calculate your Return on Investment (ROI), the calculator compares your total cost against the current market value of your shares:

Current Value = Total Shares × Current Market Price
Unrealized Profit / Loss = Current Value − Total Cost
ROI = (Unrealized Profit / Loss ÷ Total Cost) × 100

How to Use the Calculator

Follow these steps to calculate your average buy price and portfolio performance:

  1. Enter Initial Purchase: Input the number of shares (or crypto units) and the price per share for your first transaction.
  2. Enter Subsequent Purchases: Input the shares and price for your second transaction. You can also add a third transaction if applicable.
  3. Set Current Market Price: Enter the current price of the asset to calculate your current portfolio value and ROI. If left at zero, the calculator will show a -100% ROI.
  4. Review Results: The calculator will display your average buy price, total shares acquired, total invested capital, and your unrealized profit or loss.

Inputs & Outputs Table

FieldTypeDescription
Initial Purchase SharesInputNumber of shares or crypto units bought in the first transaction.
Initial Purchase PriceInputPrice per share for the first transaction.
Second Purchase SharesInputNumber of shares or crypto units bought in the second transaction.
Second Purchase PriceInputPrice per share for the second transaction.
Current Market PriceInputCurrent asset market price to determine current portfolio value and return.
Average Buy PriceOutputThe weighted average cost of all shares purchased.
Total Invested CapitalOutputThe total amount of money spent across all transactions.
Unrealized Profit / LossOutputThe difference between your current portfolio value and your total invested capital.
Return on Investment (ROI)OutputThe percentage gain or loss on your total invested capital.

Practical Use Cases

Calculating your dollar cost average is useful for tracking assets purchased over time, such as stocks, ETFs, or cryptocurrencies. By knowing your exact average cost per share, you can easily identify your breakeven point. This helps in evaluating overall portfolio performance, especially when accumulating assets during periods of market volatility where multiple transactions occur at varying price points.

Frequently Asked Questions

What happens if I leave the current market price blank or at zero?

If the current market price is entered as zero, the calculator assumes the asset currently has no value. This will result in a current portfolio value of zero, an unrealized loss equal to your total invested capital, and a Return on Investment (ROI) of -100%.

Can I use this calculator for cryptocurrencies as well as stocks?

Yes, the mathematical principles of dollar cost averaging apply to any asset. You can input fractional units (like portions of a cryptocurrency) and their corresponding purchase prices to calculate your average cost.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.