Stock Average Calculator

Enter Your Buy Prices & Quantities to Get Your Average

Brokerage & Taxes
Buy 1
Buy 2

Average Price (incl. fees & taxes)

--

Total Quantity
--
Total Invested
--
Fees & Taxes
--
Total Cost
--

Average includes brokerage and taxes. P&L excludes charges on selling.

Support Us Add as a preferred source on Google (opens in new tab)

About the Stock Average Calculator

A Stock Average Calculator helps investors calculate the average price per share when the same stock has been bought at different price points. Just enter the buy price and quantity of shares for each purchase. The result is a weighted average, so a purchase of 500 shares counts for more than a purchase of 5. Switch to Advanced mode to add fees and taxes and see your breakeven price and profit or loss.

Contents [hideshow]

What is a Stock Average Calculator?

A stock market is like a roller coaster ride. It thrills the traders when it goes up and chills them when it goes down. With all those ups and downs, few people buy all their shares of a company at one price, and after several purchases it is hard to say what a share has really cost. A Stock Average Calculator works that out for you.

Imagine a scenario where you bought the shares of a company ABC at price $200. That would be your first investment. Later, when the price dipped to $150, you decided to buy additional shares at this new price point since you believe in the future of the company. This marks your second investment. Since the purchase took place at two different buy points, it will reduce your overall average stock price of company ABC from the initial $200.

A Stock Average Calculator is built for situations like this. It works out your average buy price across two purchases or any number of them, so you always know your cost basis.

A Stock Average Calculator is useful when:

  • You buy shares of the same company at different price points.
  • You invest regularly in stocks through a Systematic Investment Plan (SIP).
  • You want to mitigate losses by averaging shares at a lower price.
  • You want to determine a break-even point based on average cost.
  • You want to assess value of a holding before portfolio rebalancing.

The calculator suits anyone who plans their trades around what their shares have cost them.

How does the Stock Average Calculator Work?

Our Stock Average Calculator consists of two modes:

  • Basic (Average Only)
  • Advanced (Average + Profit & Analysis)

Let's understand how you can use these modes:

