Professional share average and portfolio calculation.
Portfolio calculation tool

Welcome to Stock Management

Calculate the average after selling and buying shares.

Strategy Illustration

Enter Sale and Purchase Details

Stock Name Total Quantity Old Average Sold Quantity Selling Price Bought Quantity Buy Price
← Return to Stock Management
Portfolio Calculator

Portfolio Calculation Tool

This tool demonstrates how your average cost can change after selling and repurchasing shares on a later trading day.

Jio Finance Example

Previous average price: ₹257.14 per share

Total shares held: 1,067 shares

Shares sold: 400 shares at ₹231 per share

1. Previous Investment

1,067 × ₹257.14
Previous investment: ₹2,74,368.38

2. Sale Calculation

400 × ₹231 = ₹92,400

The cost of the 400 sold shares was:

400 × ₹257.14 = ₹1,02,856
Loss: ₹92,400 − ₹1,02,856 = −₹10,456

3. Remaining Shares

After selling 400 shares:

1,067 − 400 = 667 shares

Remaining cost:

₹2,74,368.38 − ₹1,02,856 = ₹1,71,512.38
Remaining average: ₹257.14

4. Buy Back Shares

On the next trading day, buy 400 shares at ₹230:

400 × ₹230 = ₹92,000

New total shares:

667 + 400 = 1,067 shares

New Average Cost

₹246.97

The average price comes down from ₹257.14 to approximately ₹246.97.

Average price reduction: ₹257.14 − ₹246.97 = ₹10.17

Final Calculation

New Average Price = (Remaining Cost + New Purchase Cost) ÷ Total Shares

(₹1,71,512.38 + ₹92,000) ÷ 1,067 = ₹246.97

Important: This is a simplified average-cost example. Brokerage charges, taxes, transaction costs and your broker's tax-lot method may change the final portfolio calculation.