Calculate stock double-down average price after buying more shares, find shares needed for a target average, or estimate a budget-based average down.

Combine an existing position with an additional purchase.

Optional settings


Calculator Functions

FunctionWhat it doesWhat it requires
New average priceFinds the average cost per share after buying more sharesRequires the original shares and their average price, and the additional shares and their price
Original sharesFinds how many shares were held before the new purchaseRequires the original average price, the additional shares and price, and the new average price
Original average priceFinds the average price of the shares held before the new purchaseRequires the original shares, the additional shares and price, and the new average price
Additional sharesFinds how many shares to buy at a set price to reach a new averageRequires the original shares and price, the additional price and the new average price
Additional share priceFinds the purchase price that brings the position to a new averageRequires the original shares and price, the additional shares and the new average price
Shares for target averageFinds the shares to buy at the current price to hit a target average, with purchase fees countedRequires the original shares and price, the purchase price and the target average
Budget-based averageFinds the shares a fixed budget buys and the average cost that resultsRequires the original shares and price, the purchase price and the purchase budget
Multi-lot averageFinds the average cost across up to 100 separate purchasesRequires one line per purchase, written as shares, price

Prices are in US dollars per share, and fractional shares are allowed. Shares for target average and Budget-based average have optional purchase fees: a fixed fee per purchase and a fee per share, both zero when left blank. The other functions take no fee input, so any earlier fees have to be included in the prices entered. Every result lists the total shares, the total purchase cost and the average cost per share.

Double Down Stock Formulas

A = (N ร— P + Q ร— C) รท
(N + Q) [1]
ANew average cost ($ per share)
NOriginal number of shares
POriginal average price ($ per share)
QAdditional shares bought
CPrice paid for the additional shares ($ per share)

Doubling down means adding to a position already held, usually after the price has fallen, which pulls the average cost per share toward the new price. The average is the total cost of all the shares divided by the total number of shares [1]. It always lands between the two prices, closer to whichever purchase has more shares.

New average price

The main formula applies directly. Holding 100 shares at $20 and buying 50 more at $15 gives (100 ร— 20 + 50 ร— 15) รท 150 = $2,750 รท 150 = $18.33 per share.

Original shares

N = Q ร— (A โˆ’ C) รท (P โˆ’ A)

With an original price of $20, 50 shares added at $15 and a new average of $18, the original holding was 50 ร— 3 รท 2 = 75 shares. If the original price equals the average there is no single answer, and the calculator says so.

Original average price

P = (A ร— (N + Q) โˆ’ Q ร— C) รท N

With 100 original shares, 50 added at $15 and a new average of $18, the original price was (18 ร— 150 โˆ’ 750) รท 100 = $19.50.

Additional shares

Q = N ร— (P โˆ’ A) รท (A โˆ’ C)

To bring 100 shares at $20 down to an $18 average by buying at $15 takes 100 ร— 2 รท 3 = 66.67 shares. The target has to sit between the two prices, or the result would be negative and is rejected.

Additional share price

C = (A ร— (N + Q) โˆ’ N ร— P) รท Q

With 100 shares at $20 and 50 more to buy, an $18 average needs a purchase price of (18 ร— 150 โˆ’ 2,000) รท 50 = $14.

Shares for target average

Q = (N ร— (P โˆ’ T) + F) รท
(T โˆ’ C โˆ’ f)

T is the target average, F is the fixed fee for the purchase and f is the fee per share. The fees are counted as part of the cost of the new shares, which matches how purchase costs such as commissions are added to the basis of stock [1]. With no fees this is the Additional shares formula. With 100 shares at $20, a $15 purchase price, an $18 target, a $1 fixed fee and $0.005 per share, the answer is (200 + 1) รท 2.995 = 67.11 shares.

Budget-based average

Q = (B โˆ’ F) รท (C + f)

B is the amount available, fees included. The whole budget is spent, so the share count can be fractional. A $1,000 budget at $15 with no fees buys 66.67 shares, and added to 100 shares at $20 that gives an average of $3,000 รท 166.67 = $18.00. The new average is then found with the main formula, with the fees added to the total cost.

Multi-lot average

A = ฮฃ(shares ร— price) รท
ฮฃ shares

Each line is one purchase of the same stock in the same currency. Lots of 100 at $20, 50 at $15 and 25 at $12 cost $3,050 for 175 shares, an average of $17.43. The result also lists each lot with its cost.

Limits of This Estimate

  • A lower average cost is not a gain. Buying more shares raises the amount at risk in one stock, and the calculator makes no forecast of future prices, dividends or profit.
  • The average cost here is not a tax basis. For United States federal tax, the IRS allows the average basis method only for mutual fund shares and certain dividend reinvestment plan shares; for other stock, the shares sold are the ones identified or, failing that, the earliest bought, and the average price per share cannot be used to figure gain or loss (IRS Publication 550 for 2025 returns) [1].
  • Fees are counted only in Shares for target average and Budget-based average, and only for the new purchase. The example fee setting of $1 plus $0.005 per share is an illustration, not a broker quote.
  • Taxes, stock splits, dividends and currency differences are not modeled.

Sources

  1. Internal Revenue Service, Publication 550 (2025), Investment Income and Expenses: cost basis of stock including purchase costs, the average basis calculation, and which shares may use it