Calculate average price and remaining stock value after a sale.
Stock calculation tool

Welcome to Stock Management

Calculate the average price and remaining stock price after selling some stock.

Calculate Average Price After Sale of Some Stock

Current average cost of one stock unit.
Selling price of one sold unit.
← Return to Stock Management
Portfolio Calculation

Average After Selling

When you sell part of your shares at a profit or loss, the average cost of the remaining shares usually stays unchanged in a simple average-cost calculation. The profit or loss from the sale is recorded separately.

Example

You own 100 shares at an average cost of ₹200 per share.

Your total cost is:

100 × ₹200 = ₹20,000

Now you sell 40 shares at ₹250 per share.

Selling value: 40 × ₹250 = ₹10,000
Cost of sold shares: 40 × ₹200 = ₹8,000
Realized profit: ₹10,000 − ₹8,000 = ₹2,000

You still have 60 shares remaining. Their average cost remains approximately ₹200 per share.

Remaining Shares

Remaining shares: 60

Average cost per remaining share: ₹200

Remaining cost basis: 60 × ₹200 = ₹12,000

If You Sell at a Loss

If you sell 40 shares at ₹150 instead of ₹250:

Selling value: 40 × ₹150 = ₹6,000
Cost of sold shares: 40 × ₹200 = ₹8,000
Realized loss: ₹6,000 − ₹8,000 = −₹2,000

The average cost of the remaining 60 shares is still approximately ₹200 per share in this simple calculation.

Important: Buying additional shares later creates a new average price. The exact result can also depend on your broker's average-cost and tax-lot calculation method.