Basic (Average Only)

  • Input 'Buy Price' and 'Quantity' of your first and second purchases.
  • Select your preferred Currency. (The calculator automatically defaults to your local currency based on your device's browser language and time zone settings. You can change it at any time.)
  • Click 'Add More' to include any and all additional stock purchase details.
  • View results in real time as you enter or update your details.
Stock Average Calculator Basic (Average Only)

Advanced (Average + Profit & Analysis)

  • Enter the 'Current Market Price (CMP)', then your 'Brokerage Fees' and 'Taxes & Charges' under 'Brokerage & Taxes'.
  • Input 'Buy Price' and 'Quantity' of your first and second purchases.
  • Click 'Add More' to include any and all additional stock purchase details.
  • Select your preferred Currency. (The calculator automatically defaults to your local currency based on your device's browser language and time zone settings. You can change it at any time.)
  • View results in real time as you enter or update your details.
Stock Average Calculator Advanced (Average + Profit & Analysis)

Unable to decide which mode to choose?

This table may help you decide:

Feature Basic Mode Advanced Mode
Primary UseQuick math for buy averagePrecise portfolio planning
InputsQty & Price onlyQty, Price, CMP, Taxes, Fees
AccuracyTheoretical averageReal-world 'True Cost'
OutputWeighted Average PriceBreak-Even, Net P&L, ROI%

Examples of Using the Stock Average Calculator

Here is how averaging up works in practice:

Say you are investing for the long term and have picked Company XYZ because its financials are strong and you expect it to keep growing.

You buy 250 shares at $150. The stock climbs to $170, and instead of selling you buy another 250 shares at that price.

The stock keeps rising and reaches $190, so you buy 500 more shares.

Your average cost is now $175 across 1,000 shares. If the stock reaches $200 and you sell everything, your profit is $25,000. That is twice the $12,500 you would have made by holding only the original 250 shares, but it took $175,000 instead of $37,500. As a return on your money, it is 14.3% against 33.3%. The profit doubled because far more money went in.

And here is averaging down:

You buy 250 shares of Company LOL at $150. Soon after, the stock falls to $125 and your position is at a loss.

Selling now would lock in that loss, so you decide to average down instead and buy 500 more shares at $125. That lowers your average cost, which means the stock has less ground to recover.

The decline continues, and you make a final purchase of 500 shares at $110.

Your average cost is now $124 instead of the initial $150. The stock only needs to recover to $124 for you to break even, before fees, and anything above that is profit.

The third case is buying equal amounts at different prices. What you keep equal matters here. Say the stock is at $30 in the first month, $20 in the second, and $24 in the third.

Buy 25 shares each month and you spend $1,850 on 75 shares, an average of $24.67, which is also the simple average of the three prices. Spend $600 each month instead and you get 20, 30, and 25 shares. That is again 75 shares, but for $1,800, so your average is $24. The fixed amount bought more shares in the cheap month.

All three situations are common. Averaging spreads your entry price over several purchases, so a single badly timed buy matters less, and it lets you invest on a plan instead of trying to time the market.

What is the Cost Basis of a Stock?

Cost basis is what you paid to buy your shares, counting both the price and the charges for buying them. Divide it by the number of shares and you get your cost per share, which is the figure you compare with the market price to know whether you are up or down.

If you bought once, there is little to work out. Buy 80 shares at $60 with no fees and your cost per share is $60. It takes a bit more math when the 80 shares came in several lots. Here is a holding in Company QRS, bought four times:

Purchase Buy Price Quantity Amount
Buy 1$6220$1,240
Buy 2$5810$580
Buy 3$4840$1,920
Buy 4$5410$540
Total80$4,280

If the stock now trades at $65, how much have you made? You need the average price first.

How to Calculate the Average Stock Price

Multiply each buy price by the number of shares bought at that price, add the results, and divide by the total number of shares.

Average price = Total invested ÷ Total shares

Average price = (P1 × Q1 + P2 × Q2 + … + Pn × Qn) ÷ (Q1 + Q2 + … + Qn)

P is the price of a purchase and Q is its quantity. For Company QRS:

Total invested = $1,240 + $580 + $1,920 + $540 = $4,280

Total shares = 20 + 10 + 40 + 10 = 80

Average price = $4,280 ÷ 80 = $53.50

You can enter the same four purchases in the calculator to check. It drops trailing zeros, so it shows 53.5.

Weighted Average vs. Simple Average

Add the four prices, divide by four, and you get $55.50. That is the simple average, and here it is $2 too high. It gives the 10 shares at $58 the same weight as the 40 shares at $48, even though half of the holding was bought at $48.

The weighted average counts every share once, so the bigger purchases pull it toward their price. The two figures agree when every purchase has the same quantity.

How to Calculate Stock Profit or Loss

Take the difference between the market price and your average price, then multiply it by the number of shares. For the percentage, divide the profit or loss by the amount you invested.

Profit or loss = (Market price − Average price) × Total shares

Return (%) = Profit or loss ÷ Total invested × 100

With Company QRS at $65:

Profit = ($65 − $53.50) × 80 = $920

Return (%) = $920 ÷ $4,280 × 100 = 21.5

If the stock were at $50 instead, the same formula gives −$280, a loss of 6.54%. To compare any other two prices, use the Percentage Calculator.

True Cost Basis: Adding Fees and Taxes

Share price times quantity is your gross investment. Your net investment adds what it cost to place the orders, and that total is your true cost basis. The extra costs usually are:

  • Brokerage: the commission your broker charges, either a flat fee per order or a percentage of it.
  • Taxes and duties on the trade: in India, for example, Securities Transaction Tax (STT), stamp duty, and GST on brokerage.
  • Exchange and regulatory charges: small amounts, listed on your contract note or trade confirmation.

Say the four purchases cost $24 in brokerage and $8 in other charges:

Gross investment = $4,280

Net investment = $4,280 + $24 + $8 = $4,312

Average with charges = $4,312 ÷ 80 = $53.90

So at $53.50 you would still be $32 short. The stock has to reach $53.90 before you have your money back. In Advanced mode, enter the charges under 'Brokerage & Taxes'. 'Same for All' takes one total for the whole holding, so here you would enter 24 and 8. 'Per Purchase' gives every purchase its own pair of fields.

Selling costs money too, and the calculator does not add that for you. If you expect to pay about $16 to sell, include it in 'Taxes & Charges' and the breakeven price becomes $54.10.

Beyond the Average Price: What Advanced Mode Shows

Profit and Loss at the Current Price

In Advanced mode, enter the 'Current Market Price' (CMP) to see:

  • Unrealized P&L: The profit or loss you would have if you sold at the current price, before selling charges.
  • Percentage Returns: Your return on investment (ROI), the profit or loss as a percentage of what you invested.
  • Market Comparisons: If the CMP is above your average, you are in profit. If it is below, you are at a loss, and the gap is how far the price has to rise to bring you level.

The calculator does not fetch live prices, so update the CMP whenever you want fresh figures.

Planning a Target Price or Stop-Loss

Once you have entered your charges, Breakeven Metrics shows the price at which you get back everything you spent on buying. You can plan an exit from there. Going back to Company QRS, with a total cost of $4,312 for 80 shares:

  • Target price: Add the profit you want to your total cost, then divide by your shares. For a $1,000 profit, ($4,312 + $1,000) ÷ 80 = $66.40.
  • Stop-loss: Subtract the most you are willing to lose instead. For a $300 loss, ($4,312 − $300) ÷ 80 = $50.15.

To check a price, type it in as the CMP and read 'Effective P&L', which counts the charges you entered. At 66.4 it shows a profit of $1,000, and at 50.15 a loss of $300. A stop-loss order can fill at a lower price in a fast market, so your actual loss may be larger.

Stock Average Calculator vs. Manual Math

Feature Manual Calculation Stock Average Calculator
SpeedSlow, especially with many tradesInstantaneous
AccuracyProne to human errorMathematically precise
ComplexityDifficult to weight by volumeHandles weighted averages easily
StrategyHard to visualize 'What-If' scenariosEasy to see how a new buy affects the total

How Many Shares Do You Need to Reach a Target Average?

If you already hold a stock and its price has moved, you can work out how many to buy to move your average to a figure you have in mind:

Shares to buy = Shares held × (Current average − Target) ÷ (Target − New price)

Suppose you hold 100 shares at an average of $50, and the stock is now at $40. To bring your average down to $45:

Shares to buy = 100 × ($50 − $45) ÷ ($45 − $40) = 100

You would need 100 more shares, costing $4,000. Here is what other targets would take:

Target Average Shares to Buy at $40 Cost Total Invested
$4825$1,000$6,000
$4667 (66.67 rounded up)$2,680$7,680
$45100$4,000$9,000
$44150$6,000$11,000
$42400$16,000$21,000
$41900$36,000$41,000

The first $2 off your average costs $1,000. The last dollar, from $42 to $41, costs another $20,000. Each new share lowers the average a little less than the one before, and no number of shares at $40 can bring it all the way to $40. Look at the cost column before you settle on a target.

The target has to sit between your current average and the new price. The same formula works for averaging up, where the new price is above your average. If you can't buy part of a share, round up.

To try a number in the calculator, enter your current average and shares as Buy 1 and the planned purchase as Buy 2.

Averaging Down vs. Averaging Up vs. Dollar-Cost Averaging

The calculation is the same for all three. What differs is the reason you are buying again.

Question Averaging Down Averaging Up Dollar-Cost Averaging
When you buyAfter the price fallsAfter the price risesOn a fixed schedule, whatever the price
Effect on your averageGoes downGoes upMoves either way, and each fixed amount buys more shares when the price is low
Why people use itTo lower the price they need to break evenTo add to a stock that is already doing wellTo build a holding without picking the moment
Main riskMore money in a stock that may keep fallingA smaller cushion if the price drops backYou keep buying through a long decline

Averaging down and dollar-cost averaging are easy to mix up. A monthly plan keeps its amount and its date whether the stock is up or down. If you only buy after a fall, or put in extra because the price looks cheap, you are averaging down.

Why a Lower Average Can Mean More Risk

Say you bought 100 shares at $50 and another 100 at $40. Your average is $45, so you need a smaller recovery to break even. But you now have $9,000 in the stock instead of $5,000. If the price drops to $30, you are down $3,000. Without the second purchase you would be down $2,000.

When Averaging Down Can Make Sense

  • The whole market or sector fell, and nothing has changed at the company itself.
  • You planned from the start to buy in stages and set the total you would spend.
  • You would buy the stock at this price even if you did not own any.
  • Adding more would not leave too much of your money in one company.

When to Stop Averaging Down

  • The reason you bought the stock no longer holds, for instance because sales are shrinking or debt is piling up.
  • The price has passed the point where you had decided to sell.
  • Your main reason for buying more is to make the loss look smaller.
  • You would need to borrow, or use money you will need soon.

If any of these sound familiar, taking the loss may cost you less than adding to it.

What Else Changes Your Average Price?

Selling, splits, and bonus shares can also change your average, and they are often why two sources show different figures for the same stock.

Selling Some of Your Shares

It depends on which shares you treat as sold. Under the average cost method, every share costs the same, so the shares you keep have the same average as before. Under first in, first out (FIFO), the oldest shares go first. Say you sell 30 of the 80 Company QRS shares at $60:

Result Average Cost FIFO
Cost of the 30 shares sold$1,605$1,820
Profit or loss at $60$195 profit$20 loss
Average of the 50 shares left$53.50$49.20

It is the same sale, yet one method shows a profit and the other a small loss. FIFO takes the 20 shares bought at $62 and the 10 bought at $58, and the cheaper ones stay with you.

For taxes, the method is usually set by law. In the US, the IRS uses FIFO for stocks unless you identify the shares you sold, and allows an average only for certain mutual funds and dividend reinvestment plans. In India, FIFO applies to shares in a demat account, and each account is worked out on its own. This is general information and not tax advice, so check the rules where you live.

The calculator only takes purchases. After a sale, enter the shares you still hold at their average price as Buy 1, then add new purchases below it. If you keep the 50 shares at $53.50 and buy 50 more at $57.50, your new average is $55.50.

Stock Splits and Bonus Shares

A split or a bonus issue changes how many shares you have without changing what you paid. Divide the same total by the new share count to get your new average. For 120 shares bought at $75, which is $9,000 invested:

What Happened Shares You Hold New Average
3-for-1 split360$25
1:1 bonus (1 free share for each one held)240$37.50
1:2 bonus (1 free share for every 2 held)180$50
1-for-10 reverse split12$750

Enter the adjusted quantity and price. Don't add bonus shares as a separate purchase at 0, because the calculator skips rows without a price. Tax rules can treat bonus shares differently from split shares, so keep the original purchase details as well.

Why Your Broker Shows a Different Average

If the average in your broker's app does not match the calculator, look for one of these:

  • Charges: One figure includes brokerage and taxes and the other does not.
  • Earlier sales: Some brokers use FIFO, so selling some shares changed the average they show.
  • Splits and bonus shares: Your broker has adjusted for them, and you entered the original prices.
  • Transferred shares: Shares moved from another broker may have arrived without their purchase price.
  • Order fills: A single order can fill at several prices. Use the prices on your contract note or trade confirmation.

How a Stock Average Calculator Helps Investors

Precise Average Calculation

The calculator works out your average price from every purchase, weighting each buy price by the number of shares bought at it. That figure is your cost basis, the number your profit or loss is measured against.

All it needs is a price and a quantity for each purchase. Fractional shares work too, and there is no limit on how many purchases you add.

Saves Time and Effort

Working out a weighted average by hand is slow, and a slip is easy to make once you have more than a few purchases. The calculator updates the average as soon as you add a purchase.

Helps You Decide Whether to Buy, Sell, or Hold

Once you know your average price, you can see whether the stock is trading above or below what you paid. That makes it easier to decide whether to buy more, sell, or hold.

Supports Dollar-Cost Averaging

If you put the same amount into a stock every month, your share count is different each time. In India this is often called rupee-cost averaging and done through a SIP. Add each installment as its own purchase to see what the plan has cost you per share so far.

Shows How Each Purchase is Doing

A holding can be in profit overall while some of the purchases in it are still at a loss. With a current market price entered in Advanced mode, the full analysis lists the profit or loss on every purchase, along with its share of the money you put in.

Shows How Much Money is in One Stock

Your average price and Total Invested figure show how much money is riding on one stock. If the position has grown larger than you are comfortable with, you can stop adding to it or reduce it.

Helps You Check Your Numbers at Tax Time

The report lists what you paid for each purchase, with fees if you enter them per purchase, so you can check it against your broker statements. Do not copy the average straight into a tax return, though. Many countries work out the gain from the specific shares you sold rather than from your average price.

Takes Some of the Emotion Out

Buying at several prices takes away the pressure of picking the 'perfect' bottom. And when the price moves sharply, it helps to see what one more purchase would do to your average before you place the order.

Who Should Use a Stock Average Calculator?

  • Individual Investors: Especially those who buy the same stock at different times and price levels.
  • SIP Investors: To track the average cost of shares bought regularly.
  • Swing Traders: To understand their adjusted entry price after multiple trades.
  • Long-Term Investors: To monitor their true cost basis over time.
  • Stock Market Novice: To learn how multiple purchases affect their average cost per share.
  • Taxpayers: To total up what they paid and check it against broker statements before reporting gains.
  • Portfolio Managers: To check what a holding has cost before rebalancing.
  • Dividend Investors: To determine the real yield based on average price.
  • Anyone Averaging Up or Down: To determine how a new purchase impacts overall cost.

Common Mistakes to Avoid While Averaging Stocks

Averaging only helps when the stock is still worth owning. A Stock Average Calculator tells you what you have paid. It does not predict future prices, and it is of no use for a one-time trade. These are the mistakes to watch for:

  1. Averaging Without a Goal: Before averaging, ask yourself: "Am I investing for long-term growth, recovery, or income?" A clear goal tells you whether buying more of the stock still makes sense.
  2. Buying Only Because the Price Fell: Don't be in a rush to average just because a stock's price has fallen. Check the company's earnings, outlook, and sector trends first to see whether it is still worth owning.
  3. Having No Limit: You don't have to keep averaging. Set a personal limit for how much you'll invest in a single stock. If things change fundamentally, it might be better to stop or reallocate.
  4. Not Reviewing the Whole Portfolio: Averaging into one stock again and again increases your exposure to it. Review your whole portfolio from time to time to check it is still balanced.
  5. Putting Too Much Into One Stock: Averaging lowers your cost in one stock, but it also puts more of your money into that stock. Spreading investments across different companies and sectors limits the damage if one of them performs badly.
  6. Expecting Quick Results: A stock can take years to get back to your average price, and some never do.
  7. Leaving Out Fees and Taxes: Every purchase adds brokerage fees and may add taxes. Enter them in Advanced mode so your breakeven price includes them.
  8. Treating the Average as a Buy Signal: A Stock Average Calculator tells you your average cost and not whether to buy more. Base the decision to buy more on your own research into the company.

Stock Average Formula in Excel and Google Sheets

If you keep your trades in a spreadsheet, put the buy prices in A2:A5, the quantities in B2:B5, the fees in C2:C5, and the current price in E2. These formulas work in both Excel and Google Sheets. The results are for Company QRS, with $32 of fees and a current price of $65.

What You Want Formula Result
Total invested =SUMPRODUCT(A2:A5,B2:B5) 4280
Total shares =SUM(B2:B5) 80
Average price =SUMPRODUCT(A2:A5,B2:B5)/SUM(B2:B5) 53.5
Average price with fees =(SUMPRODUCT(A2:A5,B2:B5)+SUM(C2:C5))/SUM(B2:B5) 53.9
Profit or loss before fees =E2*SUM(B2:B5)-SUMPRODUCT(A2:A5,B2:B5) 920

Don't use =AVERAGE(A2:A5). It ignores the quantities and returns 55.5, the simple average. Google Sheets also has =AVERAGE.WEIGHTED(A2:A5,B2:B5), which gives 53.5 directly. Excel has no such function.

For a target average, put the shares you hold in G2, your current average in G3, the target in G4, and the new price in G5, then use =ROUNDUP(G2*(G3-G4)/(G4-G5),0). With 100, 50, 46, and 40, it returns 67.

Frequently Asked Questions

To calculate it manually, multiply each purchase price by the number of shares bought at that price, add the results, then divide by the total number of shares you own. This is a weighted average formula: average price = total amount invested ÷ total shares. For example, if you buy 100 shares at $50 and then 50 shares at $40, you spend $5,000 + $2,000 = $7,000 on 150 shares, so the average is $7,000 ÷ 150 = $46.67 per share. You can also use the Syntax Toolbox Stock Average Calculator to calculate your average price automatically.

Because a simple average gives every purchase equal weight, while your real cost depends on how many shares you bought at each price. For example, if you buy 100 shares at $50 and then 50 shares at $40, the simple average is (50 + 40) ÷ 2 = $45, but the true average is $46.67 because twice as many shares were bought at $50. Both figures match only when you buy the same number of shares in each purchase. Broker holdings and the Syntax Toolbox Stock Average Calculator use the weighted figure, because it reflects what you actually paid per share.

Averaging down means buying more shares of a stock after its price falls below what you originally paid. This lowers your average cost per share. For example, suppose you buy 100 shares at ₹200 each. If the price falls to ₹150 and you buy another 100 shares, your total investment becomes ₹35,000 for 200 shares. Your new average price is ₹35,000 ÷ 200 = ₹175 per share. At ₹150, the stock would need to rise by about 16.7% for you to break even, excluding charges, compared with a 33.3% rise to return to ₹200. However, averaging down also means investing more money in a stock that has fallen. If its price continues to drop, your losses can increase.

To calculate how many additional shares you need to buy to reach a target average price, use the formula below: Shares to buy = Current shares × (Current average − Target average) ÷ (Target average − New purchase price). For example, suppose you own 100 shares at an average price of $80, and the stock now trades at $60. To lower your average price to $70, you need 100 × (80 − 70) ÷ (70 − 60) = 100 shares, since ($8,000 + $6,000) ÷ 200 = $70. Your target average must fall between your current average price and the new purchase price. The closer your target is to the new purchase price, the more shares you will need to buy.

Averaging up means buying more shares of a stock after its price rises above what you originally paid. This increases your average cost per share. For example, if you buy 50 shares at $100 each and another 50 shares at $120, your total investment becomes $11,000 for 100 shares. Your new average price is ($5,000 + $6,000) ÷ 100 = $110 per share. Investors may average up when a stock is performing well and they want to increase their holdings. However, buying at a higher price also increases the cost per share and reduces the potential profit if the price falls.

The breakeven price is the price at which selling your shares would recover your total investment, including the fees and charges you paid to buy them. At this price, you neither make a profit nor incur a loss before selling charges. Formula: Breakeven price = (Total investment + Total charges) ÷ Total shares. For example, if you invest $7,000 in 150 shares and pay $30 in fees, your breakeven price is ($7,000 + $30) ÷ 150 = $46.87 per share. You can calculate this using the Advanced mode of the Syntax Toolbox Stock Average Calculator. Enter your brokerage fees and other charges to see your breakeven price and Points to Breakeven, which shows how far your breakeven price is above your average buy price. To cover the cost of selling as well, include your expected selling charges in the charges you enter.

To calculate the profit or loss on your shares, multiply the current market price (CMP) by the number of shares you own, then subtract your total investment. For example, if you bought 150 shares for $7,000 and the current market price is $52, your shares are now worth $7,800. Your profit is $7,800 − $7,000 = $800, which is a return of 11.43%. In the Advanced mode of Syntax Toolbox Stock Average Calculator, enter the current market price to see your Current P&L and Total Return. Add brokerage fees and taxes to calculate your Effective P&L and Net Return after charges. You can also use the Percentage Calculator to calculate the percentage change between two prices. Remember, your profit or loss remains unrealized until you sell your shares.

Unrealized P&L (profit and loss) is the gain or loss on shares you still own, based on their current market price. Realized P&L is the gain or loss you lock in when you sell your shares. For example, suppose you bought 150 shares for $7,000 and their current market price is $52. Your shares are worth $7,800, giving you an unrealized gain of $800. If you sell 50 shares at $52, you realize a profit of about $266.67, based on an average cost of $46.67 per share. The remaining 100 shares have an unrealized gain of about $533.33, assuming no fees or charges. Most tax systems only tax realized gains. In the Advanced mode of Syntax Toolbox Stock Average Calculator, the Current P&L shows the unrealized gain or loss on the shares you still hold.

Yes, if you want to calculate the total cost of buying your shares. However, the way brokerage fees and other charges are included depends on your broker and the purpose of the calculation. Many broker apps show the average price based on trade prices alone. For tax purposes, buying costs may also be included in the cost basis. For example, in the US, the IRS generally includes commissions and fees paid to buy shares in their cost basis. The Syntax Toolbox Stock Average Calculator shows these figures in different ways. In Basic mode, the Average Price is calculated using purchase prices and quantities only. In Advanced mode, you can add brokerage fees and taxes either for all purchases together or separately for each purchase. It helps you see your full cost per share and breakeven price.

Yes. You can use the Syntax Toolbox Stock Average Calculator for stocks listed on the National Stock Exchange (NSE) and Bombay Stock Exchange (BSE). Select INR (₹) from the currency menu, then enter each purchase price and quantity from your contract note or broker holdings. In Advanced mode, select Same for All if you want to apply the same charges to every purchase. Enter your brokerage fees in the Brokerage Fees field and add other charges, such as Securities Transaction Tax (STT), GST on brokerage, stamp duty, exchange transaction charges, and SEBI turnover fees, under Taxes & Charges. You can find these amounts on your contract note. If the charges differ between purchases, select Per Purchase to enter the brokerage and taxes for each purchase separately.

Under the average cost method, selling shares reduces your total quantity but does not change the average price of your remaining shares. For example, if you hold 150 shares at an average price of $46.67 and sell 50, your remaining 100 shares still have an average price of $46.67. Under FIFO (first in, first out), the oldest shares are sold first, which can change the average price of your remaining shares. With 100 shares bought first at $50 and 50 later at $40, selling 50 removes $50 shares and leaves 100 at an average of $45.

FIFO (first in, first out) assumes the shares you bought first are the first ones you sell. The average cost method uses the same average cost per share across your holdings to calculate gains or losses. Tax rules vary by country. In the US, FIFO is the default for stocks unless you specifically identify the lots sold, and average cost is generally allowed only for mutual fund shares and dividend-reinvestment shares. In India, CBDT Circular 768 applies FIFO to shares held in demat accounts, calculated separately for each account. The applicable rules depend on your location and circumstances, so check with your broker or a tax professional for guidance.

Averaging down lowers your average cost per share, but it only helps if the stock price recovers. If the business continues to struggle and the price falls further, your losses can increase. Before buying more shares, review why the price has fallen and consider how much of your portfolio you want to invest in one stock. You can use the Syntax Toolbox Stock Average Calculator to see how each additional purchase affects your average price.

Dollar-cost averaging (DCA), similar to a Systematic Investment Plan (SIP) in India, means investing a fixed amount at regular intervals, regardless of the price. Averaging down means buying more shares specifically when the price falls. For example, investing $1,000 each at prices of $50, $40, and $25 buys 20, 25, and 40 shares, respectively. You end up with 85 shares for $3,000, giving you an average price of $35.29 per share. To calculate the average cost of a DCA plan, enter each investment as a separate purchase in the Syntax Toolbox Stock Average Calculator.

Stock splits and bonus shares increase the number of shares you own without adding to your investment. As a result, your average price per share decreases, while your total investment stays the same. For example, if you hold 100 shares at ₹300 each and receive a 1:1 bonus, you will own 200 shares at an average price of ₹150 each. A 2-for-1 split has the same effect. To reflect this in the Syntax Toolbox Stock Average Calculator, adjust your purchase quantities and prices accordingly. Your broker usually makes these adjustments automatically, but tax treatment may vary depending on the type of shares and your country.

Yes. The weighted average formula works for anything bought in units at different prices, including ETFs, mutual funds, cryptocurrencies, as well as stocks. Simply enter each purchase price and the number of units you bought. You can also enter fractional quantities. For example, if you buy 0.5 BTC at $60,000 and another 0.25 BTC at $80,000, your total investment is $50,000 for 0.75 BTC. Your average price is $50,000 ÷ 0.75 = $66,666.67 per BTC. Keep in mind that tax rules vary by asset and country, so the calculator's average price may not match the cost basis required for tax reporting.

Yes. The Syntax Toolbox Stock Average Calculator is free, needs no sign-up or broker login, and lets you add as many purchases as you need. All calculations run in your browser, so your purchase prices and quantities are not uploaded or stored. Only your currency preference is remembered on your device. The calculator selects a default currency based on your browser's time zone or language settings. The currency menu changes the displayed symbol but does not convert amounts, so make sure all your purchases use the same currency.

We Value Your Opinion

Does this tool meet your expectations? Your feedback helps us improve

By submitting, you agree to our Terms of Use & Privacy Policy

Find Syntax Toolbox useful? Support us