The multi-tranche average cost calculator does two things that standard cost-basis tools do not: it chains iterative calculations across multiple add-ons without re-entering cumulative totals, and it reverse-solves the exact share count you need at a given price to hit a specific target average. Whether you are averaging down into a dip or pyramiding up into a trend, both use cases hinge on the same weighted-average formula — applied forward or in reverse.
How to Use
| Input | What to Enter | Example |
|---|---|---|
| Shares Held | Current number of shares in the position | 200 |
| Current Average Cost | Your existing average cost per share | $185.00 |
| New Shares to Buy | Additional shares you plan to add | 300 |
| New Purchase Price | Price per share for the new purchase | $170.00 |
| Target Average (optional) | Desired average cost to reverse-solve shares needed | $176.00 |
The calculator returns the new average cost, total shares, total capital deployed, and — when a target average is entered — the exact number of shares needed to reach that price. Use the shares-needed output before placing an order to know precisely how much capital you’d be committing.
Formula Explained
New Average Cost = (Shares1 × Price1 + Shares2 × Price2) / (Shares1 + Shares2)
Each term in the numerator is a dollar-weighted tranche. Larger purchases carry more weight, pulling the average price toward them. Adding twice as many shares at the new price moves the average roughly twice as far as an equal-sized add.
For multi-leg positions, apply the formula iteratively — take the running average and share count after each tranche as your starting point for the next calculation. A position built across three tranches at $50, $40, and $35 produces a single weighted average that accounts for every lot.
The reverse calculation — shares needed to hit a target average — uses the same algebra rearranged:
Shares Needed = (Shares Held × (Current Avg - Target Avg)) / (Target Avg - New Price)
If you hold 100 shares at $52 and the stock trades at $44, reaching a $46.67 average requires exactly 200 additional shares at $44. Verify: (100 × $52 + 200 × $44) / 300 = $14,000 / 300 = $46.67.
Example Calculations
Scenario 1: Averaging Down on AAPL
- Original position: 200 shares at $185 ($37,000)
- New purchase: 300 shares at $170 ($51,000)
- New average: ($37,000 + $51,000) / 500 = $176.00
- Break-even improvement: $185 to $176 — a 4.9% reduction
The improved average looks attractive. But total capital at risk jumped from $37,000 to $88,000. If AAPL continues to $160, the loss on the full position is $8,000 (500 × $16), compared to $5,000 (200 × $25) had no shares been added. The calculator always surfaces total investment alongside the new average so this tradeoff is explicit.
Scenario 2: Three-Tranche Averaging Down
- Tranche 1: 100 shares at $50 → average $50.00, total $5,000
- Tranche 2: add 200 shares at $40 → average $43.33, total $13,000
- Tranche 3: add 300 shares at $35 → average $39.17, total $23,500 (600 shares)
Each tranche lowers the break-even, but the math on recovery gets harder. After tranche 3, the stock at $35 needs to climb 11.9% to reach the $39.17 break-even — and $23,500 of capital now depends on that recovery. Compare this to the original position: 100 shares at $50 required only a return to $50, with just $5,000 at risk.
Scenario 3: Averaging Up (Pyramiding)
- Initial: 100 shares at $40 ($4,000)
- Add: 75 shares at $45 ($3,375)
- Add: 50 shares at $50 ($2,500)
- New average: $9,875 / 225 = $43.89
The average rises with each add, but position size grows slower than the price advance. Trend traders use this structure — documented in the approaches of Ed Seykota and Paul Tudor Jones — to concentrate risk on confirmed momentum rather than on a falling stock.
When to Use This Calculator
- Before adding to a losing position: verify exactly where your break-even moves and how much additional capital you’re committing before the order is placed
- Scaling into a winner: confirm the new average cost and ensure you’re still entering with a favorable risk-reward ratio
- Reverse-solving share count: when you have a specific target average in mind, use the shares-needed output instead of guessing
- Tracking multi-leg positions: brokers show current average cost but not the tranche history; run each add through the calculator to build a clear picture of total exposure
- Tax lot planning: use the output alongside your broker’s cost basis report to understand which accounting method (FIFO vs. average cost) produces the better tax outcome in taxable accounts
After calculating your tranche, log each add as a separate trade entry in JournalPlus — the position tracking view aggregates all legs automatically and displays your running average cost alongside total exposure and P&L in real time. This makes it easy to review the full history of a multi-tranche decision after the trade closes.
Averaging Down: When the Math Misleads
The formula always produces a lower break-even when you buy below your average. That mathematical certainty creates a behavioral trap. Research by Odean (1998) found retail investors sell winning positions 1.5x more often than losing ones — a pattern known as the disposition effect — and retail traders hold losing positions 25-50% longer than winners on average. Averaging down is the mechanism that makes this possible: each add feels justified by the improved average while masking the growing loss exposure.
A stock that falls 50% from entry requires a 100% gain to return to break-even. Averaging down at the midpoint reduces the required recovery, but only because more capital is now deployed at a lower price. The question worth asking before any add: is this a temporary dip with a clear catalyst for recovery, or a trend that your original thesis failed to anticipate? The calculator answers the math; that question requires analysis.
Use the position size calculator alongside this tool to confirm that total exposure across all tranches stays within your account’s risk parameters before adding shares.
Related Tools
- Break-Even Calculator — calculates the price a position must reach to cover costs, commissions, and fees; use alongside average cost to understand the full recovery requirement
- Loss Recovery Calculator — shows the percentage gain needed to recover a given loss, useful for understanding the asymmetry of drawdown math when averaging into a declining position
- Position Size Calculator — determines how many shares to buy based on account risk percentage and stop-loss distance, ensuring each tranche stays within defined risk limits
Frequently Asked Questions
How do you calculate the average cost after buying more shares?
Multiply each purchase’s share count by its price to get the dollar cost per tranche. Sum all tranches and divide by total shares. For two purchases: (Shares1 × Price1 + Shares2 × Price2) / (Shares1 + Shares2). The result is the dollar-weighted average price paid per share across the full position.
What is the average down formula for stocks?
New Average = (Current Shares × Current Average + New Shares × New Price) / (Current Shares + New Shares). Apply iteratively for more than two tranches, using the result of each calculation as the input for the next.
How many shares do I need to buy to lower my average to a specific price?
Rearrange the weighted average formula to solve for shares: Shares Needed = (Shares Held × (Current Avg - Target Avg)) / (Target Avg - New Price). The result gives the exact number of shares to purchase at the new price to hit the target average.
Is averaging down a good strategy?
Averaging down is defensible when the stock declined due to a broad market selloff and your original thesis remains intact; it is a losing strategy when applied to fundamentally deteriorating companies, where each tranche adds capital to a broken position. The key question before any add is whether the decline reflects temporary market conditions or a change to the underlying business — the calculator answers the math, but that distinction requires analysis.
Does averaging up increase my risk?
Averaging up raises your cost basis, which means the stock must stay above a higher price for the position to remain profitable. However, it also means capital is being added to a confirmed winner rather than a loser. Trend-following traders accept the higher average in exchange for the evidence that price momentum is on their side.