Stock Average Calculator
Your Results
- Total Shares
- Total Investment
- Average Purchase Price
- Current Market Price
- Current Market Value
- Unrealized Profit/Loss
- Profit/Loss Percentage
Excludes brokerage, taxes (such as STT and capital gains tax), exchange charges and other trading costs. Profit or loss shown here is unrealized: it is only on paper until you sell.
How Is Your Stock Average Calculated?
Enter at least one purchase above. The step-by-step working for your numbers will appear here and update as you type.
Unrealized figures only. Brokerage, taxes and other charges are not included. This is arithmetic on the numbers entered, not investment advice.
All Online Calculators
Explore our complete collection of fast, accurate and free online calculators. No signup required.
๐ฐ Finance Calculators
๐ Education Calculators
โค๏ธ Health & Fitness
About this Calculator
Add several buys of a stock to find your weighted average purchase price, with each step shown. Enter your own current price to see unrealized profit or loss.
What Is a Stock Average Price?
If you buy the same stock more than once, usually at different prices, you end up with one holding that cost you different amounts per share. Your average purchase price (also called the average buy price or average cost) is the single per-share price that would have produced the same total spend for the same total number of shares.
Why a Weighted Average Is Used
A simple average of your buy prices treats every purchase as equal, even when you bought very different quantities. In the worked example below, adding the two prices (โน67 and โน35) and dividing by two gives โน51, which is wrong: far more shares were bought at โน67 than at โน35. A weighted average weights each price by the number of shares bought at that price, so larger purchases count for more. Dividing the total money spent by the total shares held does exactly this.
How Is the Stock Average Calculated?
- Multiply the buy price by the quantity for each purchase to get the purchase amount.
- Add all purchase amounts to get the total investment.
- Add all quantities to get the total shares.
- Divide the total investment by the total shares.
Formulas Used
Purchase Amount = Buy Price ร Quantity
Total Shares = Sum of all quantities
Total Investment = Sum of all purchase amounts
Average Purchase Price = Total Investment รท Total Shares
How Do You Calculate Unrealized Profit or Loss?
Current Market Value = Total Shares ร Current Market Price
Unrealized Profit/Loss = Current Market Value โ Total Investment
Profit/Loss Percentage = (Unrealized Profit/Loss รท Total Investment) ร 100
A positive result is an unrealized profit and a negative result is an unrealized loss. The calculator uses full precision internally and rounds only what it displays. A result is reported as BREAK-EVEN when the difference between market value and total investment is smaller than โน0.005 (half a paisa, which displays as โน0.00), or smaller than a tiny relative margin (1 in 100 trillion of the investment) that covers computer rounding error, whichever is larger.
Worked Example
Purchase 1: 5,000 shares at โน67 = โน3,35,000. Purchase 2: 2,000 shares at โน35 = โน70,000.
Total shares = 7,000. Total investment = โน4,05,000. Average purchase price = โน4,05,000 รท 7,000 โ โน57.85714286.
If the current market price were โน50, the market value would be โน3,50,000 and the unrealized loss โน55,000 (about 13.58% of the investment). If it were โน60, the market value would be โน4,20,000 and the unrealized profit โน15,000 (about 3.70%). These are only illustrations of the arithmetic. They are not predictions, and the calculator above uses only the numbers you enter.
Frequently Asked Questions
What is the difference between average purchase price and current market price?
Your average purchase price is what your shares cost you on average. It is fixed by your past purchases. The current market price is what the stock is trading at now, which changes through the day. Comparing the two is what tells you whether your holding is currently above or below what you paid.
Does this calculator include brokerage, taxes and other charges?
No. It uses only the buy price and quantity you enter. Brokerage, GST on brokerage, securities transaction tax, stamp duty, exchange and depository charges, and capital gains tax are not included. Your real cost per share and your real profit or loss after selling will differ by these amounts. If you want them reflected, include them in the buy price yourself, for example by adding charges divided by the number of shares.
Does this calculator predict prices or tell me whether to buy or sell?
No. It only does arithmetic on the numbers you enter. It does not forecast stock prices, give investment advice, or recommend buying, holding or selling. Any decision is yours, and you may wish to speak to a qualified adviser.
Why is the Current Market Price empty?
The calculator does not know today's price and does not fetch live prices, so it never fills the field in. Enter the price you want to compare against, and the profit or loss updates straight away.
Why is my quantity rejected when it has a decimal?
Shares in a normal demat account are bought in whole numbers, so quantity must be a whole number greater than zero.